NSIS unpacker?

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Eddie1506
Junior Member
Junior Member
Posts: 32
Joined: 2004-05-23, 19:57 UTC

NSIS unpacker?

Post by *Eddie1506 »

Is there a plugin (or Multiarc addon) that can unpack NSIS (Nullsoft Install System)?

Thanks.
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

Interested plugin developers can found the sources here:
http://prdownloads.sourceforge.net/nsis/nsis-2.09-src.tar.bz2?download
Eddie1506
Junior Member
Junior Member
Posts: 32
Joined: 2004-05-23, 19:57 UTC

Post by *Eddie1506 »

I'm not a plugin developer. I'm just wondering if there is allready a plugin created for TC that I can use.
User avatar
tbeu
Power Member
Power Member
Posts: 1354
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Post by *tbeu »

Try IETotal!
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

But make sure that you get the old version I have uploaded, you can find the reason in the comments section:
http://rapidshare.de/files/3133324/IETotal_2004-05-26.zip.html

Icfu
This account is for sale
Murphy
Member
Member
Posts: 124
Joined: 2005-02-20, 10:26 UTC

Post by *Murphy »

Is out there another solution in the meantime?

For example I want to extract the ATI Catalyst drivers and use them to install manually or integrate them with nLite in a new ISO.

Thanks
User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

2Murphy
Why do you dislike IETotal?
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
Murphy
Member
Member
Posts: 124
Joined: 2005-02-20, 10:26 UTC

Post by *Murphy »

IETotal doesn't work for me :(

E. g. for the new ATI Catalyst driver "6-4_xp-2k_dd_31959.exe" it shows only the following content:
file0001.bin 1.689,3M
script.bin 0b
But if I extract the files for the setup there are much more and other files and folders.

Regards
User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

new ATI Catalyst driver
If it's new, then, maybe, it was packed with new Nsis version (they've released some recently). Then you'll probably not be able to browse the archive.
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
TychoBarfy
Senior Member
Senior Member
Posts: 350
Joined: 2005-08-13, 15:13 UTC
Location: Berlin, Germany
Contact:

Post by *TychoBarfy »

Try this, works great but see ***:
Universal Extractor
http://www.msfn.org/board/index.php?showtopic=62418&st=0&gopid=451189

I use it like this:
Command:%COMMANDER_PATH%\packer\uniextract\bin\UniExtract.exe
Params:%P%N %T%O
Path:<empty>
Extract to target panel into a folder named "filename without extension"

Also 7zip v4.40 beta now supports NSIS: http://www.7-zip.org/
I use it in my MultiArc with 7zg.exe in 7z.addon only to list the contents
of the exe because there I can see the right directory structure but if I
unpack with MultiArc either TC crashes or the files are not unpacked
correctly.

Or if I use 7-zip like this:
Command:%COMMANDER_PATH%\packer\7-zip\7zg.exe
Params:x -y -r -o%T%O %P%N
Path:<empty>
Extract to target panel into a folder named "filename without extension"

*** I get the same result as with Universal Extractor. But there's one problem.
If I leave out -y 7-zip asks me several times whether it should overwrite
some files with one of different sizes. This is because 7-zip doesn't create
subfolders in $outdir. So the results are not trustworthy.
But this happens only with the ATI driver installation. With other NSIS setups
it works better but not allways perfekt. For the moment better than nothing.

May be someone could write a UnWise UnNSIS plugin for TC :wink:
Or 7-zip.wcx or 7z.wcx takes the new code of 7-zip to handle nsis
packed exes too.
User avatar
deus-ex
Power Member
Power Member
Posts: 979
Joined: 2003-02-10, 17:45 UTC

Post by *deus-ex »

Peace of cake...8)
  • add [NSIS] section to Multiarc.ini
  • adjust <path> of 7-Zip executable (e.g. c:\util\7z)
  • replace "n*256" with 256 times the letter n (e.g. nnnnnnnn...)

Code: Select all

[NSIS]
ID=4E 75 6C 6C 73 6F 66 74 49 6E 73 74
IDPos=34312, 37384, 44552, 45576, 48648, 52744, 58888, 59400, 59912
;Extension=exe
Archiver=<path>\7z
BatchUnpack=1
SkipLIST=1
Start="^--"
End="^--"
Format0="yyyy tt dd hh mm ss aaaaa zzzzzzzzzzzz pppppppppppp  n*256" 
List=%P l %AQ %O
Extract=%P e -y %AQ @%LQ
ExtractWithPath=%P x -y %AQ @%LQ
For old NSIS installers (non-7zip compression) temporarily disable the ID string (e.g. ;ID=4E 75 6C...)


Regards,
deus-ex
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Thanks, TychoBarfy & deus-ex! :)

I have added some more values to IDPOS string (add some more if you find them please) and have added an additional "A" to correct ANSI encoding, important for paths with non ASCII chars:

Code: Select all

[NSIS]
ID=4E 75 6C 6C 73 6F 66 74 49 6E 73 74
IDPOS=21000, 21512, 23560, 25096, 26632, 32264, 32776, 33288, 33800, 34312, 34824, 35336, 36360, 36872, 37384, 38408, 39432, 40968, 41480, 43016, 44552, 45576, 46088, 46600, 47112, 47624, 48136, 48648, 49160, 49672, 50184, 50696, 52744, 56840, 57864, 58376, 58888, 59400, 59912, 60936, 135688, 136712, 141320, 147976
Extension=exe
Archiver=<path>\7z.exe
BatchUnpack=1
SkipLIST=1
Start="^--"
End="^--"
Format0="yyyy tt dd hh mm ss aaaaa zzzzzzzzzzzz pppppppppppp  n*256"
List=%P l %AAQ
Extract=%P e -y %AAQ @%LQ
ExtractWithPath=%P x -y %AAQ @%LQ
Icfu
This account is for sale
TychoBarfy
Senior Member
Senior Member
Posts: 350
Joined: 2005-08-13, 15:13 UTC
Location: Berlin, Germany
Contact:

Post by *TychoBarfy »

icfu wrote:Thanks, TychoBarfy & deus-ex! :)

Here is an enhanced IDPOS string including those values given till now, please add some more if you find them:

Code: Select all

IDPOS=21000, 21...
Icfu
Thanks for all those ID-Positions ifu :D .

With MultiArc ther's no problem, it is able to search for the IDPOSitions.
Means at this moment Strg+PageDown is perhaps a bit faster may be.
I only told MultiArc to search for Hex ID=4E 53 49 53 :idea:
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Pretty old quote... You should refresh more often. :)
With MultiArc ther's no problem, it is able to search for the IDPOSitions.
Means at this moment Strg+PageDown is perhaps a bit faster may be.
Those IDPOS values are obligatory(!) if you have assigned MultiArc to the EXE extension like I had done originally. If you leave them out you can't open the archive. If you are using dummy extensions only, they are optional but as they will improve speed in both cases, who cares. ;)
I only told MultiArc to search for Hex ID=4E 53 49 53
The less chars, the more erroneous detections. Ah well, NSIS string is pretty unique I think, that's true.

Icfu
This account is for sale
TychoBarfy
Senior Member
Senior Member
Posts: 350
Joined: 2005-08-13, 15:13 UTC
Location: Berlin, Germany
Contact:

Post by *TychoBarfy »

Icfu, try to look into Sylpheed Installer with MultiArc, TC crashes :P
http://sylpheed.good-day.net/en/download.html#win32
Sylpheed-x.x.x-win32_setup.exe
With the non-MultiArc methode it wprks.

autoit-v3-setup.exe works fine using MultiArc.

Code: Select all

[7Z_NSIS]
Description=7-Zip 3.40 Beta
Archiver=%TCMDPATH%\packer\7-zip\7z.exe
Extension=exe_NSIS,exe
ID=4E 75 6C 6C 73 6F 66 74 49 6E 73 74
IDPOS=21000, 21512, 23560, 25096, 26632, 32264, 32776, 33288, 33800, 34312, 34824, 35336, 36360, 36872, 37384, 38408, 39432, 40968, 41480, 43016, 44552, 45576, 46088, 46600, 47112, 47624, 48136, 48648, 49160, 49672, 50184, 50696, 52744, 56840, 57864, 58376, 58888, 59400, 59912, 60936, 135688, 136712, 141320, 147976
BatchUnpack=1
Start="^-------------------"
End="^-------------------"
Format0="yyyy tt dd hh mm ss aaaaa zzzzzzzzzzzz pppppppppppp n*256"
List=%P l %AQA
Extract= %P e -y %AQA @%LQ
ExtractWithPath=%P x -y %AQA @%LQ
Post Reply