Custom action message strings - Advanced Installer Community

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!

johndwill
Posts: 5
Joined: Sat Oct 20, 2007 2:11 am

Custom action message strings

Hi,

I need to display some messages from inside my custom action. I've gotten MsiProcessMessage() to work using hard coded strings, but I was wondering if there is a way to store those strings in the installer's Error table?

According to the MSI docs, a custom action can use the second field of the record passed into MsiProcessMessage() as an id into the Error table.

Would I have to create a new Dictionary and add my messages there? That seems to be the only place that has the error strings listed.

Thanks
John Williams
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,
I was wondering if there is a way to store those strings in the installer's Error table?
This can be done by modifying Advanced Installer's dictionary.

First, you open "Advanced Installer 5.2.2\fragments\StaticUIStrings.aip" with a text editor and under the last error ID (usually 4107) you add the IDs of your custom errors by using this format:

Code: Select all

<ROW Error="4107" MessageLocId="Error.4107"/>
Now you open the dictionary (ex: Advanced Installer 5.2.2\dictionaries\ui_en.ail) and add your custom errors after the last error by using this format:

Code: Select all

<STRING id="Error.4107" value="Error description"/>
Note that when you use the examples above you will replace 4107 with an unused error ID.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”