Skip to content
⌘ NSIS Forum Archive

Suppress "Error opening file for writing" Message from Script

3 posts

parasoul#

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#
"SetOverwrite off" if the problem is a existing file.

Or you could try to see if you can write there first:
Section
FileOpen $0 "x:\dummy" a
FileClose $0
StrCmp "" $0 +2
File "/oname=x:\dummy" "${__FILE__}"
SectionEnd