Re: Initiate Rollback from Custom Installation Class



Unfortunately that doesn't appear to have the desired effect.

It throws up an exception message and says that installation will
continue but the application will not function as you might expect.

Any more ideas would be very welcome, I just need to figure out how to
abort the installation and rollback (from a Custom Installer Class)

Regards
Jon

On Dec 22 2006, 12:20 am, "Phil Wilson"
<phil.wil...@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Try throwing an InstallException. That should do it.
--
Phil Wilson
[Microsoft MVP Windows Installer]"MrTea" <hilton....@xxxxxxxxx> wrote in messagenews:1166720147.295914.17030@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Hi Folks

I have a Custom Installation Class (that inherits from
System.Configuration.Install.Installer)

Basically during a file copy, if it errors I want to roll-back the
installation.

Can I initiate the roll-back from within my custom installation class.

The error I am trying to catch is during my overridden Commit Sub.

Regards
Jon

.



Relevant Pages

  • Re: Serial no check - setup & deployment project
    ... Visual Studio but basically Visual Studio ... Phil Wilson ... In .net customer information dialog with serial number is available. ... But goal is to stop the installation when they give wrong serial no. ...
    (microsoft.public.dotnet.framework.setup)
  • Re: Detect unattened installation in a custom action
    ... On 19 Maio, 21:17, "Phil Wilson" ... Definitive Guide to Windows Installerhttp://www.apress.com/book/view/1590592972 ... programatically whether the installation is running inattendedor ...
    (microsoft.public.dotnet.framework.setup)
  • Re: Deploying application got error
    ... Phil Wilson, brilliant answer. ... It worths puting this in my notes: the actual installation switches to the ... msiexec service to do the actual install (whichj runs with the system ... So check that the SYSTEM account has access to that directory. ...
    (microsoft.public.dotnet.general)
  • Re: Windows service installation
    ... "Phil Wilson" wrote: ... You can go to the Custom Actions view, ... > selected folder during installation. ... > the Windows services. ...
    (microsoft.public.dotnet.framework.setup)
  • Re: How can I control the sequence of the installation?
    ... A VS setup generates ... Phil Wilson ... If I use custom actions, ... > Can I use the COMs that I just registered during the installation? ...
    (microsoft.public.dotnet.framework.setup)

Loading