Strange MSI error when setup.exe is run

Posted by Martin Jackson on Stack Overflow See other posts from Stack Overflow or by Martin Jackson
Published on 2010-04-13T14:12:06Z Indexed on 2010/04/13 14:13 UTC
Read the original article Hit count: 370

Filed under:
|
|
|

We're using Visual Studio 2008's Setup Project to create an installer for our .NET 3.5 app. We host the .exe and .msi files on a website for our client to access, and produce new ones regularly to provide updates.

This has all been fine until recently we've noticed some cases where installing via the .exe fails. The symptoms are: The .exe downloads fine, and runs fine. It appears to download the .msi successfully (the "downloading application files" step plods through happily), but then when it gets to the end of the "preparing to install" step, instead of launching the installer UI it pops up a message saying "This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package".

You'd think that the .msi is just corrupt or something, but running it explicitly (even downloading it from the same location as the .exe to do so) works just fine.

This problem is occurring on just some of our machines, which are running a mixture of XP and Windows7. The only pattern I can see in those machines that experience the problem is that they tend to have had the application installed on them longer (i.e. updating the app rather than installing for the first time).

It seems to me that it might be something to do with how/where the .exe downloads the .msi to, and perhaps different versions are conflicting there?

Has anyone experienced this before? Does anyone know where the installer .exe puts the .msi that it downloads?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about msi