Uninstalling software from the command-line

Sometimes you have the need for removing software from the command-line… for instance from a batch file or locin script.

The easiest way is using msiexec.exe.

Example (removing McAfee Virusscan 7.1):

      msiexec.exe /x C:Program FilesNetwork AssociatesVirusScanRepairCachevse710.msi /q

This uses the msi packet to delete the software

      msiexec.exe /x {59224777-298D-4E9C-9AEB-4A91BDA01B27} /q

and this uses the guid.

The GUID can be found using regedit at:

      HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstall

Comments

Leave a Reply

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)