If you are installing based on an already installed product, don't let the user browse to the installed location; they may get it wrong or not know where it's installed.  Instead, use a registry or directory search to find where the installed application resides and set the path in a property.   As for finding the parent directory, you will probably have to write a custom action that reads the property that was set from the search, calculates the parent directory, and sets a new property containing the parent directory path.  You could schedule that CA to run right after RegistrySearch and/or DirectorySearch.


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Thursday, August 17, 2006 8:49 AM
To: [EMAIL PROTECTED]; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] how to get parent directory of a folder

Thanks for your response.

That scenario is taken care of. Actually the user will chose the path for an installed product that is having directory path up to 3 levels deep.

 


From: John Vottero [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 17, 2006 6:17 PM
To: Swain, Bibhuti Bhusan (Eq,FI&RWM); wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] how to get parent directory of a folder

 

What happens when the user picks C:\?

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Thursday, August 17, 2006 7:57 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] how to get parent directory of a folder

Hi,

            I have a requirement to install some files in a folder (chosen by user) and some other files to the parent of that folder. Now I am getting the folder by providing a browse dialog and getting in a property. Can any one tell me how to get the parent directory of that folder? i.e. how to modify the property, having the folder path, to get it’s patent directory.

 

Thanks

Bibhuti

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to