473,320 Members | 1,883 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How to make OLE Automation Server exit right away after registrati

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
Nov 17 '05 #1
1 1754
>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
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: The Jetman | last post by:
I'm reading source code, but I haven't found any examples of how to simply shutdown my XML-RPC server. I've done some nice things w/ it so far. I can upload and dload arbitrary files, remotely...
25
by: Neil Ginsberg | last post by:
I have a strange situation with my Access 2000 database. I have code in the database which has worked fine for years, and now all of a sudden doesn't work fine on one or two of my client's...
12
by: Cheval | last post by:
Has anyone had any problems with inter-office automation between MS Word and MS Access in Office 2003? I have recently installed office 2003 in a new folder and have left the older office 2000...
5
by: Wenke Ji | last post by:
Hi I open a Excel workbook using below API: Set ExcelServer = CreateObject("EXCEL.Application") Set TargetWorkbook = ExcelServer.Workbooks.Open (CurrentBook) Befor the programm exit , I use...
6
by: Ian Boyd | last post by:
Every time during development we had to make table changes, we use Control Center. Most of the time, Control Center fails. If you try to "undo all", it doesn't, and you end up losing your identity...
2
by: Bart Van der Donck | last post by:
Hello, I'm posting the software for one-FAQ-a-day as described on http://tinyurl.com/qcxw7 (comp.lang.javascript, July 18 2006, titled "CLJ newsgroup FAQ) and on http://tinyurl.com/ppt2s...
4
by: bjm | last post by:
I am writing a program that will automate a series of application installations. I want to give the user the option of stopping the program's execution in between installations (for example, give...
1
by: Bruce | last post by:
Hello, I know this must be something simple I'm overlooking but I can't get err.raise inside a class to return anything but 440 - automation error. For example, if I create the following test...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.