update a config file with a form at deployment time?
- From: Seb <Seb@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 28 Jun 2005 13:50:03 -0700
Hi all,
I have created a little service that works with a config file that obviously
has to be right before the service starts. To make it easier for people
trying to set up the config file properly I have create a simple windows form
that will modify (not create) the config fiile with the right info so the
service can work fine.
I found a few things on how to customise the installer etc... Best thing I
found was to actually load an application using the Custom Actions right at
the end of the installation before the last screen of the installer is even
displayed.
So I've done a few tests which work, but in the case of my service it isn't
quite working. This is how it is set up:
I have the solution with 3 projects, the service itself, the windows form
application to modify the xml config file, and the setup project. I've added
my project output to the install node of the Custom Actions and it does try
to load my application, but since the application checks if the file exists
first it doesn't load.
So I was wondering, the msdn library actually says all the actions under the
install node are executed once all the files have been installed, but when my
application loads at the end of the installation it doesn't seem to find the
file... Does it load from the folder it's supposed to be installed in? Or
from somewhere in the memory where obviously the file cannot be found?
Would there be any alternative? I do want to load that application so people
configure the service straight away because the info held in the config file
are just values used to make an SQL query string.
Thanks!
Regards,
Seb
.
- Follow-Ups:
- Re: update a config file with a form at deployment time?
- From: Phil Wilson
- Re: update a config file with a form at deployment time?
- Prev by Date: .NET1.1 upgrade, now "'System.Windows.Forms.Form' cannot be design
- Next by Date: Re: update a config file with a form at deployment time?
- Previous by thread: .NET1.1 upgrade, now "'System.Windows.Forms.Form' cannot be design
- Next by thread: Re: update a config file with a form at deployment time?
- Index(es):
Relevant Pages
|