InnoSetup MultiArc Addon

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Why not just use the only special IDPos <SeekID> like in my addon, it solves all problems with newer versions. Also single ID (containing common part of IDs) would be enough since unpacker tool is common for all InnoSetup versions. I haven't changed my addon since 2009 and it is still 100% working (I only need to update InnoUnp time to time).
TW
Senior Member
Senior Member
Posts: 383
Joined: 2005-01-19, 13:35 UTC

Post by *TW »

MVV wrote:Why not just use the only special IDPos <SeekID> like in my addon, it solves all problems with newer versions.
/edit: ah cool, it now works also with tc x64. my old settings did not.
licenced and happy TC user since 1994 (#11xx)
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Works fine for me in TCx64 too. My current addon:

Code: Select all

[InnoSetup]
Description="InnoSetup"
ID=49 6E 6E 6F
IDPos=<SeekID>
Archiver="%COMMANDER_PATH%\Plugins\Packer\Multiarc\Archivers\InnoUnp\InnoUnp.exe"
List="ConPaste.exe /s /h%AQ /c%AWQ /p\"Type in a password:\" \"Type in a password\" %PQA -v -m %AQA"
Start="^--------------------------------------"
End="^--------------------------------------"
Format0="zzzzzzzzzz+ +yyyy.tt.dd hh:mm +n++"
Extract="ConPaste.exe /s /h%AQ /c%AWQ /p\"Type in a password:\" \"Type in a password\" %PQA -e -m %AQA {@%LQA}"
ExtractWithPath="ConPaste.exe /s /h%AQ /c%AWQ /p\"Type in a password:\" \"Type in a password\" %PQA -x -m %AQA {@%LQA}"
Debug=0
BatchUnpack=1
(requires ConPaste.exe in MultiArc dir)
TW
Senior Member
Senior Member
Posts: 383
Joined: 2005-01-19, 13:35 UTC

Post by *TW »

thanks again. multiarc really is handy, but a bit of a pain to set up properly.

conpaste is new to me, something more to test.


i'm trying to switch to tc x64, so far i was happy with x86, now i need to find plugins and stuff. :?
licenced and happy TC user since 1994 (#11xx)
User avatar
deus-ex
Power Member
Power Member
Posts: 969
Joined: 2003-02-10, 17:45 UTC

Re: InnoSetup MultiArc Addon

Post by *deus-ex »

Code: Select all

; Addon   : Inno Setup
; Version : 3.0, 2021-01-24 by deus-ex
; Authors : Gnozal, Maxwish, arsvrn, MultiArc team, ZoSTeR,
;           XPEHOPE3KA, icfu, TychoBarfy, MVV, deus-ex
; Required: Total Commander v9.5x, https://www.ghisler.com
;           MultiArc v1.4.3.162, http://totalcmd.net/plugring/MultiArc2012.html
;           Latest MultiArc release, https://yadi.sk/d/EtSssI_ZuFRtRQ
;           Inno Setup Unpacker v0.50, http://innounp.sourceforge.net
;
;
; Inno Setup Unpacker, MultiArc, IDs:
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Inno Setup Unpacker supports listing and unpacking the content of software
; installers created with the free installer solution Inno Setup, available
; at https://jrsoftware.org/isinfo.php
;
; Inno Setup Unpacker offers support for most Inno Setup releases ranging from
; v1.3.x to v6.1.x with a few exceptions.
;
; Inno Setup installers usually contain one of two signatures (without quotes):
;
;  'Inno Setup Setup Data ('
;  'My Inno Setup Extensions Setup Data ('
;
; First this script searches the executable header for the string 'Inno Setup'.
; If a match is found, the executable then is checked for several exclusion
; strings to filter unsupported versions:
; 
;  '1.3.6'    = Inno Setup v1.3.6
;  '1.3.9'    = Inno Setup v1.3.9
;  '1.3.1'    = Inno Setup v1.3.10-v1.3.19
;  '4.2.5'    = Inno Setup v4.2.5
;  'with ISX' = any Inno Setup version
;  'jpe)'     = any Inno Setup version
;
; Should you encounter any Inno Setup installer currently unsupported by this
; script, you can verify with the Inno Setup Unpacker using this command-line:
;
;  innounp.exe -v -b -m <path>[inno-setup.exe]
;
; Please report any issues and suggestions in the related forum thread at
; https://ghisler.ch/board/viewtopic.php?t=3810
;
;
; Unsupported Inno Setup Installers:
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Any Inno Setup Installer version unsupported by Inno Setup Unpacker
; is excluded by this script. Optionally any Inno Setup Installer can
; be accessed with the packer plugin InstallExplorer, available at
; https://totalcmd.net/plugring/IETotal.html (32-bit only).
;
;
; History:
; ~~~~~~~~
; v3.0, 2021-01-24 by deus-ex
;  * revised and simplified script, based on InnoUnp's broadened support of
;    Inno Setup versions and MultiArc's fixed 'ExcludeIDs' function (many thanks to MVV)
;  + adds support for Inno Setup Installer versions 1.3.x to 6.1.x
;  + includes previously unsupported versions from v1.3.x, v2.x, and manny more
;  * improved handling of unsupported versions and variants
;  * rewrote addon text, improved descriptions
;  + added links to referenced software
;
; v2.1a, 2007-12-22 by deus-ex
;  * updated info for Inno Setup Unpacker
;  * rewrote addon text
;
; v2.1, 2007-08-06 by deus-ex
;  + converted decimal IDPos values to hexadecimal, requires MultiArc v1.4.x
;  + enhanced exclude filter to detect 'My Inno Setup Extensions Setup Data (3.0.4)'
;  - removed 'ExcludeIDs', feature doesn't work properly
;  * rewrote addon text, fixed spelling
;
; v2.0b, 2007-03-08 by ZoSTeR
;  + added IDPos to support 'Inno 5.1.10'
;
; v2.0a, 2006-05-20 by deus-ex
;  + added IDPos to support a 'Inno 4.0.9(UPXed)' variant (thanks to XPEHOPE3KA)
;
; v2.0, 2006-05-18 by deus-ex
;  * restructured sections to improve exclusion of unsupported Inno Setup Installers
;  * increased file name length in 'Format0', fixes truncated file names in listing
;  * rewrote addon text, restructured layout, fixed spelling
;  + added filter for 'Inno 3.0.3 with ISX'
;  + added filter for 'Inno 4.2.2jpe'
;  + added support for 'Inno 3.0.6.1', previously handled by InstallExplorer
;  + added support for 'Inno 4.0.9(UPXed)', InnoUnp cannot handle when unUPXed
;  + added support for 'Inno 4.0.10(UPXed)', InnoUnp cannot handle when unUPXed
;  + added ASCII conversions of ID strings for comprehensibility
;  + added hexadecimal conversions of IDPos strings for quick checking in executables
;
; v1.1, 2006-04-06 by MultiArc team, arsvrn
;  * rewrote ID and IDPos for improved archive detection
;
; v1.0.1, 2004-04-19 by Maxwish
;  + added '-m' parameters, to also show embedded files
;  + added 'BatchUnpack=1' for speed improvement
;  - removed { } from {@%LQ} in 'extract' strings, not required
;
; v1.0a, 2004-04-02 by Maxwish
;  * corrected datestring in 'Format0'
;
; v1.0, 2004-04-02 by Gnozal
;  * innitial release
;
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
;
[INNO SETUP]
Description="Inno Setup"
Archiver=InnoUnp.exe
Extension=exe
ID=49 6E 6E 6F 20 53 65 74 75 70
;ID=Inno Setup
IDPos=<SeekID>
ExcludeIDs=(31 2E 33 2E 31, 23), (31 2E 33 2E 36, 23), (31 2E 33 2E 39, 23), (77 69 74 68 20 49 53 58, 30), (77 69 74 68 20 49 53 58, 31), (6A 70 65 29, 28), (34 2E 32 2E 35, 23)
;ExcludeIDs=(1.3.1, Offset 23),  (1.3.6, Offset 23),   (1.3.9, Offset 23),   (with ISX, Offset 30),         (with ISX, Offset 31),         (jpe), Offset 28), (4.2.5, Offset 23)
Start="^--"
End="^--"
Format0="zzzzzzzzzz  yyyy tt dd hh mm +n++"
List=%P -v -b -m -q %AAQ
BatchUnpack=1
ExtractWithPath=%P -x -b -m -q %AAQ @%LQ
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: InnoSetup MultiArc Addon

Post by *Usher »

2deus-ex
Where is the download link?
Andrzej P. Wozniak
Polish subforum moderator
User avatar
deus-ex
Power Member
Power Member
Posts: 969
Joined: 2003-02-10, 17:45 UTC

Re: InnoSetup MultiArc Addon

Post by *deus-ex »

@Usher

You simply copy/paste it (click the blue "select all").
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: InnoSetup MultiArc Addon

Post by *Usher »

2deus-ex
Oh, it's only the .addon description changed. I thought you provided some binary files as well.
I assume that all needed files are linked in the comments in the .addon.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
deus-ex
Power Member
Power Member
Posts: 969
Joined: 2003-02-10, 17:45 UTC

Re: InnoSetup MultiArc Addon

Post by *deus-ex »

@Usher

Exactly. I added the links mainly for beginners to get them a good start, and for the sake of completeness.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: InnoSetup MultiArc Addon

Post by *MVV »

I've updated package on totalcmd.net. :D
User avatar
deus-ex
Power Member
Power Member
Posts: 969
Joined: 2003-02-10, 17:45 UTC

Re: InnoSetup MultiArc Addon

Post by *deus-ex »

Hi MVV,

many thanks. I couldn't have done the new release without your great support for MultiArc.
TychoBarfy
Senior Member
Senior Member
Posts: 340
Joined: 2005-08-13, 15:13 UTC
Location: Berlin, Germany
Contact:

Re: InnoSetup MultiArc Addon

Post by *TychoBarfy »

There are Inno Setup installers using lzma2 instead of lzma compression,
where ExtractWithPath produces 0 byte files on extraction.
Using Extract with BatchUnpack set to 0 works, but it is very slow.
Is there anyone knowing a solution or workaround in MultiArc?

I know solutions like Uniextract, InnoExtractor or InnoUnpack
but preferre the easy of use of MultiArc?

File example with Inno Setup Setup Data (6.0.0.0):
https://fileforum.com/detail/Highlight-for-Windows/1028713443/1

I use ad-don provided by deus-ex since today.

EDIT: May be that's a question for InnoUnp developer?!
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: InnoSetup MultiArc Addon

Post by *Usher »

TychoBarfy wrote: 2021-04-10, 14:05 UTC There are Inno Setup installers using lzma2 instead of lzma compression,
File example with Inno Setup Setup Data (6.0.0.0):
EDIT: May be that's a question for InnoUnp developer?!
Have you tried the latest InnoUnp v0.50? It should support Inno Setup 6.0 and 6.1.
See this discussion: https://sourceforge.net/p/innounp/discussion/353235/thread/23cf78c92c/?limit=25#57d5
Andrzej P. Wozniak
Polish subforum moderator
User avatar
deus-ex
Power Member
Power Member
Posts: 969
Joined: 2003-02-10, 17:45 UTC

Re: InnoSetup MultiArc Addon

Post by *deus-ex »

The issue remains with InnoUnp v0.50. Actually, I didn't think of setting BatchUnpack=0 until TychoBarfy mentioned it. Also, wouldn't have guessed this to be an issue because of the LZMA2 compression. Good find, TychoBarfy.
TychoBarfy
Senior Member
Senior Member
Posts: 340
Joined: 2005-08-13, 15:13 UTC
Location: Berlin, Germany
Contact:

Re: InnoSetup MultiArc Addon

Post by *TychoBarfy »

InnoUnp can handle lzma2 compressed installers.

Following command extracts all files and dirs correctly:

Code: Select all

c:\totalcmd\Pack>innounp -x -b -m -q "f:\Test\Installers\lzma2\highlight-setup-4.0.exe" -d"f:\Test\Installers\lzma2\Extracted\"
; Version detected: 6000 (Unicode)
MultiArc's %L list creation method works fine and MultiArc unpacks all files as it
should too but doesn't stop processing when decompression is finished (I have to kill TC),
if I change ExtractWithPath method as follows:

Code: Select all

ExtractWithPath=%P -x -b -m -q %AAQ -d"f:\Test\Installers\lzma2\Test\"
Last edited by TychoBarfy on 2021-04-12, 14:29 UTC, edited 3 times in total.
Post Reply