PDA

View Full Version : How do I register a DLL using a Service?


Dave Allen
August 9th 05, 06:34 PM
Hi There,

I'm a Visual Basic 6 programmer and one of my programs uses a DLL to store
the printable reports for an agency. This DLL sometimes needs to be
updated on all machines (Windows 2000 and XP). I've written an upgrading
routine which does the following: When a user logs into the program it
checks for a newer copy of the main program exe and the reports dll on the
server then automatically copies them over locally and registers the
reports dll.

The system works fine but some of the agencies using the software have
limited rights for their users. This means that the dll will not register
under a non-administrator account so I have to have an administrator log in
at each machine to run the upgrade.

What I would like to do is to create a service that will register the dll
for me. I've written an activex exe which I have running as a service.
this service allows a dll's info to be sent to it and will register it
properly but it still only works on an administrator's account. I can't get
it to work on a non-administrator account.

Is it possible to use a service to register a dll? If so, which account
should I use? System, Local, An Admin account?

I've posted this in the VB groups with no answer, only a suggestion to post
it here.

Thanks in Advance,



Dave Allen


Google