Trigger rollback during installation

Got a problem you cannot solve? Try here.
Post Reply
skibbs
Posts: 56
Joined: Thu Apr 27, 2006 5:06 pm
Location: Redmond, WA
Contact:

Trigger rollback during installation

Post by skibbs »

Is there any method built into InstallAware that can trigger a rollback? Removing installed files, shortcuts, add/remove program references, etc...

Thanks
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

Apply Uninstall.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
skibbs
Posts: 56
Joined: Thu Apr 27, 2006 5:06 pm
Location: Redmond, WA
Contact:

Post by skibbs »

Triggering an Apply Uninstall causes a fatal error to be thrown and does not seem to rollback the installation. In my normal installation block, after I apply the file installation and registry writes that I need then I start a block of custom code that uses external Win32 DLLs that pop up dialogs to interact with the user. If the user chooses to cancel out of one of these forms, then I need to rollback the installation. Because these DLLs are dependent on files that are installed during the Apply Install, I cannot run my custom code prior to Apply Install being called. I am currently calling Terminate Install when I need to exit an installation, but this is not ideal because it doesn't rollback the installation, it just aborts it midway through and leaves the application partially installed.
skibbs
Posts: 56
Joined: Thu Apr 27, 2006 5:06 pm
Location: Redmond, WA
Contact:

Post by skibbs »

Are support files available during un-installation, or are they just available during installation?
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

No errors should happen during Apply Uninstall. You should provide more information so we can estimate what is going wrong.

Support files are available any time setup is running. InstallAware does not differentiate between an installation or uninstallation - it all happens in your setup script, how its been laid out. So this gives you maximum flexibility in doing what you want in your setup.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply