Validate TargetDir

Got a problem you cannot solve? Try here.
Post Reply
anja_laenge
Posts: 131
Joined: Tue Nov 20, 2012 1:02 am

Validate TargetDir

Post 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
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Validate TargetDir

Post 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/4396 ... -usb-drive

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply