Is it possible to install a service and taking the name from a Variable?
I've tried, but it doesn't seem to work for me (very possible that I'm doing something wrong : )
Installing service with name from variable?
But the Install Files command allows relative path and variable (such as #DEV_ENV#, even though it also claims no variable allowed. Why is Install Service command behave different from Install Files command?
This works OK:
Install Files ..\\..\\..\\..\\targets\\#BUILD_ENV#\\server\\myService\\*.* to $TARGETDIR$\\myService
But this gave me error complaining invalid path:
Install Service ..\\..\\..\\..\\targets\\#BUILD_ENV#\\server\\myService\\myService.exe to $TARGETDIR$\\myService
This works OK:
Install Files ..\\..\\..\\..\\targets\\#BUILD_ENV#\\server\\myService\\*.* to $TARGETDIR$\\myService
But this gave me error complaining invalid path:
Install Service ..\\..\\..\\..\\targets\\#BUILD_ENV#\\server\\myService\\myService.exe to $TARGETDIR$\\myService
I can't answer why Install Files works and Service File does not, that is a question for IA. However, in our environment we use the refactor paths function to accomplish the same thing as you are trying to do with compiler variables.
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com

