Find what error happens during file open?
I want to find what error happens during file open for read.
Code:
ClearErrors
FileOpen $R3 "$0" r
${If} ${Errors}
DetailPrint "Error opening file '$0' for read."
${EndIf}
StrCpy $R1 0
Log: (using NSIS with logging)
detailprint: FileOpen $R3 "c:\inetpub\wwwroot\PortalBuilder\App_Data\Uninstall\UILayer.log" r
detailprint: Error opening file 'c:\inetpub\wwwroot\PortalBuilder\App_Data\Uninstall\UILayer.log' for read.
The file
exists
I can open it in notepad and read the contents.
I'm using NSIS 2.36 (And can upgrade if needed)
Other file was opened okay using the same code.
Than you in advance for any response.
Tomas Tintera