|
|
#1 |
|
Junior Member
Join Date: Sep 2007
Location: England
Posts: 3
|
/D= not working on remote drives
Hi all
I'm using installdir with /D= to force a default path however this appears to only work on my local c:\ drive. e.g. Setup.exe /D=C:\Temp //Works Setup.exe /D=M:\Temp //Fails InstallDir is hardcoded in the scipt. I do not use InstallDirRegKey. When specifying any drive other then c:\ the installer defaults to the InstallDir path in the script. Any hints on how I can get this to work? Thanks in advance. Paulc |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
|
works for me
example1.exe /D=G:\test <<internal sata drive example1.exe /D=Z:\test <<shared folder (mapped drive) example1.exe /D=\\Megatron\Public\test <<UNC path IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Sep 2007
Location: England
Posts: 3
|
I'm going to try this on an XP machine. I'm trying this on Vista at the moment. I'm getting some v.strange results using UNC paths now...
setup.exe /D=\\servername\test << fails setup.exe /D=\\servername\test\test.txt << this works?! |
|
|
|
|
|
#4 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
|
AllowRootDirInstall might come in to play here, not sure, anyway with a UNC path like \\servername\test, test is not a folder, but the share itself. setting AllowRootDirInstall to true and using setup.exe /D=\\servername\test\ (with ending backslash) might work (to lazy to test right now)
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#5 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
If the problem shows only on Vista, it's UAC. When a process is elevated, it gets no access to your shares and cached credentials.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Sep 2007
Location: England
Posts: 3
|
Spot on. Vista and its UAC component was the problem. Thanks for your help.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|