http://msdn.microsof...88(VS.85).aspx#
In the site above it says
case INSTALLMESSAGE_INSTALLSTART:
{
// This message is sent when the Install begins.
// Record contains the ProductName and ProductCode
return IDOK;
}
case INSTALLMESSAGE_INSTALLEND:
{
// This message is sent when the Install ends.
// Record contains the ProductName and ProductCode
// and return value of the installation.
return IDOK;
}
for installstart messageRecord sud contain productcode and productname
and
for installend messageRecord sud contain productcode , productname and return value.
but this is wat it printed
installstart:
0:
1: Hari
installend:
0:
1: Hari
2: {198403D0-40B8-49A3-98F6-C83AFC7B7F74}
0 location is empty..
I actually want the return value..
is this a bug or am i missing something?
hari
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
ProcessMessage not returning all the values
Started by
haripanicker
, Mar 06 2009 03:53
3 replies to this topic
Posted 06 March 2009 - 11:28
Hi hari,
the field with the index 0 isn't valid for getting the information, it is NULL. Please test your solution with the following sample:
...
case InstallMessage.InstallEnd:
case InstallMessage.InstallStart:
Console.WriteLine(messageRecord.ToString());
for (int i = 1; i <= messageRecord.FieldCount; i++)
{
Console.WriteLine(i.ToString() + ": " + messageRecord.GetString(i));
}
break;
...
Cheers
Andreas
the field with the index 0 isn't valid for getting the information, it is NULL. Please test your solution with the following sample:
...
case InstallMessage.InstallEnd:
case InstallMessage.InstallStart:
Console.WriteLine(messageRecord.ToString());
for (int i = 1; i <= messageRecord.FieldCount; i++)
{
Console.WriteLine(i.ToString() + ": " + messageRecord.GetString(i));
}
break;
...
Cheers
Andreas
Andreas Kerl
Inside Windows Installer 4.5
ISBN 3-86645-431-7
Posted 06 March 2009 - 19:50
kool... thanx.. tat worked...
I have another question..
y doesnt the EmbeddedUI tag have an ignoreInstallStart and ignoreInstallEnd attrib?
Rite now i have to manually enter the MessageFilter column in the MsiEmbeddedUI table to receive InstallStart and InstallEnd values...
Hari
I have another question..
y doesnt the EmbeddedUI tag have an ignoreInstallStart and ignoreInstallEnd attrib?
Rite now i have to manually enter the MessageFilter column in the MsiEmbeddedUI table to receive InstallStart and InstallEnd values...
Hari
Posted 09 March 2009 - 13:06
I think, you know the EmbeddedUI Element of WIX. Yes the attributes are missing; I'll create a bug entry for WIX.
Andreas Kerl
Inside Windows Installer 4.5
ISBN 3-86645-431-7