Click to See Complete Forum and Search --> : ActiveX EXE unregister


paulz
May 4th, 2001, 09:31 AM
Hello!
How can I unregister ActiveX EXE?

cksiow
May 4th, 2001, 09:48 AM
use the windows command

Regsvr32 /u [ActiveX EXE filename]

or if you want to do it programmably, try http://vblib.virtualave.net, there is a function call RegisterComponent in vbSystem class which might be able to do it.

HTH

paulz
May 7th, 2001, 12:44 AM
Thanks, I did it and received the following message:

FileName.EXE was loaded, but the DllUnregisterServer entry point was not found.
FileName.EXE does not appear to be a .DLL or .OCX file.



May be the fact is that my project is ActiveX EXE project and it has startup object: Sub Main?

Cimperiali
May 7th, 2001, 02:50 AM
I think it is because activeX exe are self registering (=you run them, they register themselves) - beware, I may be wrong... - However, you could try manually deleting entries in registry you find searching for your activex.exe name, your activeX classes with istancing property greater than "public non creatable" names - using regedit.exe
(beware of what you delete: it is windows registry what you're touching!)


Special thanks to Lothar "the Great" Haensler, Tom Archer, Bruno Paris and all the other wonderful people who made and make Codeguru a great place. Come back soon, you Gurus.

cksiow
May 7th, 2001, 07:23 PM
try to create a reference to that activeX, maybe it's already be registered. I did encounter this, but when I use the component, it just worked. Somehow this might not be fatal error.