Uninstall ActiveX Controls via the command line or other means

Posted on 2008-11-04
Medium Priority
Last Modified: 2013-12-08
s there a way to uninstall ActiveX controls from C:\windows\downloaded program files using the command line to right click the  control to remove it. I need to do this to ~400 machines but not manually. Manually you can right click and select remove. I want to script the removal some how. I need to remove a previous install of authorware web player before installing a new one. It is the only way for the new one to work is uninstalling the old one.
Question by:Corville
LVL 27

Accepted Solution

BigRat earned 1500 total points
ID: 22884779
You can simulate the action of Internet Explorer by using the same procedure it uses. The procedure is called RemoveControlByName() and is located in occache.dll which normally resides in the system32 directory. You'll need to do a loadLibrary on that.

The procedure's signature is :-

HRESULT RemoveControlByName(LPCTSTR lpszFile,
    LPCTSTR lpszTypeLibID,
    BOOL bForceRemove,
    DWORD dwIsDistUnit

and is documented at MSDN. http://msdn.microsoft.com/en-us/library/aa768173.aspx

Expert Comment

ID: 33618098
Why don't youpost a real live situation for us nubies that don't speak your language.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Internet is a big network which is formed by connecting multiple small networks.It is a platform for all the users which are connected to it.Internet act as platform in different fields. Such as: Internet  as a collaboration platform. Internet  as…
Following on from our article on "The Murky World of Consent and opt in", we thought we would issue some helpful guidance, not only on consent itself but knowing what information you are capturing, what you are doing with this data and how you can p…
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses
Course of the Month14 days, 2 hours left to enroll

809 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