We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Manish

Can I update the text for the progress bar?

I have implemented a custom action which does some lengthy tasks at the end of installation (InstallFinalize). When the task is carried out, the text at the progress bar displays "Removing backup files". Can I modify the text and display my own text informing the user what is currently going on
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

I doubt this can be done. If it can, I do not know how.

Also, the custom action scheduled after InstallFinalize are Immediate. Are you sure you want this? Why not in Commit section?
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ewanb
Posts: 28
Joined: Mon Jun 05, 2006 1:53 pm
Location: Glasgow

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

Return to “Common Problems”