[wix-users] using C# api to get error messages

Carter Young ecyoung at grandecom.net
Mon Sep 7 23:27:56 PDT 2015

Please have a look at:

The error message being returned is correct, because the error lookup is
done by referencing the link above.  This is correct behavior

On 09/06/2015 12:20 PM, Sanketh wrote:
> Hello All,
> We are trying to use Microsoft.Deployment.WindowsInstaller dll (C#) and
> install the MSI package. I couldn't find much examples regarding this.
> The installation is successfull. In case of error I want to display the
> error message in specific language using lcid. so I use the below method
> passing the error code. The MSI used has language English.
> For example for error code 1603, I should get "Fatal error during
> installation" using below method.
> string errorMsg = Installer.GetErrorMessage(1603,
> System.Globalization.CultureInfo.GetCultureInfo(1033));
> but I get the below error message which is incorrect.
> "The file [2][3] is being held in use{ by the following process: Name: [4],
> Id: [5], Window Title: '[6]'}.  Close that application and retry."
> Am I using the method right? Please provide / point me to example where I
> can get the correct error message in specific language.
> Thanks an lot in advance.

More information about the wix-users mailing list