Skip to content
⌘ NSIS Forum Archive

Missing mapped drive letter on elevated Windows 10

5 posts

weke#

Missing mapped drive letter on elevated Windows 10

I tested my own setup created with NSIS 3.01 on two machines. First on Windows 7 Pro 64Bit and on Windows 10 Pro 64 Bit.
Both use a network share created in a login script with the following command:
net use N: \\MyServer\SharedFolder\
When I test the setup only on windows 7 the Drive N: could selected or entered manually as a Directory. On Windows 10 N: isn't allowed and was not shown in Drive List (only in NSIS, Drive N was shown in Explorer).

Is this a known bug or did I miss an Option in my script, which I coundn't found in the help files and forum?
The same behavior I could found with the official installer of NSIS 3.01.

Here my test script:
!include "MUI2.nsh"
Name "Test Setup"
OutFile "Setup.exe"
InstallDir $PROGRAMFILES\test
InstallDirRegKey HKLM "Software\test" "Install_Dir"
RequestExecutionLevel admin
;--------------------------------
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE license.txt
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_LANGUAGE "English"
;--------------------------------
Section "Files"
SectionIn RO
SetOutPath $INSTDIR
File "install\ReadMe.txt"
WriteRegStr HKLM SOFTWARE\test "Install_Dir" "$INSTDIR"
SectionEnd
Anders#
Mapped drives are not necessarily available to elevated processes, this is just how Windows works: https://support.microsoft.com/en-us/...als-in-windows
weke#
Hi Anders,

thanks a lot, that is the result.
I'm wondering that I've got this behavior only with my win 10 and not with win 7 ??
I will check my configuration of both systems, but now I know what I have to look for.
Anders#
Originally Posted by broski View Post
Thanks Anders, It works fine now.
For future reference, did you change the registry or some other hack to fix it?