カスタムアクションでは、次の関数をオーバーライドし、ロールバックの場合に例外を取得しました...
"savedState ディクショナリに予期された値が含まれておらず、破損している可能性があります。"
ロールバックする他の方法はありますか?
protected override void OnBeforeInstall(System.Collections.IDictionary savedState)
{
try
{
bool report = false; //Some validation
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);
}
}