I have some installation exe file
I am installing my program, and later I can update to a new version
I want that if upgrade failed for some reason - it will reinstall the previous version
So I tried few options:
1. To set "Install new version first and than uninstall old version" - it doesn't work cause Im overriding most of the files so it
2. To create new custom action that I put in the end of all other actions, I set it to "during installation rollback" and Execution Stage Condition I set to "Upgrade" - but for some reason if I press 'cancel' during the upgrade - sometime the action is called and sometimes it doesn't.. Is it correct to put the rollback script in the end of all actions? when exactly this code should run?
Is there any other good way to do reinstall if upgrade is failing?
FOLLOW US
Get the latest news in Application Packaging