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. :)