How to make OLE Automation Server exit right away after registrati

G

Guest

I am creating the setup for the .NET project.
The project contains several OLE Automation Servers (.exe)
I am having troubles toadd required registration information
for these servers to the registry during setup. I explored
a few options:

1) I was trying to create required registry entries manually
on the Registry page of setup project. The problem with
this approach is that I can't specify dynamic application
path. The user can install the application in any directory,
and registry key should specify that directory. I tried
register value [Application Folder]\MyOleServer.exe
but registry value after setup was only \MyOleServer.exe

2) I notice there is Registry property on the files Properties page.
I tried to set this value to vsdrfCOM and vsdrfCOMRelativePath
but setup compiler issued the following warning:
WARNING: Unable to create registration information for file named
'MyOleServer.exe'

If I set value of Registry property to vsdrfCOMSelfReg then I din't
have compilation errors anymore but setup itself stack when it
tried to register MyOleServer.exe. My guess is because MyOleServer.exe
doesn't exit registration.

So my question is how to register OLE Automation Server properly in .NET
setup project? Any examples or articles would be very helpful.

How to make OLE Automation Server exit right away after registration if it
started only for registration purpose by setup?

What key setup uses when it tries to register selregistring components
(/RegServer) ?

Thanks
Dave
 
D

David Lowndes

I am creating the setup for the .NET project.
The project contains several OLE Automation Servers (.exe)
I am having troubles toadd required registration information
for these servers to the registry during setup.
...
I tried
register value [Application Folder]\MyOleServer.exe
but registry value after setup was only \MyOleServer.exe

Dave,

Use:

[TARGETDIR]MyOleServer.exe

Dave Lowndes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top