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

Sanketh pbsanketh at gmail.com
Sun Sep 6 10:20:02 PDT 2015


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.

-- 
Best regards

Sanketh.


More information about the wix-users mailing list