Beispiel #1
0
        public override bool Execute(out string message)
        {
            bool result = false;

            try
            {
                string UninstallGuid = RegistryHelper.GetUninstallGuid(this.ApplicationInfo.ApplicationName, this.ServerName);
                string resultMessage = ApplicationExtensions.Uninstall(this.ServerName, this.ApplicationInfo.ApplicationName, UninstallGuid, RegistryHelper.GetVersion(UninstallGuid, this.ServerName));
                message = resultMessage;
                result  = !resultMessage.Contains("error");
            }
            catch (Exception exe)
            {
                message = exe.Message;
            }
            return(result);
        }