Make a directory with an Id of PERSONALFOLDER. Make a directory under that directory that is named "Foo". Install into that child directory.
Make a secure property with an Id of PERSONALFOLDER (must be spelled exactly the same) and inside the content of the Property element perform your registry search. If the registry search can't find the directory it is looking for, the directory table will establish the location of that directory. If the registry search DID find the directory you are seeking, that property's value will become PERSONALFOLDER's path, and Foo will always be a subdirectory of PERSONALFOLDER. -----Original Message----- From: John Robbins [mailto:j...@wintellect.com] Sent: Thursday, November 12, 2009 10:57 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Dynamically change the install directory Hello, My Bing/Google skills are failing me and I know I'm missing something obvious. What I'd like to do is have an install that defaults to PersonalFolder\Foo, but if the results of a registry search turns up a different directory, my install uses <Found in Registry Directory>\Foo as the installation directory instead. Any help greatly appreciated. John Wintellect http://www.wintellect.com 877-968-5528 ---------------------------------------------------------------------------- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users