Page 1 of 1

Unable to Install Service

Posted: Wed Aug 31, 2016 8:02 am
by roddyvet
I am trying to use the Install Service feature, but I'm not able to set the Target Folder. The Service File I am trying to install is part of the installation files which are getting installed to a path stored in a variable named $CL_FILESPATH$\Services. Back in the Install Service dialog I specify the Target Folder to be $CL_FILESPATH$\Services. When I compile the project, I get an error message...

Error during build: Cannot open file "c:\users\administrator\documents\cemlink\MonitorService.exe". The system cannot find the file specified

It looks like Install Services is looking for the file at compile time in the IA project folder for this service. How can I get it to use the $CL_FILESPATH$ variable which is set at run time?

Re: Unable to Install Service

Posted: Thu Sep 01, 2016 4:40 am
by FrancescoT
Dear Roddyvet,

you cannot use SCRIPT VARIABLES with "Service File" parameter of the "Install Service" command. This parameter must be resolved at BUILD TIME.

Alternatively, you may use the "Run Program" command to install your service as you do from CMD prompt. The Run Program command allows the use of script variables.

Hope this helps you.

Regards