Solved

How to remove a component from VB6

Posted on 2004-08-18
7
278 Views
Last Modified: 2008-01-16
How does one remove a component from the component list in VB6? We don't want to use it again, ever.

I'm not very proficient at VB, so this is a newbie question.

A customer installed a demo component into their VB6 development environment while logged in as USERA.
The machine, a WinXP Pro box, had been part of a workgroup when this was installed.  The workstation joined a domain, which created a new profile for the user(USERB).  We have tried to migrate the profile from USERA to USERB.

When USERB starts up VB, they get prompted for the installation CD from the demo.  They can cancel through the questions/prompts, but its annoying.   When USERA starts up VB, they get no prompts for installation.  We're trying to uninstall the demo component all together, but don't have the demo CD, its not listed in the "Add/Remove Programs" list, and we don't find any "un-install" menu item.  

I surmise that the component's install didn't install the component with "All Users" security; instead it must have installed it only for the current user (which was USERA, at the time).    We can delete directories and the .OCX files, but I'd like to get it removed from their component list completely, regardless of user.

0
Comment
Question by:studios
  • 4
7 Comments
 
LVL 7

Expert Comment

by:Burbble
ID: 11832296
I'm not positive on this, but you can try unregistering the component:

Start > Run :

regsvr32 /u FILENAME.OCX

I will look into this further and get back to you if I find anything.

-Burbble
0
 
LVL 7

Accepted Solution

by:
Burbble earned 250 total points
ID: 11832350
Yep, that does it. If it's not located in the WINDOWS\SYSTEM directory, you will have to type the full path surrounded by quotes:

regsvr32 /u "C:\Program Files\Application\MyActiveXControl.OCX"

You can also set it so no "DLL Unregister Succeed" message box is shown like this:

regsvr32 /u /s "C:\Program Files\Application\MyActiveXControl.OCX"

(/s is for "silent")

-Burbble
0
 
LVL 2

Expert Comment

by:kouroshparsa
ID: 11862605
Try "\windows\system32\MyActiveXControl.OCX"
0
 
LVL 7

Expert Comment

by:Burbble
ID: 11864225
If it is located in the WINDOWS\SYSTEM directory (or equivilent), you can use:

regsvr32 /u MyActiveXControl.ocx

like I said before...

If you are coding this into your program (using Shell, for instance), then it is better to call it with the full path, just in case.

(Full path meaning the drive letter, path, and filename: like "C:\Windows\System\MyActiveXControl.OCX" or "C:\Program Files\Application\MyActiveXControl.OCX").

If the file is not located in a static position on every system, you will have to find the path programmatically... If this is what you need, please ask and I will be glad to assist :-)
Otherwise, the solution I provided is what you are looking for...

-Burbble
0
 
LVL 7

Expert Comment

by:Burbble
ID: 12376813
Like I said,

>> Otherwise, the solution I provided is what you are looking for...

Based on the information provided, I am 99% sure that what I provided will solve the problem :)

-Burbble
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying 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

Suggested Solutions

Title # Comments Views Activity
message box in access 4 51
MsgBox 4 68
Set email body to html using vbscript 6 49
VBA: copy range dynamically based on config sheet v2 3 48
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

856 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