Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COM server registration

Status
Not open for further replies.

josedeman

Programmer
Jan 20, 2004
23
NL
I've build a com server (VFP7 SP1) and want the server to registrer automatically when the user starts up another foxpro .exe that uses that com server.
I've included the following lines:
lcpad = CURDIR()
lcCommand = "run /N2 "+lcpad+"controle.exe" " /regserver"
&lcCommand

That works fine as long as the user has sufficient rights to write in the registry.
But what to do if that is not the case? Is there another way to registrer the com server?
 
If a user does not have permissions to register a server, that user does not have permission. This is the issue with the how and why viruses and malware persist in the wild. Admins opening wide user permissions to allow installation of this type of thing. I have learned to cope with it and chalk it up to "the way things are". When I have a com server or dll that needs registration for my application I register it during installation and force installation by admistrator user.

Steve Bowman
steve.bowman@ultraex.com

 
Steve's suggestion to register during installation is the best idea. The installer may even be "promoted" in certain circumstances to have more rights than the current user. (I believe this happens when the user is granted "install" rights)

- Bill

Get the best answers to your questions -- See FAQ481-4875.
 
Thanks for your answers. I'll give the installer a try.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top