Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Uninstalling Software via commandline


13 Aug 2010   #1
MPREv

Windows 7
 
 
Uninstalling Software via commandline

Hallo,

Is there a propper way of uninstalling software from my Windows pc via the commandline ?
i found something like:
Code:
msiexec /uninstall MSIPACKAGE.msi
But this works only if i got the MSI-package i installed the software with.
(It also does not work if i got a newer version MSI package of the same Software)

So is there an other way?
How windows does remove the software if i click in the "Program & Features Panel" to remove Programs?


My System SpecsSystem Spec
13 Aug 2010   #2
derekimo

Microsoft Community Contributor Award Recipient

Windows 7 Pro 64 SP1
 
 

My System SpecsSystem Spec
13 Aug 2010   #3
MPREv

Windows 7
 
 

No, as i mention in my last post i allready tried this, but u need the msi package.
If this is not availible it doesnt help.
My System SpecsSystem Spec
13 Aug 2010   #4
derekimo

Microsoft Community Contributor Award Recipient

Windows 7 Pro 64 SP1
 
 

Quote   Quote: Originally Posted by MPREv View Post
No, as i mention in my last post i allready tried this, but u need the msi package.
If this is not availible it doesnt help.
Well I'm sure someone else here can help as soon as they see your post.
My System SpecsSystem Spec
16 Aug 2010   #5
MPREv

Windows 7
 
 

hmmm nobody?
Does no body needs to uninstall software ??
My System SpecsSystem Spec
16 Aug 2010   #6
Ztruker

Windows 8 Core X64
 
 

Sure, we all do but we use Control Panel Programs and Features to do it.

Why do you need to do this via Command Line?

What are you trying to uninstall? Many times the installer for a program also places a uninstaller in the same directory, often with a U in the name some where. For instance, TightVNC puts a unins000.exe in it's installation directory.

Also, in the registry there is a key:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall

that lists every installed application by name. If you look at each one you can find the uninstall string. TeraCopy for example:
Code:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\TeraCopy_is1
    Inno Setup: Setup Version    REG_SZ    5.2.3
    Inno Setup: App Path    REG_SZ    D:\TeraCopy
    InstallLocation    REG_SZ    D:\TeraCopy\
    Inno Setup: Icon Group    REG_SZ    TeraCopy
    Inno Setup: User    REG_SZ    rrkurtz
    Inno Setup: Selected Tasks    REG_SZ    desktopicon,md5,sfv
    Inno Setup: Deselected Tasks    REG_SZ
    DisplayName    REG_SZ    TeraCopy 2.12
    UninstallString    REG_SZ    "D:\TeraCopy\unins000.exe"
    QuietUninstallString    REG_SZ    "D:\TeraCopy\unins000.exe" /SILENT
    Publisher    REG_SZ    Code Sector Inc.
    URLInfoAbout    REG_SZ    http://www.teracopy.com
   HelpLink    REG_SZ    http://www.teracopy.com
   URLUpdateInfo    REG_SZ    http://www.teracopy.com
   NoModify    REG_DWORD    0x1
   NoRepair    REG_DWORD    0x1
   InstallDate    REG_SZ    20100418
My System SpecsSystem Spec
17 Aug 2010   #7
MPREv

Windows 7
 
 

Quote:
Sure, we all do but we use Control Panel Programs and Features to do it.
Why do you need to do this via Command Line?
Remote and on more than 2 PCs its not funny to use a GUI.
Or you can say i just want to?

Quote:
Also, in the registry there is a key:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall
That sounds good.
But my Uninstall sting is something like:
MsiExec.exe /I{8DAA31EB-... .... ... -4DF8AB24714F}
running it i can repair or remove the up.
so i need to modify it the way to automatically remove without GUI Prompt.

But for the Batch scrip: is there a way to filter the Reg for the 'UninstallString'
by knowing the 'DisplayName'.
My System SpecsSystem Spec
17 Aug 2010   #8
Ztruker

Windows 8 Core X64
 
 

This works for me:

reg query "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\TeraCopy_is1" | find "UninstallString"
My System SpecsSystem Spec
Reply

 Uninstalling Software via commandline




Thread Tools



Similar help and support threads for2: Uninstalling Software via commandline
Thread Forum
PREVENT UNINSTALLING a software Installation & Setup
Frequent BDOS after uninstalling an anti virus software BSOD Help and Support
Solved BSOD When Uninstalling a software. BSOD Help and Support
auto reboot when installing or uninstalling software BSOD Help and Support
Uninstalling Paid Software with Key Code Software
Solved problems with uninstalling logitech gamepanel software Software
am lost in the commandline General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 10:37 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App