Hello,
situation: during an upgrade I get an error and rollback ... how can I achieve that it falls back to the previous upgrade version?
An upgrade installation consists in two parts:
- •the uninstall of the old product version
•the installation of the new product version
When the error appears during the upgraded process, the rollback of the upgraded version is triggered. So, any files copied from the upgraded version will be removed from the target machine. However, the previous version will not be restored. It has been already uninstalled and the corresponding files removed.
In this case, you can change the upgrade process' sequence and select the
Install new version first and then uninstall old version from the
Upgrades Page. In this case, the installer updates files before removing the old applications. Only the files being updated get installed during the installation. If the old application's removal fails, then the installer rolls back both the old application's removal and the new application's install.
situation 2: I want to copy files from the setup before the setup copies files ... how can I achieve that?
In order to achieve that you can use our
copy/move file operation support. For example, you can use a file move operation (added on install) which will move your target file in a backup folder and another file move operation (added on uninstall) which will restore the target file on its original location.
You can also achieve that using a
custom action. Please take a look on our
Make a backup copy before uninstall my application thread which debates a similar issue.
If you have other questions, please let us know.
Best regards,
Dan
FOLLOW US
Get the latest news in Application Packaging