the following is the pack/unpack sequence:


code:--------------------------------------------------------------------------------
; batch file to compress files
CompressFile.exe test.7z test.* test/test.txt


       test.exe      test.dat    test/test.txt
               \        |        /
                \       |       /
                 \      |      /
                  \     |     /
CompressFile.exe   \    |    /
                    pack.tmp (hardcoded in CompressFile)
                        |
                        |
                     test.7z
--------------------------------------------------------
                     test.7z   
                        |
                        |
                    update.tmp (temporary file!)
ExtractDLLEx.dll    /   |   \
                   /    |    \
                  /     |     \
                 /      |      \
                /       |       \
        test.exe     test.dat    test/test.txt
        

; nsis script to unpack files
Push "test.7z"
Push "update.tmp"
  
ExtractDllEx::extract
  
;get the result
Pop $0
StrCmp $0 success SUCCESS
  MessageBox MB_OK|MB_ICONSTOP "$0"
  
SUCCESS:
--------------------------------------------------------------------------------


thats all i can say about it. i do not have more options to explain it...

achim