Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Suppress "Error opening file for writing" Message from Script (http://forums.winamp.com/showthread.php?t=392487)

parasoul 26th May 2016 17:34

Suppress "Error opening file for writing" Message from Script
 
How can one suppress the "Error opening file for writing" error message from the script?

It's not practical to suppress it by running the installer with the specific command line, I need to do it from within the script

Any way how?

Anders 26th May 2016 20:36

"SetOverwrite off" if the problem is a existing file.

Or you could try to see if you can write there first:
PHP Code:

Section
FileOpen 
$"x:\dummy" a
FileClose 
$0
StrCmp 
"" $+2
File 
"/oname=x:\dummy" "${__FILE__}"
SectionEnd 


parasoul 27th May 2016 22:15

thanks!


All times are GMT. The time now is 17:19.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.