Hi All,
I have a service that I am trying to install. let's assume it is service.exe.
This service also has some command line arguments:
-A foldername.processor worker queue_name
**Note, when in the command prompt, service.exe would obviously precede these arguments**
I am using the install service and it seems like it installs. All files appear to be installed in the proper program files folder. However, when I run the service, it gets about 1/2 way green, slows down, then fails.
If I use these same program files and just manually create a service outside of IA...it works without a problem.
What is going on?
Also---what I want to do is use the registration dialog to pass "queue_name" as a variable. I used $QUEUENAME$ in the arguments, but it wouldn't compile.
Thoughts?
Creating a Service with arguments
Re: Creating a Service with arguments
It seems that I am getting a 1053 error which is related to .Net framework...but the fix doesn't work---and i cannot add that framework via your installer (not to mention the service works when i do it outside of this installer)
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Creating a Service with arguments
Dear Stanzo,
once the service is installed using the "install Service" command, the service will be listed under the installed service in Control Panel.
So if the service is there, the same has been installed and registered correctly.
If the service depends on installed Runtime to work correctly, these Runtimes have to be available with the target machine before the command execution, otherwise the service registration will fail (it'll be not listed in control panel).
By the fact that you say that your project fails to compile correctly, I suppose exist something with the way you used to handle the your custom "QUEUENAME" variable.
In your script, is the variable declared before the dialog gets displayed?
Did you install all InstallAware features? Which IA version and Edition are you using?
Regards
once the service is installed using the "install Service" command, the service will be listed under the installed service in Control Panel.
So if the service is there, the same has been installed and registered correctly.
If the service depends on installed Runtime to work correctly, these Runtimes have to be available with the target machine before the command execution, otherwise the service registration will fail (it'll be not listed in control panel).
By the fact that you say that your project fails to compile correctly, I suppose exist something with the way you used to handle the your custom "QUEUENAME" variable.
In your script, is the variable declared before the dialog gets displayed?
It seems that I am getting a 1053 error which is related to .Net framework...but the fix doesn't work---and i cannot add that framework via your installer (not to mention the service works when i do it outside of this installer)
Did you install all InstallAware features? Which IA version and Edition are you using?
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: Creating a Service with arguments
Hi,
I am using IA Studio Admin X2.
The service is definitely installed. It just fails when i try to start it.
When you say "listed in teh control panel", what do you mean? I see that it is in the list of services in the task manager window if that is what you mean?
Like I said, I can manually install the service without a problem and it runs fluently. However, when I use it through this program, it fails.
I am using IA Studio Admin X2.
The service is definitely installed. It just fails when i try to start it.
When you say "listed in teh control panel", what do you mean? I see that it is in the list of services in the task manager window if that is what you mean?
Like I said, I can manually install the service without a problem and it runs fluently. However, when I use it through this program, it fails.
Re: Creating a Service with arguments
As a note:
I know what you mean by "control panel"...yes it is there...that is how i know i am getting a 1053 error
I know what you mean by "control panel"...yes it is there...that is how i know i am getting a 1053 error
Re: Creating a Service with arguments
i just found something interesting...
the "exe" piece of the service is installed with " " around it:
"path to exe\service.exe" -A listing of my arugments
therefore, that is why it is failing. How do i get rid of those quotes?
the "exe" piece of the service is installed with " " around it:
"path to exe\service.exe" -A listing of my arugments
therefore, that is why it is failing. How do i get rid of those quotes?
Who is online
Users browsing this forum: No registered users and 120 guests