The problem is old, but I can't find solution. I'm using NSIS 3.0b1 version.
Here is my code(removed most of it)
Then user launches setup he gets error: "Error opening file for writing X:\Sam\file.lik"RequestExcutionLevel admin
AllowSkipFiles Off
Section "MainSection" SEC01
SetOverwrite On
File "..\..\file.lik"
Problem comes only then user has mapped drivers using Win7/10. I even set UAC to "Never notify me" then log off/login and still error pop-up.
User can manually open "X:\Sam\" folder and write/delete or modify files.
I also launched old example:
Result - setup for some reason can't see mapped drive, then I press Browse MappedDrive icon is showing small icon disconnected.Name "mapped drive test"
OutFile "mapped drive test.exe"
InstallDir "X:\Sam\"
Page Directory
Page InstFiles
Section
SectionEnd