View Single Post
Old 18th April 2017, 07:56   #1
Junior Member
Join Date: Apr 2017
Posts: 2
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_FINISH
!insertmacro MUI_LANGUAGE "English"
Section "Files"
SectionIn RO
File "install\ReadMe.txt"
WriteRegStr HKLM SOFTWARE\test "Install_Dir" "$INSTDIR"

weke is offline   Reply With Quote