we have a requirement of take back up of application and restore it if installation is unsuccessful while installer up-gradation process it has to rollback to the previous version.
To achieve what you want you can use an "Install new version first and then uninstall old version" upgrade order in "Upgrades" page. Please note that when using this upgrade order you should make sure the files components don't change from the old version to the new one (their names and GUIDs remain the same).
There is no need to add your UpgradeCode in "Upgrades" page. Just create your first application setup project (i.e. v1) and enable the "Install new version first and then uninstall old version" upgrade option in "Upgrades" page. Then, create the new application setup project having the same option enabled in "Upgrades" page and make sure the files components don't change from the old setup project to the new one (their names and GUIDs remain the same).
If this is still not working on your side, then please send us the AIPs (project files) of the old and new product version to support at advancedinstaller dot com so we can investigate their settings. Also, please do forward us more details about your installation scenario.
FOLLOW US
Get the latest news in Application Packaging