Automatic uninstallation after failure of installation.

3 messages Options
Embed this post
Permalink
Dirk Räder

Automatic uninstallation after failure of installation.

Reply Threaded More More options
Print post
Permalink
Hi,

my installer currently fails during some custom actions that execute
after most of the installation is done:
  <Custom Action="MakeIniFile" After="InstallFinalize" >
    <![CDATA[(NOT Installed) OR PREVIOUSVERSIONSINSTALLED OR
(Installed AND NOT RESUME AND NOT REMOVE )]]>
  </Custom>
  <Custom Action="RegisterAssemblies" After="InstallFinalize" >
    <![CDATA[(NOT Installed) OR PREVIOUSVERSIONSINSTALLED OR
(Installed AND NOT RESUME AND NOT REMOVE )]]>
  </Custom>
  <Custom Action="InstallComApplications" After="InstallFinalize" >
    <![CDATA[(NOT Installed) OR PREVIOUSVERSIONSINSTALLED OR
(Installed AND NOT RESUME AND NOT REMOVE )]]>
  </Custom>


When one of those custom action fails, an error message is shown to
the user - but a rollback is not initiated.

How can I make WiX / MSI initiate the uninstallation?

Thanks in advance,

Dirk Raeder

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/blackberry
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Peter Shirtcliffe

Re: Automatic uninstallation after failure of installation.

Reply Threaded More More options
Print post
Permalink
Rollback doesnt get run for errors occurring after InstallFinalize. You need to schedule your custom action earlier.

This older post might help to explain.
http://www.mail-archive.com/wix-users@.../msg10546.html


-----Original Message-----
From: Dirk Räder [mailto:[hidden email]]
Sent: 07 July 2009 14:55
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Automatic uninstallation after failure of installation.

Hi,

my installer currently fails during some custom actions that execute after most of the installation is done:
  <Custom Action="MakeIniFile" After="InstallFinalize" >
    <![CDATA[(NOT Installed) OR PREVIOUSVERSIONSINSTALLED OR (Installed AND NOT RESUME AND NOT REMOVE )]]>
  </Custom>
  <Custom Action="RegisterAssemblies" After="InstallFinalize" >
    <![CDATA[(NOT Installed) OR PREVIOUSVERSIONSINSTALLED OR (Installed AND NOT RESUME AND NOT REMOVE )]]>
  </Custom>
  <Custom Action="InstallComApplications" After="InstallFinalize" >
    <![CDATA[(NOT Installed) OR PREVIOUSVERSIONSINSTALLED OR (Installed AND NOT RESUME AND NOT REMOVE )]]>
  </Custom>


When one of those custom action fails, an error message is shown to the user - but a rollback is not initiated.

How can I make WiX / MSI initiate the uninstallation?

Thanks in advance,

Dirk Raeder

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/blackberry _______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users

SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  Registered number: 02675207.  
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK.


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/blackberry
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Dirk Räder

Re: Automatic uninstallation after failure of installation.

Reply Threaded More More options
Print post
Permalink
Hi Peter,

thanks for the explanation. Unfortunately, I need to access the
installed files during the custom actions - as far as I have found
out, this is not possible during the transaction.

So, is there any way to schedule an uninstallation? Maybe even via
setting a mark in a defined file, scheduling a reboot and then look
for that mark?

Thanks,

Dirk Räder

2009/7/7 Peter Shirtcliffe <[hidden email]>:

> Rollback doesnt get run for errors occurring after InstallFinalize. You need to schedule your custom action earlier.
>
> This older post might help to explain.
> http://www.mail-archive.com/wix-users@.../msg10546.html
>
>
> -----Original Message-----
> From: Dirk Räder [mailto:[hidden email]]
> Sent: 07 July 2009 14:55
> To: General discussion for Windows Installer XML toolset.
> Subject: [WiX-users] Automatic uninstallation after failure of installation.
>
> Hi,
>
> my installer currently fails during some custom actions that execute after most of the installation is done:
>  <Custom Action="MakeIniFile" After="InstallFinalize" >
>    <![CDATA[(NOT Installed) OR PREVIOUSVERSIONSINSTALLED OR (Installed AND NOT RESUME AND NOT REMOVE )]]>
>  </Custom>
>  <Custom Action="RegisterAssemblies" After="InstallFinalize" >
>    <![CDATA[(NOT Installed) OR PREVIOUSVERSIONSINSTALLED OR (Installed AND NOT RESUME AND NOT REMOVE )]]>
>  </Custom>
>  <Custom Action="InstallComApplications" After="InstallFinalize" >
>    <![CDATA[(NOT Installed) OR PREVIOUSVERSIONSINSTALLED OR (Installed AND NOT RESUME AND NOT REMOVE )]]>
>  </Custom>
>
>
> When one of those custom action fails, an error message is shown to the user - but a rollback is not initiated.
>
> How can I make WiX / MSI initiate the uninstallation?
>
> Thanks in advance,
>
> Dirk Raeder

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users