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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Register com exe on client

Status
Not open for further replies.

AlastairP

Technical User
Feb 8, 2011
286
AU
I have been trying to register a com exe on a Windows 8.1 32 bit computer
The development computer is Windows 7 64 bit
I place the file in the Windows\System32 folder in the target computer
open elevated command prompt
for good measure cd to Windows\System32 folder
type C:\Windows\System32\mycomserver.exe /RegServer
and press enter
There is no conformation

Then when I run the com server I get an error 'Class Name not found'

I have a single class library named the same as the project. There is a custom class lets say called 'TestCom'
I have tested the com exe and it works fine in development.

Alastair
 
Win32 programs go into syswow64, but you shouldn't actually put your EXE to the system, it isn't a system feature.

So install where you want.

But the important thing is: The runtimes have to exist in the same folder! a COM Server EXE also isn't standalone. And it also needs the vfp9r.dll plus Ct++ runtimes at minimum.
And then, yes, this call with /regserver has to be done elevated.

So you do that call within a setup, for example, or as you did in the elevated command prompt.

Bye, Olaf.



Olaf Doschke Software Engineering
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top