I need to create a Wix Installer, that will allow me to have a dialog, where the user can type in a serial number, then I need to save the serial number they entered into the Windows registry.
Also, if they don’t enter a serial number, the next button needs to be disabled, so that they cannot proceed with the installation, if they do not enter a serial number.
WIX does not support key events like the one you want the next button must be enabled when the user enters the key. Best option is to provide the next button and call a custom action to check whether the key is correct, if un-correct throw error message.
InvlaidPidDlg will show error message. From custom action you need to set the value of ‘USERERRMSG’