I am seeing this strange behavior of my installer while performing Repair.
When I do Right-click -> Repair, things happens great. I get back my
missing (deleted) files. and also custom action preforms great.
But when I double-click the installer and perform repair via Maintenance
Mode, things happen OK but only one registry value gets deleted while rest
other two remains the same. I am not sure why this happens?

<InstallUISequence>  <Custom Action="CA_SetProperty_MACHINENAME"
After="CostFinalize">NOT Installed</Custom>  <Custom
Action="CA_SetProperty_SDK_MACHINE"
After="CA_SetProperty_MACHINENAME">NOT Installed</Custom>
   <!--For Uninstall-->  <Custom Action="CA_SetProperty_SDKMACHINE"
After="AppSearch">Installed</Custom>  <Custom
Action="CA_SetProperty_INSTALLPATH"
After="CA_SetProperty_SDKMACHINE">Installed</Custom></InstallUISequence>
 <InstallExecuteSequence>  <!--Set properties for Installation-->
<Custom Action="CA_SetProperty_MACHINENAME" After="CostFinalize">NOT
Installed</Custom>  <Custom Action="CA_SetProperty_SDK_MACHINE"
After="CA_SetProperty_MACHINENAME">NOT Installed</Custom>
   <!--For Repair-->  <Custom Action="CA_SetBase_Repair"
Before="CA_Install">Installed AND NOT (REMOVE="ALL")</Custom>
   <!--Set properties for Uninstall-->  <Custom
Action="CA_SetProperty_SDKMACHINE"
After="AppSearch">Installed</Custom>  <Custom
Action="CA_SetProperty_INSTALLPATH"
After="CA_SetProperty_SDKMACHINE">Installed</Custom>
   <!--For UnInstall-->  <Custom Action="CA_SetBase_UnInstall"
Before="CA_UnInstall">Installed</Custom>  <Custom
Action="CA_UnInstall" After="MsiUnpublishAssemblies">Installed AND
REMOVE="ALL"</Custom></InstallExecuteSequence>
 <!--This is how I populate registry--><Component
Id="SDK_Machine_RegistryEntries"
Guid="4B134F16-5CB0-4BC5-8D08-EAFB1D4A71F6">  <Condition>Not
Installed</Condition>  <RegistryKey Root="HKCU"
Key="Software\!(loc.CompanyName)\!(loc.ProductName)">
<RegistryValue Type="string" Name="SDKServiceMachine"
Value="[INSTALLMACHINE]" KeyPath="yes"/>  </RegistryKey></Component>
 <!--Custom action to populate regstry--><CustomAction
Id="CA_SetProperty_SDK_MACHINE" Property="INSTALLMACHINE"
Value="[SDK_MACHINE]" Execute="firstSequence" />
 <!--Getting the value for registry--><!--Search for Operations
Manager SDK machine name from Registry--><Property Id="SDK_MACHINE"
      Secure="yes">  <RegistrySearch Id="SDK_Machine"
Root="HKCU"                  Key="Software\....\....\...."
     Name="ServiceMachine"                  Type="raw" /></Property>


-- 
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