RollBack Installation if custom action fails [After InstallFinalise] -Basic Msi -Installshield 2012

﹥>﹥吖頭↗ 提交于 2019-12-25 01:45:18

问题


I am creating a basic msi installer using installshield 2012 spring professional , here i have a custom dialog to collect some data from the user based on which i call a custom dll action to create a database inside the installation folder .

I have a scheduled a dll custom action to run After InstallFinalise , I want to check the return value from the dll and if the value indicates a failure i need to abort and rollback the installation process.

I have managed to catch the error and abort the installation but the issue is with the rollback .. Right now the installation aborts but the files are already created . How do i get the installation rolled back ? Is it possible .. Any ideas ??


回答1:


It is impossible to rollback after InstallFinalize. InstallInitialize and InstallFinalize mark the boundries of the windows installer transaction.

I suggest reading and understanding:

Installation Phases and In-Script Execution Options for Custom Actions in Windows Installer



来源:https://stackoverflow.com/questions/12817740/rollback-installation-if-custom-action-fails-after-installfinalise-basic-msi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!