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:
- Create a simple
.wxs
file, but set theEmbedCab
attribute on theMedia
element tono
. 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. TheMedia
element will look like this:<Media Id="1" Cabinet="media1.cab" EmbedCab="no" />
- 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.