Old 30th July 2010, 00:00   #1
jdt2oo7
Member
 
Join Date: Oct 2009
Posts: 72
Error opening file for writing

Hello all,

I am seeing "error opening file for writing" randomly on some of the 64 bit Windows 7 and Vista for one of the dll. Not sure why it only happens randomly.

Here is how I have it:

-----
; at the beginning
RequestExecutionLevel user

; .onInit section
UAC plugin

; Install section
${If} Running_64
ExecWait '"$SYSDIR\regsvr32.exe" /s "$INSTDIR\Namespace.x64.dll"'
ExecWait '"$WINDIR\SysWOW64\regsvr32.exe" /s "$INSTDIR\Namespace.x86.dll"'
${Else}
ExecWait '"$SYSDIR\regsvr32.exe" /s "$INSTDIR\Namespace.x86.dll"'
${EndIf}

------

Many thanks!
jdt2oo7 is offline   Reply With Quote
Old 30th July 2010, 10:39   #2
jiake
Senior Member
 
jiake's Avatar
 
Join Date: Oct 2007
Location: Xi'an, China
Posts: 206
'Error opening file for writing' appears only when a file couldnot be overwritten. You may use the code "SetOverWrite try".
jiake is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast 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