.net – Create a custom action which msiexec will ignore its’ error code

deploymentinstallationnetvisual studiowindows-installer

I use Visual Studio 2010 to create a setup package with .NET Framework 4.0 for my project. I create a custom action using Installer class with DLL built with .NET Framework 4.0. My setup package is installed successfully.

If I remove my package and after that removing .NET Framework 4, everything is ok.

However, If I remove .NET Framework, after that I remove my setup package, I get a error: "1001 InstallUtilLib.dll unknown erro" . I think the reason I can't remove my setup package because msiexec will call my custom action which is Installer class using .NET Framework 4.0 while .NET Framework 4.0 is removed before -> Installer DLL can't be called and return a error ->removing MSI failure.

Please help me how to avoid this error or how to ignore the error code of this custom action. Thanks.

Best Answer

You can try this:

Visual Studio doesn't support this directly.

Related Topic