Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Can IS 7 do this ?


3 replies to this topic

Lee Koh Ching

Lee Koh Ching
  • Full Members
  • 17 posts

Posted 03 July 2003 - 09:09

I want to add a dialog box that will request user key-in a the active code , beside that my installation will verify the active code isn't right, if the active code not right, the installation will terminated. else the installation will continue run. sad.gif

can InstallShield Professional 7 do this ?



Christof

Christof
  • Members
  • 56 posts

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

Lee Koh Ching

Lee Koh Ching
  • Full Members
  • 17 posts

Posted 15 July 2003 - 02:30

Thank You Very Much for your Helping.
Do you know IS 7 can checking the register key in user computer ?
What I mean is my setup will check some register key in user computer, if the register key exist , then the setup continue, else setup will terminate.

Hope you can help me.
Thank smile.gif

badzoy

badzoy
  • Members
  • 11 posts

Posted 27 October 2003 - 07:31

yes..you can do it by calling the function RegDBKeyExist()... this will check if you have the same registry key or name in the system registry exist.