Archive: /D= not working on remote drives


/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


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


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?!


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)


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.


Spot on. Vista and its UAC component was the problem. Thanks for your help.