Uninstalling Software via commandline

MPREv

New member
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 Computer

OS
Windows 7

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Built
OS
Win 10 Pro x64
CPU
Intel I5-2500K @3.3GHz
Motherboard
Asrock P67 Extreme4
Memory
16GB G.Skill Ripjaws X (4x4GB)
Graphics Card(s)
EVGA GeForce 750 Ti SC 2GB
Sound Card
ASUS Xonar DG 5.1 Channels 24-bit 96KHz PCI Interface Sound
Monitor(s) Displays
auria eq2367
Screen Resolution
1920 x 1080
Hard Drives
250GB Samsung 850 EVO SSD
1TB WD Blue
1TB Hitachi
PSU
SeaSonic X 650W 80 Plus Gold
Case
Corsair Obsidian 750D
Cooling
Corsair H60, Three 140mm case fans
Keyboard
Logitech Wireless Keyboard K520
Mouse
Logitech Wireless Mouse M310
Internet Speed
Wave Broadband ~ 100 dn 5 up
Antivirus
Windows Defender, Malwarebytes Premium
Browser
Edge, IE11, Chrome
Other Info
Laptop specs: HP g7-1365dx /
CPU: AMD A6-3420M APU with Radeon(tm) HD Graphics /
RAM: Crucial 8Gb (2x4Gb) /
SSD: Crucial M4-CT128M4SSD2 ATA Device/ FW 000F /
GFX: AMD Radeon HD 6520G /
OS: Windows 10 Pro x64
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 Computer

OS
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.

Well I'm sure someone else here can help as soon as they see your post.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Built
OS
Win 10 Pro x64
CPU
Intel I5-2500K @3.3GHz
Motherboard
Asrock P67 Extreme4
Memory
16GB G.Skill Ripjaws X (4x4GB)
Graphics Card(s)
EVGA GeForce 750 Ti SC 2GB
Sound Card
ASUS Xonar DG 5.1 Channels 24-bit 96KHz PCI Interface Sound
Monitor(s) Displays
auria eq2367
Screen Resolution
1920 x 1080
Hard Drives
250GB Samsung 850 EVO SSD
1TB WD Blue
1TB Hitachi
PSU
SeaSonic X 650W 80 Plus Gold
Case
Corsair Obsidian 750D
Cooling
Corsair H60, Three 140mm case fans
Keyboard
Logitech Wireless Keyboard K520
Mouse
Logitech Wireless Mouse M310
Internet Speed
Wave Broadband ~ 100 dn 5 up
Antivirus
Windows Defender, Malwarebytes Premium
Browser
Edge, IE11, Chrome
Other Info
Laptop specs: HP g7-1365dx /
CPU: AMD A6-3420M APU with Radeon(tm) HD Graphics /
RAM: Crucial 8Gb (2x4Gb) /
SSD: Crucial M4-CT128M4SSD2 ATA Device/ FW 000F /
GFX: AMD Radeon HD 6520G /
OS: Windows 10 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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
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?

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 Computer

OS
Windows 7
This works for me:

reg query "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\TeraCopy_is1" | find "UninstallString"
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
Back
Top