Error opening file for writing even when OverWrite is ON
Hello,
My "Executables" section has the following statement:
Section"Executables" SEC01
SetOutPath "$INSTDIR"
LogSet On
>
Then I do a conditional inclusion on Win2K by using the following code:
GetVersion::WindowsName
Pop $R0
StrCmp $R0"Windows XP" +4
StrCmp $R0"Windows Server 2003" +3
File "..\lib\gdiplus.dll"
File "..\lib\shfolder.dll"
Strangely, I always get the error from NSIS:Error opening file for writing. Click abort to stop the installation
This only happens if the file is already existing in the installation folder. If I delete the file and start the installation it goes on OK.
What am I missing?
-- Ritesh