Possible bug when using "Use advanced controls" - Advanced Installer Community

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!

franz
Posts: 4
Joined: Tue Jul 21, 2009 4:03 pm

Possible bug when using "Use advanced controls"

We have an edit box with it's value mapped to a property. The value of this property is written to the registry at the end of the install procedure. The default value of the edit box is an empty string. If we have "Use advanced controls" disabled this works pretty neatly all the way through. When we enable "Use advanced controls", the value of the string is only read if the initial value was set to anything but an empty string.

[Edit]
Just to clarify a bit more. The string is considered to be full when leaving the page, but the value written to the registry is actually empty.
[/Edit]

I find it a bit unintuitive if this is intended behavior.

We want to have "Use advanced controls" enabled to allow customers to RMB paste a 48 character long serial key.

This issue is found in release 7.1.2.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Possible bug when using "Use advanced controls"

Hi,

There is a limitation of enhanced UI that requires that PUBLIC properties have a default value. We will fix that in the next version. So to do what you need you can try this workaround :

- in the Default Value field of the Edit Box you've created put a random value
- now go to Custom Actions page → right click InstallUISequence → Show Standard Actions → Begin
- right click Begin → New Custom Action → Property Set with Formatted
- in the Property Name field from the Custom Action Properties page fill in the name of your edit box property, for example:

Code: Select all

 MY_EDIT_BOX 
– in the Formatted Text field fill in this code, it is the equivalent of an empty string :

Code: Select all

 [~] 

By doing all the above your Edit Box will appear empty and the value will be stored correctly in the registry key.


Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
franz
Posts: 4
Joined: Tue Jul 21, 2009 4:03 pm

Re: Possible bug when using "Use advanced controls"

Thanks. Works like a charm.

Return to “Common Problems”