I am using InstallScriptMsi project, i created a custom table. I need to query the table during runtime. I searched the InstallShield Help Library, everywhere i found example in VBScript. I need to know how to do it in InstallScript. I tried with InstallScript, but my script does not retrieve values. Here is my code, can anyone point out the mistake in the following code, or give me a sample how to query the msi tables during runtime.
function ReadMSI()
NUMBER hView, hDatabase,hRec,hInstall,nvBufferSize;
STRING svValue;
POINTER pView;
begin
pView = &hView;
hDatabase = MsiGetActiveDatabase(hInstall);
MsiDatabaseOpenView(hDatabase,"SELECT * FROM Feature", pView);
hRec = MsiCreateRecord(5);
MsiViewExecute(hView,hRec);
MsiRecordGetString(hRec,1,svValue,nvBufferSize);
MessageBox(svValue,INFORMATION);
MsiCloseHandle(hRec);
MsiViewClose(hView);
MsiCloseHandle(hDatabase);
end;
Can anyone help me to get this done?
Thanks in Advance,
Vishnu
