Service Control Operation issue - Advanced Installer Community
Tim0n
Posts: 14
Joined: Fri Sep 05, 2014 10:59 am

Service Control Operation issue

Hello,

I have a textbox field, that is bound to a property, which is also used as service name in the service tab. However, AI uses the default name of the property to start the service which leads to an error, if the user wants to change the service name.

How can I tell AI to use the "new" service name?

Regards,
Timon
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Service Control Operation issue

Hi Timon,

This can happen if you use a private property, because its value is not passed from "Wizard dialog Stage" to "Install Execution Stage." Check our "Why do I get the default property value written instead of the one entered by the user on the MSI dialogs?" faq which should be useful. Try using a public property.

Let us know if this solves your problem, and if not please give us more details (maybe exemplify).

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Tim0n
Posts: 14
Joined: Fri Sep 05, 2014 10:59 am

Re: Service Control Operation issue

Hi Daniel,

thanks for your reply.

I just checked the property again and it seems that AI placed a pipe "|" after the bracket (I used the "Select a property" window), after is removed the pipe it's working. Is there any reason for this behavior?

Regards,
Timon
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Service Control Operation issue

Hi Timon,

There are two types of fields:PseudoFormatted and Formatted.

References embedded in a PseudoFormatted string must respect the following syntax: [|propertyname]
References embedded in a Formatted string must respect the following syntax: [propertyname]

Properties referenced by PseudoFormatted fields are resolved at build time while properties referenced by Formatted fields are resolved at runtime.
We use the PseudoFormatted type as default due to some limitations in our interface framework, but the "Service Name" field supports both formats.

If you use the formatted type your property will be resolved at runtime, so what you did is correct.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Tim0n
Posts: 14
Joined: Fri Sep 05, 2014 10:59 am

Re: Service Control Operation issue

Hello Bogdan,

thanks for the clarification! :)

Regards,
Timon

Return to “Building Installers”