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"
[quoted text, click to view] <phil.wil...@wonderware.something.com> wrote:
> Try throwing an InstallException. That should do it.
> --
> Phil Wilson
> [Microsoft MVP Windows Installer]"MrTea" <hilton....@gmail.com> wrote in messagenews:1166720147.295914.17030@80g2000cwy.googlegroups.com...
>
> > 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
It's because you're in the Commit method - that means the installation
transaction is finished. That's what Commit means. If you want it to roll
back you need to be in the Install method.
--
Phil Wilson
[Microsoft MVP Windows Installer]
[quoted text, click to view] "MrTea" <hilton.jon@gmail.com> wrote in message
news:1167758887.500674.73790@h40g2000cwb.googlegroups.com...
> 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...@wonderware.something.com> wrote:
>> Try throwing an InstallException. That should do it.
>> --
>> Phil Wilson
>> [Microsoft MVP Windows Installer]"MrTea" <hilton....@gmail.com> wrote in
>> messagenews:1166720147.295914.17030@80g2000cwy.googlegroups.com...
>>
>> > 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
>
You're right! That sorted it
Thanks
On Jan 2, 9:36 pm, "Phil Wilson" <phil.wil...@wonderware.something.com>
[quoted text, click to view] wrote:
> It's because you're in the Commit method - that means the installation
> transaction is finished. That's what Commit means. If you want it to roll
> back you need to be in the Install method.
> --
> Phil Wilson
> [Microsoft MVP Windows Installer]"MrTea" <hilton....@gmail.com> wrote in messagenews:1167758887.500674.73790@h40g2000cwb.googlegroups.com...
>
> > 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...@wonderware.something.com> wrote:
> >> Try throwing an InstallException. That should do it.
> >> --
> >> Phil Wilson
> >> [Microsoft MVP Windows Installer]"MrTea" <hilton....@gmail.com> wrote in
> >> messagenews:1166720147.295914.17030@80g2000cwy.googlegroups.com...
>
> >> > 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
Don't see what you're looking for? Try a search.