[wix-users] Executing installed exe as a first action during Unintall
Farrukh Waheed
farrukh1 at gmail.com
Wed Nov 4 21:03:46 PST 2015
Using asyncNoWait so that installer should ignore the return code of exe
file. This is not an issue. Real issue is, installer actually un-installs
its dependency dlls before calling the exe. Exe itself through an error
dialog about its failure.
I might try to schedule this custom action Before=RemoveFiles.....
On 4 November 2015 at 21:14, Hoover, Jacob <Jacob.Hoover at greenheck.com>
wrote:
> asyncNoWait
>
> You are telling Windows Installer to not wait until that CA is done before
> continuing on.
>
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
> Of Farrukh Waheed
> Sent: Tuesday, November 03, 2015 10:06 PM
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Subject: [wix-users] Executing installed exe as a first action during
> Unintall
>
> Hi
> In my msi, I have to call the installed exe file with some parameters, as
> a very first action of uninstall. Here is the code:
>
> <CustomAction Id="UnRegisterOnUninstallApplication"
> Execute="immediate" FileKey="MyProgram.exe"
> ExeCommand="/unregister" Return="asyncNoWait" />
> <InstallExecuteSequence> <RemoveExistingProducts
> After="InstallInitialize"/> <Custom
> Action="UnRegisterOnUninstallApplication"
> Before="UnpublishComponents" >Installed AND NOT
> UPGRADINGPRODUCTCODE</Custom> </InstallExecuteSequence>
>
> Although, it is scheduled Before UnpublishComponents, but issue is, at
> some computers, custom action is called during or after dependency dlls are
> uninstalled and so MyProgram.exe crashes here.
> This is something seems unpredictable...
>
> Can anyone please guide, if I'm missing something or doing something
> wrong???
>
> Thanks a bunch.
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
More information about the wix-users
mailing list