How can I abort the Upgrade of msi when Application is running using wix

  abort, upgrade, windows, windows-installer, wix

I want to abort the upgrade of msi when my process is runnning. I tried and I am able to close the application during the upgrade . But I need to abort the Upgrade itself when my exe is running

<util:CloseApplication Id="CloseServer" CloseMessage="yes" Target="SimulatorApp.exe" ElevatedCloseMessage="yes" RebootPrompt="no"/>

NOT Installed AND (NOT UPGRADINGPRODUCTCODE)
NOT Installed AND (NOT UPGRADINGPRODUCTCODE)

  <!--Executed only on fresh installation-->
  <Custom Action='InstallOpenSSHAction' After='UpdateConfiguration'>NOT (WIX_UPGRADE_DETECTED OR UPGRADINGPRODUCTCODE) AND NOT (REMOVE="ALL")</Custom>

Can someone help me please

Source: Windows Questions

LEAVE A COMMENT