If the user has not entered a value, I would like to display an error message and remain on the custom page for the user to try again.
I have managed the validation, but I tried calling the function to create my custom page again and it displayed but the back / next / cancel buttons of the installer were disabled.
Script snippet below:
Function WebsitePagePre ; gather the name of the website to create in IIS, do not allow a blank value StrCmp $1 "" 0 +3 MessageBox MB_ICONEXCLAMATION|MB_OK "Please enter a name for the website in IIS." idok noabort noabort: Call WebsitePage FunctionEnd