Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Updated 29-Apr-13 2:59am
v2
Comments
Prasad Khandekar 29-Apr-13 9:21am    
Try removing EzDefineDialog line.
Prakash Sekhar 29-Apr-13 9:51am    
If i remove EzDefineDialog then how do i call the next dialog.
Prasad Khandekar 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 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 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900