473,395 Members | 1,869 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Registering ActiveX DLLs and OCXs


I have a VB.NET application which installs/updates other applications.
Some of these other applications are VB6.
Part of the processing includes registering the OCXs and DLLs and I use
the DLLSelfRegister function from the vb6stkit.dll

As a VB.NET desktop utility this worked well. However,I have made the
application into a service (customer's requirement) running in an
administrators account.
Now DLLSelfRegister fails to register the component, returning a value
of FAIL_OLE = 3 which means "unable to initialize OLE to register file"

I can shell to RegSvr32.exe from my service and that works well also,
but doesnt return a success or failure value.

Is there anyway to register an activex dll or ocx file from vb.net that
will work from in a service, or is there anything I can do to my service
to make vb6stkit.dll work?

thankyou

--
Chris Petchey
Nov 21 '05 #1
1 2132
On Fri, 23 Sep 2005 10:19:08 +0100, Chris Petchey <ch****@soltec.demon.co.uk> wrote:

¤
¤ I have a VB.NET application which installs/updates other applications.
¤ Some of these other applications are VB6.
¤ Part of the processing includes registering the OCXs and DLLs and I use
¤ the DLLSelfRegister function from the vb6stkit.dll
¤
¤ As a VB.NET desktop utility this worked well. However,I have made the
¤ application into a service (customer's requirement) running in an
¤ administrators account.
¤ Now DLLSelfRegister fails to register the component, returning a value
¤ of FAIL_OLE = 3 which means "unable to initialize OLE to register file"
¤
¤ I can shell to RegSvr32.exe from my service and that works well also,
¤ but doesnt return a success or failure value.
¤
¤ Is there anyway to register an activex dll or ocx file from vb.net that
¤ will work from in a service, or is there anything I can do to my service
¤ to make vb6stkit.dll work?

Your service is probably running under a least privileged account which wouldn't have sufficient
permissions to access the registry. You will probably need to run your service under a local machine
account that has sufficient registry permissions.
Paul
~~~~
Microsoft MVP (Visual Basic)
Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Catherine Jones | last post by:
I need to register a Vb DLL under restricted acess privilages please provide me a solution Regards and thanks
1
by: scott | last post by:
Hi, In vb.net 2003 im attempting to create an MSI using a 22 MSMs from VB6. The install path i have creted looks like this: Program Files app 1 2
3
by: Ricky | last post by:
Hi Can anyone explain what are the relationship between COM , ActiveX, DLL ? I really get confused about the terms... Ricky
5
by: andy.g.ward | last post by:
I keep getting this when trying to create an MFC activex control in a c# windows service - anyone got any ideas what the missing module could be??? Exception thrown :...
1
by: Raed Sawalha | last post by:
Hello I have ActiveX DLL and I usually register it using following procedure 1. gactutil -i ActiveXDLL 2. regasm ActiveXDLL /tlb:DLLNAME/codebase 3. then using the activeX can I automate step...
2
by: Shiraz | last post by:
Hi I just made an installer for an application that uses two external COM dlls. On the surface, everything seems to be running smoothly and the the application runs without any errors. However,...
3
by: bianko_124 | last post by:
Hi, I wrote this little function to register ocxs or dlls.. When it's all right this function works properly, but justly, for example, if the application runs with a user that hasn't administrator...
15
by: Galen Somerville | last post by:
I have an app using a VB6 ActiveX.dll which I also have made as an exe. Both the dll and exe have exactly the same code and start in Sub Main. There is no form involved. I start this activex as...
2
by: linuxfedora | last post by:
I have written a C# program which has an activeX control (abc.ocx) in Visual Studio 2005, and used the setup and deployment project to create an setup.exe and setup.msi that act as an installer. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.