I got the method and I am doing this (which is working perfectly):

<Property Id="INSTALL_PATH"             Secure="yes">  <RegistrySearch
Id="Install_Path"                  Root="HKCU"
Key="Software\!(loc.CompanyName)\!(loc.ProductName)"
Name="InstallPath"                  Type="raw" /></Property>
 <CustomAction Id="CA_SetProperty_INSTALLPATH"
Property="INSTALLPATH" Value='[INSTALL_PATH]' /><CustomAction
Id="CA_SetCustomActionData" Property="CA_GetCustomActionData"
Value='INSTALLMACHINE=[INSTALLPATH]' Execute='immediate'
Return="check" /><CustomAction Id="CA_GetCustomActionData"
BinaryKey="BIN_CustomAction" DllEntry="GetCustomActionData"
Execute="deferred" Return="check" />
 <InstallUISequence>  <Custom Action="CA_SetCustomActionData"
Before="CA_GetCustomActionData">NOT Installed</Custom>  <Custom
Action="CA_GetCustomActionData" After="InstallInitialize">NOT
Installed AND NOT UPGRADINGPRODUCTCODE</Custom></InstallUISequence>
 <InstallExecuteSequence>  <Custom Action="CA_SetCustomActionData"
Before="CA_GetCustomActionData">NOT Installed</Custom>  <Custom
Action="CA_GetCustomActionData" After="InstallInitialize">NOT
Installed AND NOT
UPGRADINGPRODUCTCODE</Custom></InstallExecuteSequence>

Just wanted to confirm, is there any other way to achieve the same?

-- 
Thanks and Regards,
Ravi Raj
------------------------------------------------------------------------------
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

Reply via email to