In a custom action, I override the following function and get an exception in the rollback case ...
"The saved dictionary contains the expected values ββand may have been corrupted."
Is there any other way to rollback?
protected override void OnBeforeInstall(System.Collections.IDictionary savedState)
{
try
{
bool report = false;
if (!report)
throw new InstallException("License is not valid.");
base.OnBeforeInstall(savedState);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Exception", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
base.Rollback(savedState);
}
}
source
share