![]() |
New InstallShield script format?
Hi,
I've tried to decompile an InstallShield installation script file (setup.inx) with isdcc and sid. Both attempts failed. Is Installshield using a new script format in there latest products and are there tools to decompile those scripts? MrHalo |
AFAIR "isdcc" supports scripts for IS v5.5 and below (setup.ins). "sid" and "isd" supports v6+, but starting from v8 additional mangling is applied to the setup.inx. Try de-mangle it with the following code:
Code:
#include <stdio.h> |
Thank you for the code Dmit.
But the code like you posted it here doesn't correctly work for me and perhaps for others neither. I compiled it with VC++ ("ISDHelper.exe") and tried it with some encrypted SETUP.INX files. I tried the following commands: "ISDHelper < SETUP.INX > NewSETUP.INX" and "Type SETUP.INX | ISDHelper > NewSetup.INX" But both commands truncated the output file at different locations and didn't fully decrypt it. The same result with DMC. Then I used BC++ to compile (I had to rename "_setmode" to "setmode" and it worked fine. What could be the reason for this? |
XOR_VAL must be 0x0E (or not(0xF1))
|
Quote:
Quote:
|
Installshield 6/7 script decompiler
1 Attachment(s)
You can Use Installshield 6/7 script decompiler for decompile InstallShield 6/7 Script :)
|
for binary files, use feof() function, don't use EOF macro.
|
Quote:
Quote:
|
@Dmit:
For me TYPE only truncates the output if it is directed to the console. As soon as it is redirected to any other file or any other program, it fully copies the filecontents. My BC++ compiled copy worked with the TYPE command just like the other way. The VC++ and DMC copies truncated the file somewhere after 100kb or something (each one at the different position), so I guess (and tested) that there was at least one 0x1A before that file position. @wasq: For me it works with 0xF1 as XOR value. Using 0x0E gives me the wrong output. |
@ wasq: 0xF1 is the right XOR value.
I started a small project and decrypted a setup.inx with ISDHelper, then I worked on it with SID (Sexy InstallShield Decompiler) and rebuild the original crypted setup.inx. All worked fine. Here is my solution for rebuilding the crypted INX: Code:
//Usage: ISDGoBack.exe <newsetup.inx> setup.inx |
@sackpower
sorry. the original IS decrypting algorithm in isscript.dll uses (not(char)) xor (not (0xF1)) and this is realy equal to char xor 0xF1. i forgot about the second not(). |
@Dmit
Worked fine when compiled with VC++ 6.0 as a W32 Console App. Thanks, I thought they had done something totally new but all it good again. @sackpower Couldn't get yours to work for some reason :( xtx |
Quote:
|
IMHO reading crypted *.inx into memory buffer, then xor this buffer, and write back xored buffer into second file would be better.
regards. |
1 Attachment(s)
@xtx:
I'm using VC++ 7 (VS 2003) and for me everything works fine. Maybe the attached sample project will help you (please change the path in the .bat file or use the current directory instruction: set APP_PATH=%CD%). Sackpower |
1 Attachment(s)
@ dmit
i tried decrypting a setup.inx file using ur c++ code. but i m not able 2 compile ur code successfully,,,,, i used turbo c++, and getting errors.. during compilation,,, may i have a compiled script for ur code.... my setup.inx file is attached thanx TDW {RES} |
1 Attachment(s)
@ TDW
Here is your decrypted setup.inx file (look at newsetup.inx) regards sackpower |
@ power..
pal..will check it out... and c if it works.... or not... thanx TDW {RES} |
@ TDW
I have a compiled version based on the code below if you would like it just email me xteaze [at] excite [dot] com xtx Code:
//Usage: ISDGoBack.exe < new version setup.inx > old version setup.inx |
thanx pal...
but is this code different from the 1 posted above,,, cause i downloadede the compiled exe file that was attached previously..... and just received the isdhelper also... from another member.. thanx 4 helpin... TDW {RES} |
@ TDW
No difference in the end results, only in the compiler and the fact that the code I posted became some merged version of dmit's and sackpower's code after I couldn't get either to compile right (totally my fault). Just thought that you were still having problems getting the code to compile. Also forgot that sackpower included an executable and code in response to my earlier posts after I had issues. That is what happens when I haven't touched on a topic for almost a year. xtx |
its ok pal...
i got it working now... also completed my work... i was tryin 2 patch an msi file for the game gun, i was creating a cd to dvd conversion stuff,,, so needed 2 patch msi. but this games setup is a bit different from other games,,,, thats y... thanx TDW {RES} |
| All times are GMT +8. The time now is 11:03. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX