In C++, I think I'd start with the path functions. If you have a path from the browse for the installation folder,  PathGetDriveNumber will return a number from 0 to 25 corresponding to A: through Z:
 
I did a quick test - include shlwapi.h and link to shlwapi.lib, and PathGetDriveNumber on "C:\Documents and Settings\All Users\Documents" returns 2 as expected.
Phil Wilson
(949)639-1680
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Watts
Sent: Tuesday, September 26, 2006 11:54 AM
To: [EMAIL PROTECTED]; Bob Arnson
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] How would I parse a path?

I wondered who would be the first to ask… J

I can’t get into details but our requirement is that our application must be installed on a volume other than where the OS is installed.  By the way, this is not a consumer product.

__________

Doug Watts

 


From: Rob Mensching [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 26, 2006 2:50 PM
To: Douglas Watts; Bob Arnson
Cc: wix-users@lists.sourceforge.net
Subject: RE: Re: [WiX-users] How would I parse a path?

 

Since Derek is gone, I guess it's my role to ask this question again,

 

"Why do you have to do this?"

 

> My installer needs to install on a volume other than

> where Windows is installed (it’s a security issue for

> our app).  I can use the WindowsVolume property

> to find the drive Windows is installed on; I can have

> the user specify the installation directory (and

> drive).  But I need to verify that the install dir is on

> a different drive than Windows.

 

What security does it provide?  What are you protecting against?

 
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to