View Single Post
Old 21st April 2020, 19:45   #10
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,296
Quote:
SetOutPath $Templates
File "${__FILE__}"
MessageBox mb_ok "Go check $Templates"
Delete "$Templates\${__FILE__}"
Works just fine for me on Win10.

Perhaps your profile is locked down somehow? Try Process Monitor and see why it fails to create the directory.

And if I do:
Quote:
SetOutPath $temp
StrCpy $OutDir "$temp\doesnotexist"
File "${__FILE__}"
I get a retry/abort/ignore messagebox.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote