This website uses cookies. By clicking OK, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- install service how to?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
chrislynn5
Pilgrim
- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Aug 17, 2010
11:02 AM
install service how to?
I'm moving from WISE to Installshield 2010 and need to install a windows service. The target will be Windows server 2003.
The issue is the current .exe file (service) uses instsrv.exe and srvany.exe to install it. How can I accomplish this in Installshield 2010? The easiest way?
Do I need to run command line, if so how?
I've played around with the components and advanced settings areas but I can add a service but can't specify the file to make the service? I see a parameters field in the Enable Service Install, Start parameters?
Thanx.
The issue is the current .exe file (service) uses instsrv.exe and srvany.exe to install it. How can I accomplish this in Installshield 2010? The easiest way?
Do I need to run command line, if so how?
I've played around with the components and advanced settings areas but I can add a service but can't specify the file to make the service? I see a parameters field in the Enable Service Install, Start parameters?
Thanx.
4 Replies
RobertDickau
Pilgrim
- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Aug 17, 2010
11:44 AM
Re: install service how to?
The component's key file is taken to be the service executable.
Please see, for example, the help topic "Installing, Controlling, and Configuring Windows Services".
Please see, for example, the help topic "Installing, Controlling, and Configuring Windows Services".
chrislynn5
Pilgrim
- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Aug 19, 2010
11:50 AM
Custom Action running cmd.exe??
The link/topic was basic and I attempted to perform this but as I stated in the post I need to do this via instsrv and srvany.exe (the exe is a FoxPro file which needs this). I've tried creating a custom action but can't seem to kick off the parameters. Sicne this is controlled by the cmd.exe file I launch that from system32 and the parameters bomb. Maybe the syntax is incorrect. I've tried with quotes and without. I can start command prompt, from custom action, and type in the values and they work. The service is installed.
Here is an example of what I've tried: Custom action>working folder>system32
"cmd.exe [INSTALLDIR]instsrv.exe MyService [INSTALLDIR]srvany.exe". This is what I do in WISE then change a parameter in the reg to set exe to run.
I get a dialog, after install of other items since this is set last, stating it can't perform this?? But again if Ijust run cmd.exe for system32, and get the command prompt, I can type in manually and install service.
I've tried setting this to [INSTALLDIR] and run cmd.exe from there (putting it in my deployment files), but that doesn't work and is probably a security issue.
Here is an example of what I've tried: Custom action>working folder>system32
"cmd.exe [INSTALLDIR]instsrv.exe MyService [INSTALLDIR]srvany.exe". This is what I do in WISE then change a parameter in the reg to set exe to run.
I get a dialog, after install of other items since this is set last, stating it can't perform this?? But again if Ijust run cmd.exe for system32, and get the command prompt, I can type in manually and install service.
I've tried setting this to [INSTALLDIR] and run cmd.exe from there (putting it in my deployment files), but that doesn't work and is probably a security issue.
chrislynn5
Pilgrim
- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Aug 20, 2010
08:45 AM
did it
I was able to use the component key after all. I set-up the srvany.exe file as the service and craeted a reg key to set the .exe file that I want the service to be.
chrislynn5
Pilgrim
- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Aug 23, 2010
10:34 AM
Dynamic service account info, can it be done?
Does anybody know how to set the service User Name and Passward dynamically, i.e. I'm using a custom dialog for user entry????
The password is a masked field in the Service Install options area.
I guess I'd like to use Property's to set those. Thanx
The password is a masked field in the Service Install options area.
I guess I'd like to use Property's to set those. Thanx