We have some custom actions written in a C++ DLL and we modify the progress string using something similar to this (although we only use this for deferred mode):
Code: Select all
// Setup a record specifying text for progress message
PMSIHANDLE hActionRec = MsiCreateRecord(2);
MsiRecordSetString(hActionRec, 1, TEXT("<Insert Custom Action Name Here>"));
MsiRecordSetString(hActionRec, 2, TEXT("<Insert progress message here>"));
UINT nResult = MsiProcessMessage(hInstall, INSTALLMESSAGE_ACTIONSTART, hActionRec);
You can do a lot more than this if you require, for example adding your custom actions progress to the progress bar etc. You should check the windows installer reference for more details.
Hope this helps,
Ewan
FOLLOW US
Get the latest news in Application Packaging