We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

amorpeth
Posts: 18
Joined: Sat Feb 04, 2017 9:43 pm

Property collected in install dialog is not passed to service account

Hey,

I am using properties that are attached to text boxes in a custom dialog. During install I enter a username and password in to these text boxes, however the details entered are not saved/used. I can see in the registry that the properties default values are used instead of those entered. Any ideas what I am doing wrong?
Property.jpg
Property.jpg (369.33 KiB) Viewed 3348 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Property collected in install dialog is not passed to service account

Hello,

This happens because you have created your properties as private. Private properties preserve the changed value until the end of "Wizard Dialog Stage" and when the installation passes to the "Install Execution Stage" (when the registry are installed) they revert to the default value.

In order to preserve their values you should make them public properties. You can achieve that by renaming them only with uppercase letters. There are two types of properties: Private an Public. The private ones contain lowercase and uppercase letters and their value, when changed, is preserved only during one installation stage ( "Wizard Dialog Stage" or "Install Execution Stage"). The public ones contain only uppercase letters and their value is preserved during both installation stages.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
amorpeth
Posts: 18
Joined: Sat Feb 04, 2017 9:43 pm

Re: Property collected in install dialog is not passed to service account

Agh that would explain it!! I thought I was going mad :)

Ill give it a go.

Thanks,
Andrew
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Property collected in install dialog is not passed to service account

You're always welcome Andrew.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”