Hey Y'all -
I am evaluating the advanced installer and I have the following issue I would like to get resolved:
The user is asked a e.g. username and a password which need to adhere to certain limitations e.g. a min and max length of the inputs.
I tried the following for the username field:
1. I use a global property name e.g. USERNAME in which I locate the username provided by the user via an edit control in a custom dialog.
2. I added a custom action that is called CheckUsernameLen with the script text:
Session.Property("USERNAME_LEN") = Len(Session.Property("USERNAME"))
3. In order to create the property USERNAME_LEN I added [USERNAME_LEN] to the field action data
4. Back in the custom dialog I added a DoAction event to the Published Event tab of the 'next'-button with the argument of my custom action CheckUsernameLen with the condition set to be true always. This action is the first in the list.
5. The NewDialog event is preceeded by another DoAction which is inteded to look at the USERNAME_LEN property and check if its value is e.g. less than 4 in which case another custom action is called which simply displays a message box (not the error message custom action!) telling the user that the username requires to be at least 5 characters: AI_INSTALL AND (USERNAME_LEN <= "4")
The result of this action if I try to simulate the dialog is that it prematurely ends the installation. I tracked down the issue the custom action where it checks the length of the username. It will successfully evalute its length since I can output it with a message box, but apparently I cannot write it back to the USERNAME_LEN property.
I hope you can help me out here! Maybe there is a fix for that or another way.
Thanks,
Martin
I am using:
Advanced Installer 8.9 (Trial)
Win 7, 64bit
Visual Studio Express 2010 + Windows SDK + SP1
FOLLOW US
Get the latest news in Application Packaging