Page 1 of 1

Validate TargetDir

Posted: Fri Nov 15, 2013 4:06 am
by anja_laenge
Hello,

is there a way to check the selected targetdir path for being a non network path?
The user must not be able to install one of the setup types to a server or mapped drive. I can check for double backslashes but how to identify a mapped drive?

Thanks in advance

Re: Validate TargetDir

Posted: Fri Nov 15, 2013 12:46 pm
by FrancescoT
Dear Anja,

Unfortunately, a mapped drive can't be identified by its path.

I suppose this will be possible only with developing an external component for that (an EXE or a DLL).

I can only suggest to have a look at the following link;
http://stackoverflow.com/questions/4396634/how-can-i-determine-if-a-given-drive-letter-is-a-local-mapped-usb-drive

Regards