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

 
 

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

 
 

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.1 Pro 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.1 Pro 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
Thread Forum
Could solve just by uninstalling the new software!
Hi, My laptop lenovo T5300 with Win7 Ultimate (32 bit) was pretty ok and had both firefox and chrome. But my DVD drive is having issues and it just doesn't detect all ( with some, it works fine). So it install a new s/w, I used a portable DVD drive. Software was authentic and a simple one (...
BSOD Help and Support
PREVENT UNINSTALLING a software
I want to protect uninstalling a software from administrator account.Is it possible?If possible,please tell me how to do that
Installation & Setup
BSOD When Uninstalling a software.
Hello , A friend had called me in to check on her computer that froze on the Bios startup screen, so I removed allUSB devices attached, except for those required (Mouse & Keyboard). When I powered on the computer it manage to boot into windows. From there I decided to uninstall any unnecessary...
BSOD Help and Support
auto reboot when installing or uninstalling software
Hi Though not always, but most of the times when I try to install or uninstall legal software my windows7 (see specs below) reboots as the in/uninstall process starts. I checked for viruse/trojans/malware etc with various software and they have found nothing. Trying to go to safe mode doesn't...
BSOD Help and Support
Uninstalling Paid Software with Key Code
Hi, I have never uninstalled paid software (that uses a long Activation code) before in order to use it on another computer, but that's what I want to do now. I need to do it with Photoshop (from my old PC to my new one) and with MS Office (from my old laptop to my new one). But what I...
Software
problems with uninstalling logitech gamepanel software
hi all i recently changed my keyboard from a logitech g19 to a roccat isku. i uninstalled it using ccleaner. however the service UMVPFSrv still kept running at startup. i have disabled it from starting up though. also the gamepanel software still shows up as installed in revo uninstaller but it...
Software

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 21:24.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App