none
Script Uninstall via MSIEXEC by ProductCode

    Question

  • HI ALL

    I need to create a script for uninstall a specific windows program via MSIEXEC with a specific Product code;

    • I can get the product code in this way:

      wmic product where name="Program xxx" get IdentifyingNumber

      and result is:

      IdentifyingNumber {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX}

      once I have found the identify number, I will uninstall it this way:

      MSIEXEC /x {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX} /qb REBOOT="ReallySuppress" PASSWORD=password123

      how can I create a script to automate the process by putting the parameter from the wmi query in the msiexec uninstall command?

    THANKS A LOT!!!

    • THANKS A LOT

    Tuesday, December 4, 2018 2:08 PM

All replies