Hi,
I'm building an installer that installs my application as a windows service. So far, so good but i'm struggling with the next part.
My application relies on a central configuration file, the location/name of this can vary depending on the target network so i've created a dialogue with a text box to enter the data. I've called this text box "ConfigPath".
I was about to ask this question when i realised that i could get the property by specifying it inside the square brackets so i have the following
-config [ConfigPath]\config.conf -config-directory C:\ProgramData\somedata\config --reloadConfigInterval 120 start= delayed-auto
The problem is the value is blank when the service installs and it ends up point the service to use
-config \config.conf -config-directory C:\ProgramData\Prevensys\config --reloadConfigInterval 120 start= delayed-auto
Really it should be a UNC path to a network share
-config \\UNC_PATH_FROM_TEXTBOX\config.conf -config-directory C:\ProgramData\Prevensys\config --reloadConfigInterval 120 start= delayed-auto
How can i get this information? I tried to output it to a text file to see if the value was being carried over but it hasn't which makes me think i've probably missed something super simple.
Thanks
Phil