Localizing error messages

Windows Installer responds to certain errors by displaying a messagebox with text about what went wrong. You can see a list of these errors at:

http://msdn.microsoft.com/en-us/library/aa372835(VS.85).aspx

Unfortunately, they're always in English. You can see an example of this by triggering the Source not found error. Follow these steps:

  1. Create a simple .wxs file, but set the EmbedCab attribute on the Media element to no. This means that the installer won't embed the CAB file in the MSI and will look for it in the same directory as the installer. The Media element will look like this:
    <Media Id="1" Cabinet="media1.cab" EmbedCab="no" />
  2. Add a project reference to the WixUIExtension and add one of the standard dialog sets, ...

Get WiX: A Developer's Guide to Windows Installer XML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.