Im using IPWI 2.03 and my project needs to call a C programmed dll that checks the registration number. The C dll's declaration was :
int CheckRegNum(char *RegNum,char *PrdName,int *runtime,int *lines,int *registered,char *CompName,int *digital, int *sentinel, int *version);
I read about calling the StreamFromBinaryFile function and i used this also in my project. I followed every steps that I read about calling Dll using script. I made an function in my script that calls the StreamFIleFromBinary before calling the UseDll function. Then I put it on a custom action CheckRegNo. On my CustomerInformation dialog I included this custiom action on the Next button event using DoAction. When I builtd the project I got a warning like this:
** Warning -4095: Calling DoAction from a control event on an InstallScript custom action may not work in all cases, especially if you are using SOURCEDIR, TARGETDIR, PreShowComponentDlg, or MsiDoAction in the script. Control Next, dialog CustomerInformation, argument CheckRegNo.
When I run the setup the CheckRegNo custom action seems to work fine but it didnt return any return value. This return value is very important because ather functions on my setup depends on this like dialogs to be shown or not. Theres no error in calling UseDll and everything except that warning when i buld the project. I dont know whats the problen my custom action and what the meaning of the warning. What should I do??? Did I forgot something else??? Any idea???
Pls help I really need this in my project. I would very grateful for your help.
Thanks in advance,
Dyerald