Archive: Compile install script inside another installer


Compile install script inside another installer
I have a client/server product I am trying to generate installers for. I would like to be able to do one of two things:

1. Have the server installer compile the client installer during installation. The user would select some options, click Install, and during the server installation it would use those options to build the client installer. The key to this is to not need NSIS installed at any location we try to install the server.

2. Be able to update an existing NSIS *.EXE package once it has been created. The server would perform as before, though it would have a pre-compiled client package. It would edit values in that package and write it to disk.

If anyone has another idea, I am open to suggestions.

Thanks


I am not familiar enough with NSIS compiler to know what all you would need to include to do on the fly compiles without actually installer NSIS. However, it sounds like you needed something similar to what I needed. We have many sites who each have a server and many clients. Each client has certain settings and files which make it aware of the server and further customize the client for that site. I use a modification of the "Update an existing INI file with values from an updated INI file" from the nsis wiki:
http://nsis.sourceforge.net/Update_a...dated_INI_file

Even if you are not using ini files in your application, if your goal is to customize what components get installed by the client and include connection information or anything settings like that. You could have your server installer simply write that all out to ini files which go in the $EXEDIR\Custimizations\ directory of the premade client installer. The client isntaller would be designed to check that directory for certain ini files and read them to determine how it should behave.