Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / December 2004

Tip: Looking for answers? Try searching our database.

How to make OLE Automation Server exit right away after registrati

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dave - 22 Dec 2004 19:43 GMT
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
David Lowndes - 22 Dec 2004 22:08 GMT
>I am creating the setup for the .NET project.
>The project contains several OLE Automation Servers (.exe)
[quoted text clipped - 4 lines]
>   register value [Application Folder]\MyOleServer.exe
>   but registry value after setup was only \MyOleServer.exe

Dave,

Use:

[TARGETDIR]MyOleServer.exe

Dave Lowndes
Signature

MVP VC++ FAQ: http://www.mvps.org/vcfaq


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.