Old 24th September 2007, 09:00   #1
paulc1981
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
paulc1981 is offline   Reply With Quote
Old 24th September 2007, 09:15   #2
Anders
Moderator
 
Anders's Avatar
 
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
Anders is offline   Reply With Quote
Old 24th September 2007, 09:38   #3
paulc1981
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?!
paulc1981 is offline   Reply With Quote
Old 24th September 2007, 10:04   #4
Anders
Moderator
 
Anders's Avatar
 
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
Anders is offline   Reply With Quote
Old 24th September 2007, 18:47   #5
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
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
kichik is offline   Reply With Quote
Old 27th September 2007, 13:46   #6
paulc1981
Junior Member
 
Join Date: Sep 2007
Location: England
Posts: 3
Spot on. Vista and its UAC component was the problem. Thanks for your help.
paulc1981 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump