protected virtual void InstallUpdateModule_ClickBefore(object sboObject, SAPbouiCOM.SBOItemEventArg pVal, out bool BubbleEvent) { BubbleEvent = true; if (string.IsNullOrEmpty(modulePath.Value)) { Logger.Error(Messages.AdminEmptyFile); } else { string confirmation; Logger.Info(Messages.AdminCreatingAppDomain); try { SAPAppender.SilentMode = true; // Prevent messy log. string addinName, addinNamespace; if (asmLoader.AddInIsValid(modulePath.Value, out confirmation, out addinName, out addinNamespace)) { if (string.IsNullOrEmpty(confirmation)) { InstallAddin(addinName, addinNamespace); } else { GetUserConfirmation(confirmation, addinName, addinNamespace); } } else { SAPAppender.SilentMode = false; Logger.Error(Messages.AdminInvalidAddin); } } finally { SAPAppender.SilentMode = false; } } }