How to perform a custom action before RemoveExistingProducts with After = "InstallValidate" on WiX

I have something like this:

<InstallExecuteSequence>
  <RemoveExistingProducts After="InstallValidate"/>
</InstallExecuteSequence>

Since one of the unsuccessful attempts to uninstall, I need to perform a custom action to solve the problem before uninstalling ExistingProducts. Something in the lines:

<CustomAction Id="FixStuff" .. />

<InstallExecuteSequence>
  <Custom Action="FixStuff" Before="RemoveExistingProducts" />
  <RemoveExistingProducts After="InstallValidate"/>
</InstallExecuteSequence>

This, of course, does not work, since Custom Action cannot be prior to InstallInitialize. I would really like to remove existing products between InstallValidate and InstallInitialize, but I want to run FixStuff before uninstalling existing products.

Is it possible to do this?

+5
source share
1 answer

, RemoveExistingProducts .

:

  • RemoveExistingProducts InstallFinalize. , , ( GUID , , ..).

  • EXE, MSI. :

http://msdn.microsoft.com/en-us/library/bb756929.aspx

  1. MSI :

    • MSI
    • BAT EXE, :

    msiexec/fv <path_to_msi >

    • MSI

RemoveExistingProducts, MSI , .

+6

All Articles