locked
Unable to uninstall old version of 7-zip 16.0.4 and install 7-zip 19 in script (or) Need Uninstall script to remove all version of 7zip RRS feed

  • Question

  • Anyone can help to provide solution sample powershell script or bat file. It will be very helpful.

    I tried already below command line, it is not work

    1)  "C:\Program Files\7-Zip\Uninstall.exe" /S

    2) $app = Get-WmiObject -Class Win32_Product -Filter “Name = ‘7-Zip 16.04 (x64 edition)'” $app.Uninstall()

    Thanks.

    Tuesday, January 14, 2020 11:29 AM

All replies

  • First, have you reviewed the vendor's documentation (they have a whole web site on 7-zip)?

    Next, have you reviewed what's in the add/remove programs registry keys for 7-zip? HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall (for 32-bit apps on 32-bit OSes and 64-bit apps on 64-bit OSes) or HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall (for 32-bit apps on 64-bit OSes)?

    Also, what exactly does "it is not work" mean? We can't help you if you don't give actual technical details of what you are doing, what you've configured, what the logs say, what errors messages you get, etc. "it is not work" is completely meaningless and doesn't help us help you.

    Finally, never ever use Win32_Product for this. A simple web search will tell you why.


    Jason | https://home.configmgrftw.com | @jasonsandys

    Tuesday, January 14, 2020 1:37 PM