|
|
#1 |
|
Junior Member
Join Date: Oct 2006
Posts: 3
|
Hello All,
My first post here, and I am in a bind. When installing files to an empty directory which already exists, NSIS throws the error ""error opening file for writing" for every single file. I have tried: SetOverwrite on Also, I tried: AccessControl::GrantOnFile "$INSTDIR" "Everyone" "FullAccess" These don't fix the problem. Is there any solution to this issue? -Alex |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
What's the complete error message? Sounds like you forgot to use SetOutPath.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Oct 2006
Posts: 3
|
* Code looks like this:
SetOverwrite on SetOutPath $UPGRADE_PATH DetailPrint "Skipping Info.mdb for upgrade." File /r /x "Info.mdb" "..\Files\*.*" * Complete error message is: "Error opening file for writing:" \Data\Guide.mdb Click Abort to stop the installation, Retry to try again, or Ignore to skip this file. |
|
|
|
|
|
#4 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
If that's the error, $UPGRADE_PATH is empty. The error always displays the full path of the file it's trying to write.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Oct 2006
Posts: 3
|
I think I found my bug - $UPGRADE_PATH was empty, so there was nowhere to output the files to. Thanks for your assistance, it led me to find the answer I needed.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|