Hello all,
I am new to NSIS, so please forgive me for my ignorance. I have a requirement where a NSIS installer needs to extract a ZIP file which should be contained in the NSIS installer .exe and then update a properties files whose values are input in the NSIS installer wizard post installation.
Couple of questions:
1. How do include the zip in the exe installer generated from an NSIS script ? Such that during installation it gets extracted to a user input folder.
2. Is there anyway to update a properties files (basically a text file) after the installation is complete ?. The values of which are entered in the NSIS installer wizard.
NSIS Installer to include zip files and edit properties file
4 posts
1) It makes no sense to include a .ZIP file inside the installer if you are just going to extract the files anyway. You might as well just include the unzipped contents normally in NSIS with "File /R".
2) What is the format of this file? .INI? Just a .TXT where you can append data to the end?
2) What is the format of this file? .INI? Just a .TXT where you can append data to the end?
Thanks for the update
-The file is basically a text file, with the extension of .properties
-Yes I can append the data at the end.Originally Posted by Anders View Post2) What is the format of this file? .INI? Just a .TXT where you can append data to the end?
-The file is basically a text file, with the extension of .properties
Appending is simple
FileOpen $0 "$InstDir\my.properties" a
FileWrite $0 "Appending a new line$\r$\n"
FileClose $0