Archive: Installer help


Installer help
I am very new to writing scripts and wanted to know if anyone could help. I have my footer.nsh (attached) which calls for the writefiles.inc file (below) when compiling, what I basically need is a way for the installer to check the PC if the file on line 7 in the writefiles.inc exists and not overwrite the existing file if found. Any assistance that anyone can give would be greatly appreciated.

SetOutPath "$INSTDIR"
File "${DIST_PATH}\Fever Frenzy.exe"
File "${DIST_PATH}\FeverFrenzy.ico"
File "${DIST_PATH}\legacygames.ico"
File "${DIST_PATH}\legacyinteractive.url"
File "${DIST_PATH}\License-legacy.txt"
File "${DIST_PATH}\LicFever Frenzy.ini"
File "${DIST_PATH}\moregames.url"
SetOutPath "$INSTDIR\data"


You can use the SetOverwrite function for this.
See chapter 4.8.2.8 from the NSIS manual.