简体   繁体   English

运行setup.exe时出现奇怪的MSI错误

[英]Strange MSI error when setup.exe is run

We're using Visual Studio 2008's Setup Project to create an installer for our .NET 3.5 app. 我们正在使用Visual Studio 2008的安装项目来为.NET 3.5应用程序创建安装程序。 We host the .exe and .msi files on a website for our client to access, and produce new ones regularly to provide updates. 我们将.exe和.msi文件托管在网站上,供客户访问,并定期生成新文件以提供更新。

This has all been fine until recently we've noticed some cases where installing via the .exe fails. 一切都很好,直到最近我们注意到通过.exe安装失败的某些情况。 The symptoms are: The .exe downloads fine, and runs fine. 症状是:.exe下载正常,并且运行正常。 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". 它似乎已成功下载.msi(“下载应用程序文件”步骤愉快地完成了),但是当它到达“准备安装”步骤的结尾时,它没有启动安装程序UI,而是弹出一条消息,指出“无法打开此安装软件包。请验证该软件包存在并且可以访问它,或与应用程序供应商联系以确认这是有效的Windows Installer软件包”。

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. 您可能会认为.msi只是损坏的东西,但是明确运行它(甚至可以从与.exe相同的位置下载它)也可以。

This problem is occurring on just some of our machines, which are running a mixture of XP and Windows7. 仅在部分运行XP和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 (ie 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? 在我看来,这可能与.exe将.msi下载到/的方式/位置有关,也许不同的版本存在冲突?

Has anyone experienced this before? 有谁之前经历过这个吗? Does anyone know where the installer .exe puts the .msi that it downloads? 有谁知道安装程序.exe将下载的.msi放在哪里?

I've seen this in the past where ISPs are corrupting the download, often in the case where a small EXE then downloads the MSI. 我以前曾在ISP破坏下载的情况下看到这种情况,通常是在小型EXE然后下载MSI的情况下。 The solution for us in this instance was to provide a single compressed installer which didn't download the MSI separately. 在这种情况下,我们的解决方案是提供一个压缩安装程序,该安装程序无需单独下载MSI。

We've also encountered similar problems with other products when ISPs are corrupting the digital signature on Firefox Extensions ( .xpi files) 当ISP破坏Firefox扩展上的数字签名( .xpi文件)时,我们在其他产品上也遇到类似的问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM