简体   繁体   English

尝试从源安装数据库C:\\ Windows \\ Installer \\ *。msi中读取错误

[英]Error Attempting to read from the source install database C:\Windows\Installer\*.msi

Would appreciate some help troubleshooting and solving the problem I currently have with installing an msi on a remote machine please. 希望能提供一些帮助进行故障排除和解决我目前在远程计算机上安装MSI时遇到的问题的帮助。 I am able to successfully build and install the same *.msi on my local machine(Windows 7, .NET 3.5). 我能够在本地计算机(Windows 7,.NET 3.5)上成功构建并安装相同的* .msi。 However, when I copy it over to a remote machine(Windows XP 2, .Net 3.5), I get the following error message. 但是,当我将其复制到远程计算机(Windows XP 2,.Net 3.5)时,出现以下错误消息。

Error Attempting to read from the source install database C:\\Windows\\Installer\\6497f.msi 尝试从源安装数据库C:\\ Windows \\ Installer \\ 6497f.msi中读取错误

This is meant to be a simple install which installs dlls and exe files to specified folder and not much else needed. 这是一个简单的安装,它将dll和exe文件安装到指定的文件夹中,不需要太多其他操作。 How can I fix this problem please? 请问该如何解决? Thanks in advance. 提前致谢。

That error means the MSI (or some previous version with the same ProductCode) was installed on the machine but the cache was destroyed. 该错误表示计算机上已安装了MSI(或某些具有相同ProductCode的早期版本),但缓存已被破坏。 I've seen this when people msizap (or use the poorly named FixIt tool from Microsoft) to try and yank an MSI off the machine. 当人们msizap(或使用Microsoft命名不佳的FixIt工具)尝试从计算机上提取MSI时,我已经看到了这一点。 If msizap was used, the safest thing for testing purposes is to format the machine and start over. 如果使用msizap,则用于测试的最安全方法是格式化计算机并重新开始。

If formatting the machine is not possible (or msizap was not used) then try recache/reinstalling the new MSI to try and get the source cache patched up. 如果无法格式化计算机(或未使用msizap),请尝试重新缓存/重新安装新的MSI,以尝试修补源缓存。 You can do this using the command-line: 您可以使用命令行执行此操作:

msiexec /i new.msi /l*v log.txt

That will cause the new.msi to be cached where the old MSI should have been then repair the machine trying to get it into a consistent state. 这将导致将new.msi缓存在旧MSI应该已保存的位置,然后修复计算机以使其进入一致状态。

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

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