Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: setup
I am having a function in Install script for license validation. If i enter a wrong license key it is showing the error message, but if i enter a valid license key the installation stops immediately.
The function for license validation is below:
function ValidateLicense(hMSI)
 
STRING szMyProp;
NUMBER nBuffer;
OBJECT nresult;
begin
nBuffer=256;
 
MsiGetProperty(hMSI, "USERLICENSE", szMyProp, nBuffer);
 
    if(szMyProp ="078E-3476-83F9-7395") then
 
        nresult = EzDefineDialog("CustomerInformation","","",1920);
 
        else
 
        MessageBox("The License is not valid",INFORMATION);
 
    endif;
end;
Can anyone tell me what needs to be changed to solve this issue?
Posted 28-Apr-13 22:17pm
Edited 29-Apr-13 3:59am
(no name)499K
v2
Comments
Prasad Khandekar at 29-Apr-13 9:21am
   
Try removing EzDefineDialog line.
Prakash Sekhar at 29-Apr-13 9:51am
   
If i remove EzDefineDialog then how do i call the next dialog.
Prasad Khandekar at 29-Apr-13 12:04pm
   
It's a function and your next dialog should get called from the main script. This function should return the nResult as NEXT OR BACK.
Prakash Sekhar at 29-Apr-13 12:21pm
   
I am not sure about how to return nResult as NEXT or BACK. I normally call another dialog by using EzDefineDialog only.
Prakash Sekhar at 30-Apr-13 4:50am
   
Can you tell me how to call nResult from main function, because i cannot open a new dialog when another dialog is kept open.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 277
1 Maciej Los 210
2 BillWoodruff 195
3 DamithSL 195
4 Richard MacCutchan 178
0 OriginalGriff 5,130
1 DamithSL 4,197
2 Maciej Los 3,670
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,821


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 29 Apr 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100