imorrison
Pilgrim
- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- 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
ch_eng
Flexera beginner
- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Sep 18, 2017
09:40 AM
Re: Install Windows Service with dynamic name (name taken from dialog box during install)
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