We do this to target a support MSI to a previous MSI's installed location. <Upgrade Id="0D8C6A17-F72C-4CA2-912D-925D65BA1548"> <UpgradeVersion Minimum="1.0.0" IncludeMinimum="yes" Maximum="10.0.0" IncludeMaximum="no" Property="ENT_SERVICE_PRODUCTCODE" OnlyDetect="yes"/> </Upgrade>
<Property Id="ENT_SERVICE_PRODUCTCODE" Secure="yes"/> <!-- Get the INSTALLDIR of EnterpriseServices if it has been installed (which it should have been). --> <Property Id="ENT_SERVICE_INSTALLDIR" Secure="yes"> <RegistrySearch Id="GetENTServCoreInstallLocationFromRegistry" Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[ENT_SERVICE_PRODUCT CODE]" Name="InstallLocation" Type="raw"/> </Property> <!-- Set INSTALLDIR to the same value as Ent services' if it was found else keep previous value. --> <CustomAction Id="SetINSTALLDIRFromEntServ" Property="INSTALLDIR" Value="[ENT_SERVICE_INSTALLDIR]"/> <InstallUISequence> <Custom Action="SetINSTALLDIRFromEntServ" After="AppSearch" Overridable="yes">ENT_SERVICE_INSTALLDIR</Custom> </InstallUISequence> <InstallExecuteSequence> <Custom Action="SetINSTALLDIRFromEntServ" After="AppSearch" Overridable="yes">ENT_SERVICE_INSTALLDIR</Custom> </InstallExecuteSequence> -----Original Message----- From: Bruce Cran [mailto:br...@cran.org.uk] Sent: 09 May 2012 13:02 To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Sequencing ProductSearch/RegistrySearch to get a directory given an upgrade code Is it possible to get a directory given an upgrade code? A ProductSearch outputs a product code and a RegistrySearch can output the InstallLocation given a product code but is it possible to schedule them so the RegistrySearch uses the output of a ProductSearch? -- Bruce Cran ----------------------------------------------------------------------------- - Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users