Page 1 of 1

Trigger rollback during installation

Posted: Thu May 25, 2006 8:54 pm
by skibbs
Is there any method built into InstallAware that can trigger a rollback? Removing installed files, shortcuts, add/remove program references, etc...

Thanks

Posted: Fri May 26, 2006 1:44 am
by MichaelNesmith
Apply Uninstall.

Posted: Fri May 26, 2006 12:06 pm
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.

Posted: Fri May 26, 2006 12:08 pm
by skibbs
Are support files available during un-installation, or are they just available during installation?

Posted: Fri May 26, 2006 4:30 pm
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.