Posted 04 July 2003 - 11:18
Hello,
I'm not sure if i understand right, but you want to have a dialog and let the user enter a key. ok, lets use the is7 sdregisteruserex dialog like this:
Dlg_SdCustomerInformation:
szMsg = "";
szTitle = "";
nResult = SdRegisterUserEx( szTitle, szMsg, szName, szCompany, szSerial );
StrToUpper ( svUpper , szSerial );
szSerial = svUpper;
if (nResult = BACK) then
goto Dlg_SdLicense;
endif;
So you have the dialog and gets the szSerial back from the dialog
you can declare a funtion e.g. CheckUserID and call ist with
CheckUserID(szSerial);
inside the function you can check if the key is correct
if it is correct just return without doing anything and the setup will continue.
if the key is incorrect you can display a message box with
MessageBox("incorrect - setup will exit!", SEVERE);
and then exit the setup with
exit;
I hope it is the answer to your problem.
Greetings
C. Schaper
imos AG
Herford, Germany