Wednesday, July 30, 2014

Installshield LE Internal Error -4130

I recently was building a simple 64-bit console application, and created a straightforward installer for it; the only out-of-the-norm thing I did was make the installer 64 bit and remove that auto-update crap.

When I went to build it, I got the enormously helpful error:

Internal Error -4130

Naturally, there's no information about that on Flexera's site.  Their tech support is abysmal.

After tooling around on the Internet for a bit, I found out that this error indicates a failure of COM initialization.

COM Initialization?  What the heck does that have to do with a 64-bit .NET assembly?  But by then I had a sneaking suspicion what would work.

I shut down Visual Studio, and re-opened as an Administrator.  When I ran the build again, it was successful.

I don't know why it needs to initialize COM... it shouldn't.  But almost all COM issues I have found in the last few years are directly centered on permissions.]

I REALLY wish MS would bring back its installer support.  Flexera's tool is crap and WIX is painful.