Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 3rd June 2001, 14:07   #1
ddyne
Junior Member
 
Join Date: Jun 2001
Posts: 2
Send a message via ICQ to ddyne
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
ddyne is offline   Reply With Quote
Old 3rd June 2001, 14:50   #2
Gonzotek
Gunslinger
 
Gonzotek's Avatar
 
Join Date: May 2000
Location: Terminus
Posts: 4,693
code:

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.

I was away for a while.
But I'm feeling much better now.
Gonzotek is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump