Thank You
Barbara
Posted 16 October 2001 - 09:15
Thank You
Barbara
Posted 16 October 2001 - 13:35
hRec = MsiCreateRecord(1);
nResult = MsiRecordSetString(hRec, 1, szMessage);
nResult = MsiRecordSetString(hRec, 0, "[1]");
lCount = StrLength(szMessage);
nResult = MsiFormatRecord(hInstall, hRec, szOutput, lCount);
nResult = MsiProcessMessage(hInstall,INSTALLMESSAGE_INFO, hRec);
All functions are returning a correct value except the MsiProcessMessage. Maybe it is important, I am using Developer 7.
Barbara
Posted 16 October 2001 - 14:47
Posted 17 October 2001 - 08:44
Barbara
Posted 17 October 2001 - 09:06
You are creating a record of one field then trying to define 2 fields. The second field could not be created.
When MsiProcessMessage is called it needs the second string because you asked for it in the first.
Posted 18 October 2001 - 10:47
Barbara
Posted 18 October 2001 - 17:15
I know that this return code means no action was taken. The code then hangs from there.
If you could offer any assistance, please do.
hRec = MsiCreateRecord(1);
nResult = MsiRecordSetString(hRec, 1, szMessage);
nResult = MsiRecordSetString(hRec, 0, "[1]");
lCount = StrLength(szMessage);
nResult = MsiFormatRecord(hInstall, hRec, szOutput, lCount);
nResult = MsiProcessMessage(hInstall,INSTALLMESSAGE_INFO, hRec);