Validate TargetDir

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

Validate TargetDir

Postby anja_laenge » Fri Nov 15, 2013 4:06 am

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

Postby FrancescoT » Fri Nov 15, 2013 12:46 pm

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


Return to “Technical Support”

Who is online

Users browsing this forum: pfennig and 97 guests