Archive: CopyFile Functionality


Hi there,


I'm using NSIS to distribute my Half-Life game modification..

Before the install starts, I have it backup some key files so users can revert to an older version with the uninstaller. It works fine if the files exist, however if they don't, CopyFiles barfs and halts the installer. I tried to do an IfErrors check, but apparantly CopyErrors faults and stops NSIS internally, without setting the IfErrors error flag.

My request to the developers is: Please take out the fatal error from CopyRequest and make it a NSIS error flag we can check with IfErrors.

Thanks for the awesome program!

David



IfFileExists file_to_check_for jump_if_present [jump_otherwise]
Checks for existence of file(s) file_to_check_for (which can be a wildcard, or a directory),
and Gotos jump_if_present if the file exists, otherwise Gotos jump_otherwise


Do an IfFileExists before your CopyFiles.