Link to home
Start Free TrialLog in
Avatar of ManieyaK_
ManieyaK_Flag for United States of America

asked on

Registry Uninstall String

I'm trying to use 7-Zips Uninstall String in Registry to do a batch uninstall, how would i accomplish this task?
ASKER CERTIFIED SOLUTION
Avatar of Michael Pfister
Michael Pfister
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dfke
dfke

Hi,

To list all your installed applications using Powershell issue:
PS C:\> Get-WmiObject -Class Win32_Product | Select-Object -Property Name

Open in new window

Then to uninstall 7zip or any other application listed:

You can set a variable like:
PS C:\> $Remove_7zip = Get-WmiObject -Class Win32_Product | Where-Object{$_.Name -eq "7zip"}

Open in new window


Then uninstall:
PS C:\> $Remove_7zip.Uninstall()

Open in new window

Cheers
Hi,

With regard above tip - do NOT do it.
https://gregramsey.net/2012/02/20/win32_product-is-evil/

Use the methods in the first answer.
Hi too,

No offense but hat's a 2012 post you accidentally googled right there. It works just fine with me. Have you even tried verifying before bluntly scatter google results?


Cheers