Click here to Skip to main content
11,790,613 members (61,030 online)
Rate this: bad
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;
MsiGetProperty(hMSI, "USERLICENSE", szMyProp, nBuffer);
    if(szMyProp ="078E-3476-83F9-7395") then
        nresult = EzDefineDialog("CustomerInformation","","",1920);
        MessageBox("The License is not valid",INFORMATION);
Can anyone tell me what needs to be changed to solve this issue?
Posted 28-Apr-13 21:17pm
Edited 29-Apr-13 2:59am
(no name)502.8K
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 1,154
1 Maciej Los 825
2 KrunalRohit 686
3 ppolymorphe 660
4 CPallini 621

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