Solved

MSI remove - path or number for uninstall

Posted on 2010-11-09
12
1,018 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

This article demonstrates probably the easiest way to configure domain-wide tier isolation within Active Directory. If you do not know tier isolation read https://technet.microsoft.com/en-us/windows-server-docs/security/securing-privileged-access/s…
Always backup Domain, SYSVOL etc.using processes according to Microsoft Best Practices. This is meant as a disaster recovery process for small environments that did not implement backup processes and did not run a secondary domain controller that ne…
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

752 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