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

StackOverflow https://stackoverflow.com/questions/12817740

Domanda

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 ??

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top