Skip to content
⌘ NSIS Forum Archive

NSIS problems with Mapped drivers

3 posts

bankeris#

NSIS problems with Mapped drivers

Hello,

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)

RequestExcutionLevel admin
AllowSkipFiles Off
Section "MainSection" SEC01
SetOverwrite On
File "..\..\file.lik"
Then user launches setup he gets error: "Error opening file for writing X:\Sam\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:

Name "mapped drive test"
OutFile "mapped drive test.exe"

InstallDir "X:\Sam\"

Page Directory
Page InstFiles

Section
SectionEnd
Result - setup for some reason can't see mapped drive, then I press Browse MappedDrive icon is showing small icon disconnected.
Anders#
Did you try a forum search?

This is just how UAC works. It has been like this since Vista, mapped drives are not preserved across UAC boundaries. This is by design, you can probably find more info about it on MSDN and/or the building Vista/7 blogs...

And why are you using an old beta version?

See also:
bankeris#
So there is no any workaround even hard?
Other setups face same problems?

I have updated version, thanks. I'm not creating anything new for the last few years, so it was fine for me to use that old version xexe.