TomD
Posts: 19
Joined: Wed Mar 11, 2009 10:26 pm

Installation Password

It's me again... :wink:

I want to create an installer with a pass as a must to install.
But I don't want to use the Serial-Feature.

So I created an Edit Box, set Password=True and declared the "Next"-Button Control Conditions:

WELCOMEDLGEDIT_Passfield = ThePassword | Enable
WELCOMEDLGEDIT_Passfield <> ThePassword | Disable

I think, that's not enough...
When I put in "ThePassword" into the field, nothing happens...
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Installation Password

Hi,

Unfortunately the control conditions which use an edit box property are evaluated after the focus is passed to another control (this is a Windows Installer limitation). A solution would be to use a button (for example with the text "Validate") which does nothing except getting the focus. This way the control events are evaluated when the button is clicked.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
TomD
Posts: 19
Joined: Wed Mar 11, 2009 10:26 pm

Re: Installation Password

Yes, I thought that, too. But it seems not to work!?
I have my pass field, a TestButton with no function and the "Next" button.

But the Next button is still disabled when I put in the right pass and click the Testbutton...

Image
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Installation Password

Hi,

Please note that the property values are treated as strings. Therefore, the correct control conditions would be:

Code: Select all

WELCOMEDLGEDIT_PASS <> "Test"             Disable
WELCOMEDLGEDIT_PASS = "Test"              Enable
If the behavior is the same even when using string values, please send us the AIP with the problem to support at advancedinstaller dot com so we can investigate it.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
TomD
Posts: 19
Joined: Wed Mar 11, 2009 10:26 pm

Re: Installation Password

Image

Cosmin...

Thanks again!

Return to “Common Problems”