Beispiel #1
0
        public static ActionResult InstallUIModule(Session session)
        {
            session.Log("Installing UIModuleProvider {0} as {1}", ExtensionQualifiedName, UIModuleKey);

            IisInstallUtil.AddUIModuleProvider(UIModuleKey, ExtensionQualifiedName);

            session.Log("Installation of UIModuleProvider complete");

            return(ActionResult.Success);
        }
Beispiel #2
0
        public static ActionResult UninstallUIModule(Session session)
        {
            try
            {
                session.Log("Uninstalling UIModuleProvider {0}", UIModuleKey);

                IisInstallUtil.RemoveUIModuleProvider(UIModuleKey);

                session.Log("Uninstallation of UIModuleProvider complete");
            }
            catch (Exception ex)
            {
                session.Log("UI Module removal failed: {0}", ex.Message);

                return(ActionResult.Failure);
            }

            return(ActionResult.Success);
        }