It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
Hi there.

After hours of sifting through the web and using GOG.com's search feature, I failed to find an answer to my issue.

For the sake of curiosity, I have extracted several of my GOG installers using InnoUNP. I'll use Dragonsphere as an example here.

Using Inno Script Studio (5.5.4 unicode version) I attempted to simply recompile the executable with the .iss script taken right from the original installer. I am confronted with numerous errors, which has me curious if it's something I'm doing wrong.

The first is in the [ini] category.
'FileName: "{code:UninstallIni}"; Section: "GOGDRAGONSPHERE"; Entry: "Files"; Value: "{code:GetIncInt|GOGDRAGONSPHERE}";'
The use of Entry triggers an unrecognized parameter error code. I am able to remedy this by changing "Entry" to "Key", and changing any references to "Value" to "String".

The "Check"s also trigger unrecognized parameter error codes, "isWindows8", "IsVista" and so on.

It goes on from there. So my question is -- can anyone else cleanly extract and recompile the GOG installers using this method? I have a creeping suspicion it's a Stupid User Error on my part.
This question / problem has been solved by Elenarieimage
If you're getting errors regarding the CODE section, remember, innounp cannot extract the Pascal code. Thus, the extracted script only contains the Inno Setup specific code, making any references with "code:..." invalid.

If you want to learn how to do this properly, screw GOG's installers. Install the game, then copy paste the files somewhere, uninstall the game and remove all traces of it, and start writing the ISS script file from scratch.
avatar
Elenarie: If you're getting errors regarding the CODE section, remember, innounp cannot extract the Pascal code. Thus, the extracted script only contains the Inno Setup specific code, making any references with "code:..." invalid.

If you want to learn how to do this properly, screw GOG's installers. Install the game, then copy paste the files somewhere, uninstall the game and remove all traces of it, and start writing the ISS script file from scratch.
Ahh, that makes a lot of sense about the missing code. Though I was under the (mistaken?) impression that InnoUNP's -m flag did extract the code, in ~/embedded/CompiledCode.bin. But perhaps not in any usable form?

And thank you for your reply!

Edit -- Ah, here we go, from the InnoUNP website. "If -m is specified, the file listing includes embedded\CompiledCode.bin which is the code made by the RemObjects Pascal Script compiler. It is possible to disassemble it using the ifps3_disasm.rar package on the download page. The result is not very readable though since it uses the basic 'disassembler' from IFPS3. Anyone wants to write a decompiler?"

So yah, not usable as is I suppose. Starting from scratch is the way to go then indeed. :)
Post edited December 17, 2013 by drowpie