问题
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