예제 #1
0
            /// <summary>
            /// Repairs this instance.
            /// </summary>
            /// <returns>System.String.</returns>
            public string Repair()
            {
                if (SoftwareCode.StartsWith("{"))
                {
                    return(oNewBase.GetStringFromPS("Invoke-Expression(\"msiexec.exe /fpecmsu '" + SoftwareCode + "' REBOOT=ReallySuppress REINSTALL=ALL /q\")"));
                }

                return(null);
            }
예제 #2
0
            #pragma warning restore 1591 // Enable warnings about missing XML comments
            #endregion

            #region Methods
            /// <summary>
            /// Uninstalls this instance.
            /// </summary>
            /// <returns>System.String.</returns>
            public string Uninstall()
            {
                if (SoftwareCode.StartsWith("{"))
                {
                    return(oNewBase.GetStringFromPS("Invoke-Expression(\"msiexec.exe /x '" + SoftwareCode + "' REBOOT=ReallySuppress /q\")"));
                }

                return(null);
            }