|
From: Leif M. <le...@ta...> - 2007-06-04 14:19:26
|
Barry, > When running wrapper.exe directly you have the choice to specify > configuration properties on the command line. Is it possible to > install a windows service using the Install bat file and to specify > configuration properties to set when it starts? Anything placed on the command line when the service in installed will be placed into the registry and used again when the service is started. > > What I would like to do is have a common conf file that is called > first which would then include another application specific conf file > that is pointed to by a configuration property specified when the > wrapper.exe service is called. Is this possible? Try this. Start by specifying the following to include your config file from the primary wrapper.conf: --- #include %WRAPPER_CONF_INCLUDE% --- Then put the following on the command line when installing the service: wrapper.exe -i ..\conf\wrapper.conf set.WRAPPER_CONF_INCLUDE=../myapp.conf Cheers, Leif |