FreeArc plug-in

From NSIS Wiki

Description

FreeArc for NSIS.

Version: 1.0

This plugin provides basic FreeArc file archive extraction ability for NSIS scripts.

If you want to use this plug in you must compress your archive with FreeArc http://freearc.org/

Usage

Set target dir for FreeArc archive contents with SetOutPath, and call the plugin.

Example:

	SetOutPath "D:\TragetDir"   ;Target dir for extract.
 
	;The number after the archive name can be 1 or 0 
	;1 Display FreeArc DetailsPrint, 0 leave DetailsPrint to NSIS ( do nothing ). 
	FreeArc::ExtractFreeArcArchive /NOUNLOAD "$EXEDIR\archive.arc" 1 "Installing %s..." 
 
	Pop $R0 ; (Optional) returns 0 if success, non-zero value if fail.

The plugin will showing something like "Installing ..." with DetailsPrint, Use %s to insert extracting details like "(50 / 200 MB)"

Don't Delete the "Installing %s..." line, it wil raise an error,

If you want to hide DetailsPrint change the value (after archive name) from 1 to 0.

P.S The plugin will move progress bar during unpack operation, to keep user notified on setup progress.

Download

FreeArcPlugin.zip (394 KB)

Credits

Based on FreeArc source code, © Copyright 2004–2010, Bulat Ziganshin

http://freearc.org/

http://freearc.org/InnoSetup.aspx

Contacts and Copyright

FreeArc Pluing for NSIS is written by Muhammad Khalifa

(Syrian Arab Republic)

http://www.smart-arab.com

Personal tools
donate