Support Forum: Get Support for Patch My PC Products and Services

Commercial Products: Support for Our Enterprise Product for Microsoft ConfigMgr and Intune => Commercial/Paid Products: Support and General Questions (ConfigMgr and Intune) => Topic started by: [email protected] on March 12, 2026, 02:53:26 PM

Title: Uninstall-Software.ps1 script and WindowsInstaller option
Post by: [email protected] on March 12, 2026, 02:53:26 PM
Hi - I'm wondering if there's a reason I can only have the uninstall pre-script look for earlier install based only on MSI -OR- EXE. I didn't realize it worked that way until I did a Snagit upgrade coming from mixed install types and am now having to do a bunch of remedial clean up. We should have the option to remove both types of prior install in one go. Thanks!

.PARAMETER WindowsInstaller
    Specify a value between 1 and 0 to use as an additional criteria when trying to find installed software.
    If WindowsInstaller registry value has a data of 1, it generally means software was installed from MSI.
    Omitting the parameter entirely or specify a value of 0 generally means software was installed from EXE
    This is useful to be more specific about software titles you want to uninstall.
Title: Re: Uninstall-Software.ps1 script and WindowsInstaller option
Post by: Andrew Jimenez (Patch My PC) on March 26, 2026, 04:50:29 PM
Hello,

This is good feedback, we'll look into implementing an option to skip that check.
The reason it was designed this way is because our updates are usually targeted based on a specific installer type, so we designed the uninstaller to work in the same way, but having a more "relaxed" option makes sense to me!
Title: Re: Uninstall-Software.ps1 script and WindowsInstaller option
Post by: Michiel (Patch My PC) on April 16, 2026, 07:26:24 AM
@Andrew Jimenez (Patch My PC), I noticed the documentation for the "-WindowsInstaller" parameter now states "Specifies the software type to uninstall. Set it to 1 for .msi-based software, 0 for .exe-based software, or omit to target both types based on other criteria". Does this mean the script was updated, and that the parameter now functions as @[email protected] requested?