hi at all!
what i try to do is:
make an installer with update function through reading an xml file.
this works fine for me!
but i also like to pack these files through reading the same xml file at compile time that dont need to change all implemented files!
i hope everybody understands my poor english!
get files to pack from a txt or xml file
2 posts
I suggest you use something like this in your installer code:
File /r "${SOURCE_PATH}"
And then you compile your script like that:
makensis.exe "/DSOURCE_PATH=C:\Temp\File to Pack" MyInstaller.nsi
You can easy extend this by writing a little script, e.g. in Batch Script, that will first create an new/random sub-folder in %TMP%, then copy/move all files to be included in the installer there and finally invoke MakeNSIS with "SOURCE_PATH" set to the proper path.
From there, it's just one more step to get the file-list from an XML file or whatever format...
File /r "${SOURCE_PATH}"
And then you compile your script like that:
makensis.exe "/DSOURCE_PATH=C:\Temp\File to Pack" MyInstaller.nsi
You can easy extend this by writing a little script, e.g. in Batch Script, that will first create an new/random sub-folder in %TMP%, then copy/move all files to be included in the installer there and finally invoke MakeNSIS with "SOURCE_PATH" set to the proper path.
From there, it's just one more step to get the file-list from an XML file or whatever format...