I am writing a installer that installs files to an existing directory. I need to backup one of the files in this directory so that the installer doesn't overwrite it. This is working fine using a custom action.
I now need to ensure that if the user cancels (i.e. the setup is 'interupted') during installation time the system rollsback to it's previous state, with the backed up file being moved back into the installation directory.
I assumed that an action placed in the 'Rollback' section would run if the user prematurely cancels the installation. It doesn't seem to do this - it isn't a VBScript error - I have tried using a predefined action and nothing happens.
Can you confirm that the rollback section doesn't account for cancelled installations and if this is the case how do I account for user cancellations / interruptions?
FOLLOW US
Get the latest news in Application Packaging