This is related to this other question. I need to dynamically generate a custom Windows EXE installer from a *nix machine (running PHP, or whatever) that contains custom files to be installed on the client's machine.
This will be used to generate client-specific OpenVPN installers based on their preferences and authentication information. Runtime is not important, as it can be done async.
Some ideas, already tried and not working:
- Use a scheme similar to ninite.com, where the downloaded executable is always the same, but the filename is different, so the installer uses the information in the filename to make decisions.
- Using a resource editor to edit a prebuilt installer's resources. Not only are unix resource editors for windows executable rare, it also creates new problems, and don't solve the problem of different files being installed.
What would work best is a NSIS/InnoSetup compiler (targeting Windows) running on UNIX, but other inventive solutions are okay.