imorrison
Pilgrim

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!
Labels (1)
0 Kudos
1 Reply
ch_eng
Flexera beginner

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.

	 	// Register Windows Service
ServiceAddService( strServiceName,
strServiceDisplayName,
strServiceDescription,
szPath ^ strFilename,
TRUE,
""
);


HTH
0 Kudos