cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Raghvendra
Level 4

How to make installer for .air file using Basic MSI or install script

Hey All,
I am trying to make an installer of .air file using Basic MSI and I written a install script for that but it's not working it's giving me error. I am posting the code here which I am using. Please help me on this and tell me exact syntax if I am wrong, Thanks in advance.

#include "ifx.h"
export prototype MyFunction(HWND);

function MyFunction(hMSI)

STRING szProgram;
STRING szCmdLine;
NUMBER nReturn;
begin
szProgram = "C:\Program Files\Adobe\Flash Player\AddIns\airappinstaller.exe";
szCmdLine = "C:\ProgramData\Headroom Learning\Retrieve Product Key\RetrieveProductKey.air";

nReturn = LaunchAppAndWait(szProgram, szCmdLine, WAIT);

if (nReturn = 0) then
MessageBox("Notepad launched fine.", INFORMATION);
else
MessageBox("Drat.", WARNING);
endif;
end;
Labels (1)
0 Kudos
(1) Reply
Raghvendra
Level 4

Hey,
I solved this issue by my own. :):)
0 Kudos