Trigger rollback during installation

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

Trigger rollback during installation

Postby skibbs » Thu May 25, 2006 8:54 pm

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:

Postby MichaelNesmith » Fri May 26, 2006 1:44 am

Apply Uninstall.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

skibbs
Posts: 56
Joined: Thu Apr 27, 2006 5:06 pm
Location: Redmond, WA
Contact:

Postby skibbs » Fri May 26, 2006 12:06 pm

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:

Postby skibbs » Fri May 26, 2006 12:08 pm

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:

Postby MichaelNesmith » Fri May 26, 2006 4:30 pm

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

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 218 guests