c# - Exception in Custom Action during RollBack -
In custom action, I override the following functions and found an exception in the rollback case ...
"Expected values in the Saved Locations dictionary are not included and may have become corrupted."
Is there any other way to rollback?
Safe Override Zero OnBeforeInstall (System.Collections.IDictionary savedState) {try {bool report = false; // If some verification (! Report) throw new InstallException ("License is not valid."); Base.OnBeforeInstall (savedState); } Hold (Exception pre) {Message Box. Show (ex.message, "exception", message box button. OK, message box icon. Exclamation); Base.Rollback (savedState); }} "Throw", "base.Rollback ()" in the Exception Handler.
Comments
Post a Comment