Solved

MSI remove - path or number for uninstall

Posted on 2010-11-09
12
1,021 Views
Last Modified: 2012-05-10
On XP how can I find the path an MSI was installed from and \or the number that allows it to be uninstalled from a script:
eg:
msiexec /x \\server\folder\name.msi
or
msiexec /x {7145A744-C77A-4FE8-BA94-061EC41FEAEC}

I thought it was in HKLM\soft\ms\wind\current version\uninstall
but it is not listed??
0
Comment
Question by:Pete
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
  • 4
12 Comments
 
LVL 4

Expert Comment

by:Antyrael
ID: 34092419
If an msi is successfully installed, that is the correct registry key to look under.
Do I understand correctly that you can't find the installed application with a search under that key?
sometimes the appID is listed instead of the application name itself.
0
 
LVL 1

Author Comment

by:Pete
ID: 34092475
yes it is listed in add\remove programs as "flash active x 10" but there is nothing in that reg key relating to flash. it removes manually from add\remove programs but I need to script this so I need the removal info path or version....
0
 
LVL 4

Expert Comment

by:Antyrael
ID: 34092541
Adobe Flash might a bit more troublesome to remove, take a look at the notes on this webpage:
http://www.appdeploy.com/packages/detail.asp?id=798
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
LVL 35

Assisted Solution

by:Joseph Daly
Joseph Daly earned 400 total points
ID: 34093728
I used to use the GUID uninstallation approach alot in the past until i found this little trick. In my opinion it works much better.

WMIC product where name="Productname" call uninstall

The productname that you enter in the quotes should be exactly what appears in add/remove programs.

This method works much better than the guid uninstall because sometime different minor versions of products will have different guids.
0
 
LVL 1

Author Comment

by:Pete
ID: 34093934
Thanks can you elaborate on the command:

WMIC product where name="Productname" call uninstall

msiexec /x "productname" ????
0
 
LVL 35

Expert Comment

by:Joseph Daly
ID: 34093970
Sure what would you like to know?
0
 
LVL 1

Author Comment

by:Pete
ID: 34094010
so what would the command be to remove from add\remove progs?
"flash player active x"
0
 
LVL 35

Expert Comment

by:Joseph Daly
ID: 34094028
if that is how it shows up in add/remove programs then yes you would enter that in the WMIC command.

Another way to tell would be to open a command prompt and type

wmic product get name

This will list every product installed you should be able to copy and paste the returned name from here as well.
0
 
LVL 4

Assisted Solution

by:Antyrael
Antyrael earned 100 total points
ID: 34094055
Petben, xxdcmast gave you the command you need to run, it's not msiexec /x "flash player active x".

The command you need to use is:
wmic product where name="Flash Player ActiveX" call uninstall

0
 
LVL 1

Author Comment

by:Pete
ID: 34094210
I know it sound mad but even though adobe flash player 10 activex is listed in add\remove progs running the command below does not list it (it lists everything else!):
wmic product get name

running the command:
wmic product where name="adobe flash player 10 activex " call uninstall
give the message "no instances available"
Is that possible?
 
0
 
LVL 4

Expert Comment

by:Antyrael
ID: 34094300
Yes, it is possible, it just means it's not cleanly removed.
Check this support website from Adobe: http://kb2.adobe.com/cps/141/tn_14157.html
0
 
LVL 35

Accepted Solution

by:
Joseph Daly earned 400 total points
ID: 34096832
You could also try the windows installer cleanup utility. Microsoft removed this from download on their site but there are still other mirrors out there that have it.

http://www.softpedia.com/get/Security/Secure-cleaning/Windows-Installer-CleanUp-Utility.shtml

This tool should go through and help remove and lingering installation files etc from the install.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Active Directory security has been a hot topic of late, and for good reason. With 90% of the world’s organization using this system to manage access to all parts of their IT infrastructure, knowing how to protect against threats and keep vulnerabil…
Resolving an irritating Remote Desktop connection that stops your saved credentials from being used.
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question