Click here to Skip to main content
12,398,537 members (58,178 online)
Rate this:
 
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 21:17pm
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 29 Apr 2013
Copyright © CodeProject, 1999-2016
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