Archive: Update file inside the installer


Update file inside the installer
Hello,

Is it possible to change with a script a file inside an installer without compile it.
I tryed 7za u setup.exe myfiletochange but setup.exe is not supported archive.

Thanks


Your question is not clear. Please restate your question. What do you want to accomplish exactly?


I've an installer called setup.exe created with nsis.
setup.exe is an archive: I can explore it using an unzipper like 7-zip.
The setup.exe will install several files. The problem I want to solve is that one of these files have to be modified very frequently. As it is very fast to update a file within an archive using a software like 7za compared to of compilation of the setup.exe I asked if is it possible to update a file within a setup.exe without a compilation.


I don't think this is possible.

Even if you could replace the file, the installer would then fail with checksum error.

You'd have to disable CRC check (bad idea!) or modify the checksum too - but that's probably not worth the effort.

Instead, you could leave the problematic file outside the installer and just have the installer copy it over.

If necessary, you could simply bundle the installer.exe and the additional file in a simple 7-Zip SFX file, for example.

Or you could append the extra file to the end of the installer EXE after compiling the installer...


Or you could download the file with inetc/NSISdl.

Stu