Old 21st June 2011, 16:00   #1
Junior Member
Join Date: Jun 2011
Posts: 26
Custom page text field question

Using the old .ini files to create custom installer pages, I could set a minimum and maximum allowed length for a text field like this:


[Field 3]
ValidateText=FAIL=Valid SFDC KB numbers are 8 digits long

Using nsDialogs, I can use the function ${NSD_SetTextLimit} to set the maximum allowed length. How do I set the minimum allowed length? I couldn't find a similar function to ${NSD_SetTextLimit} that sets the minimum length. Does NSIS have such a function?
dizou is offline   Reply With Quote
Old 21st June 2011, 16:32   #2
Afrow UK
Afrow UK's Avatar
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
I have no idea how InstallOptions enforces MinLen? You need to validate the field length yourself on page leave.

Edit: It shows a message box as I would expect. nsDialogs will not do this for you.

Afrow UK is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump