This website uses cookies. By clicking Accept, 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 Windows Service with dynamic name (name taken from dialog box during install)
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
May 06, 2017
05:26 AM
Install Windows Service with dynamic name (name taken from dialog box during install)
Hello There,
I am trying to create/install Windows Service with dynamic name (name taken from dialog box during installation).
I am using same technique as updating XML file, but its not working
...for instance.....
in the dialog box during installation, I take few properties to update into XML file. For that...I pass value/property as....
[value1], [value2],...so on.
So name/value taken from the dialog box, I need to set that as "Display Name" and the "Service Name" of the service. Such as below....
Display Name: [TestServiceName]
Can someone please suggest how that can be achieved.
Your help is really appreciated.
Thank you in advance!
I am trying to create/install Windows Service with dynamic name (name taken from dialog box during installation).
I am using same technique as updating XML file, but its not working
...for instance.....
in the dialog box during installation, I take few properties to update into XML file. For that...I pass value/property as....
[value1], [value2],...so on.
So name/value taken from the dialog box, I need to set that as "Display Name" and the "Service Name" of the service. Such as below....
Display Name: [TestServiceName]
Can someone please suggest how that can be achieved.
Your help is really appreciated.
Thank you in advance!
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 18, 2017
09:40 AM
imorrison,
We do this in an InstallScript Only project via the following code. If this is for Basic MSI, I don't have an answer.
HTH
We do this in an InstallScript Only project via the following code. If this is for Basic MSI, I don't have an answer.
// Register Windows Service
ServiceAddService( strServiceName,
strServiceDisplayName,
strServiceDescription,
szPath ^ strFilename,
TRUE,
""
);
HTH