Use a Type 51 Custom Action. <Directory Id="GITLOCATION" Name="Git"> [author your plug-in components & directory structure here] </Directory>
<CustomAction Id="SetPluginInstallLocation" Property="GITLOCATION" Value="[GITSEARCHPROPERTY]" /> <InstallExecuteSequence> <Custom Action="SetPluginInstallLocation" After="AppSearch" /> </InstallExecuteSequence> Substitute GITSEARCHPROPERTY for whatever you have named the Property you populate with the RegistrySearch. That way GITLOCATION will be dynamically set depending on the RegistrySearch result. You may want to also use the RegistrySearch Property in a LaunchCondition so your installer doesn't try to install when Git isn't installed (unless the plug-in is an optional component of your installer in which case use the Property as a Feature or Component Condition instead). Palbinder Sandher Software Deployment & IT Administrator T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the <Virtual Environment>** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -----Original Message----- From: Wilbert van Dolleweerd [mailto:wilb...@arentheym.com] Sent: 21 January 2011 13:54 To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Installing a file in a directory found withregistrysearch Hello, I wrote an installer that installs my application in Program Files\[Company Name]\[Product Name].This is a plugin for Git. I need to install my plugin *and* add the correct hook to the Git directory. Where Git is installed, is found out by using a registrysearch. I'm using the registrysearch to place the directory where Git is installed in a property. However, I'm at a loss how to use this property to install my hook in the correct directory. Can anyone give me any pointers? -- Kind regards, Wilbert van Dolleweerd Blog: http://walkingthestack.wordpress.com/ Twitter: http://www.twitter.com/wvandolleweerd ------------------------------------------------------------------------ ------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users