[wix-users] Error when removing msi
Hoover, Jacob
Jacob.Hoover at greenheck.com
Wed Mar 31 10:15:59 PDT 2021
Exe based CA’s are ugly at best. Is there a reason you can’t author the changes as standard MSI actions?
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Imran baloch via wix-users
Sent: Wednesday, March 31, 2021 4:43 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Imran baloch <imran_ku07 at yahoo.com>
Subject: [wix-users] Error when removing msi
Dear,
I have the following,
<InstallExecuteSequence> <Custom Action="ExecInstallService" Before="InstallFinalize" /> <Custom Action="ExecAddHostEntry" After="ExecInstallService" >NOT Installed AND NOT REMOVE</Custom> <Custom Action="ExecRemoveService" After="ExecInstallService" >(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")</Custom> <Custom Action="ExecDeleteFiles" After="ExecRemoveService" >(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")</Custom> </InstallExecuteSequence>
<CustomAction Id='ExecRemoveService' Directory="INSTALLDIR" Execute="deferred" ExeCommand='cmd.exe /k "My.exe -remove & exit"' Return="check" Impersonate="no"></CustomAction>
But when there is no folder and I am getting error when removing. Is there is way to ignore if no folder exist,
Product: My Service -- Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: ExecInstallService, location: C:\Location\, command: cmd.exe /k "My.exe -remove & My.exe -install & exit"
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/<http://www.firegiant.com>
NOTE: This email was received from an external source. Please use caution when opening links or attachments in the message.
More information about the wix-users
mailing list