bjohns33
asked on
.NET Windows Service/external parameter file
I've got a windows service that installs fine using installutil.exe, but in the deployment I want to include a text file that's going to store a number of parameters that will change on each install.
Maybe a text file isn't the best way of doing this, so am open to other ideas, but if it is, how do I get it to be installed as part of the deployment so that I can reference it as "parameters.txt" rather than "c:\...\...\parameters.txt "?
Thanks
Ben
Maybe a text file isn't the best way of doing this, so am open to other ideas, but if it is, how do I get it to be installed as part of the deployment so that I can reference it as "parameters.txt" rather than "c:\...\...\parameters.txt
Thanks
Ben
ASKER
Sorry Gregory - yes it would have to be there, but the question is how do I get it there as part of the projectinstaller/installut il installer.
Thanks
Ben
Thanks
Ben
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Did this work ?
ASKER
Hi Gregory
Sorry for the tardy response.
I've ended up going the registry route, but thanks for the pointers, very useful couple of articles.
Cheers
Ben
Sorry for the tardy response.
I've ended up going the registry route, but thanks for the pointers, very useful couple of articles.
Cheers
Ben
http://www.codeproject.com/Purgatory/FilesandDirectories.asp explains how to get and set this value using System.IO.Directory