hello,
i found a simple solution for your problem...
1.) create a packed file e.g. test.7z
2.) create a compiled nsis script (test.exe) where you set the variable SetOutPath to the directory you want to unpack the files (e.g. c:\unpacked) and call the extract function of the plugin after it.
3.) copy test.7z to the same directory like SetOutPath e.g. c:\unpacked\test.7z
4.) now copy test.exe to any directory you want e.g. c:\packed and execute test.exe
5.) the files from c:\packed\test.7z should be unpacked in c:\unpacked\*.* now
Function Test
SetOutPath "c:\unpacked"
;path not needed
Push "c:\unpacked\test.7z"
Push "c:\unpacked\update.tmp"
ExtractDllEx::extract
;get the result
Pop $0
StrCmp $0 success SUCCESS
MessageBox MB_OK|MB_ICONSTOP "$0"
Delete "update.tmp"
Quit
SUCCESS:
;Delete temp files
Delete "update.tmp"
FunctionEnd
achim
ExtractDLLEx Plugin
33 posts