I have a directory structure that needs to be added to the installer. I have 3 different versions of my script installation, and one of them is updating the script, it requires the exclusion of a specific file and subdirectory in my installation directory. So I do the following:
File /r /x ${InputDir}\data\someFile.xml /x ${InputDir}\data\derbydb\runtime\*.* ${InputDir}\*.*
The xml file and the derbydb directory are already present (since this is an update), and therefore I do not want to overwrite them. However, when I run the installer, I clearly see that both files are overwritten, and, in addition, viewing the generated setup.exe file with 7zip shows that they are also added. You can just call
File /r ${InputDir}\*.*
So what is going on here? I wish NSIS would get better documentation or retype their command parameters / syntax. (/ Bombastic)
Rex
source share