Archive: Adding files after installer created


Adding files after installer created
Hi!
I would like to be able to add configuration files after the executable is created because installer is used by different users and each one of them should have unique settings (it should be dynamically because settings change every period of time)
Does anyone know if this is even possible, and if so, how?

Thanks


You can add an install.ini and read that upon runtime.
http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.2.10

You can even write the info into the exe file (append), then loadcustomerdata to get it.


add directory
Thanks for your answer
I need to add complete directory to the exe installer dynamically (after installer created).
In the other hand i want to deliver singel installation exe without other resources.
So it doesn't help me...


Every solution I can think off requires the package to be recreated.

You can have the installer check for the existence of a compressed archive then extract it. I've used this for handling patches without the need to recompile the package.

Since you want only a single resource file this isn't the best solution unless you allow the package to check a web page or network resource for changes.

You could use a resource editor to "attach" additional file to the exe but you will need to disable the CRC checks in the initial package to prevent errors at the risk of corrupt installations.


Or you could download the package to install; which could be another NSIS installer.

Edit: The download URL itself could be appended using:
http://nsis.sourceforge.net/ReadCustomerData

Stu