“您正在尝试访问的功能..."从MSI使用简单的安装包 [英] "The feature you are trying to access..." from MSI with simple install package

查看:117
本文介绍了“您正在尝试访问的功能..."从MSI使用简单的安装包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用Visual Studio创建了一个MSI程序包.对于80%的用户来说,它工作正常(某些用户的特权等错误),但是对于两个用户,安装失败并显示错误消息:

I created a MSI package with visual studio. It works fine for 80% of the users (some have errors with privileges and the like), but for two users the installation fails with the error message:

您要使用的功能位于不可用的网络资源上

The feature you are trying to use is on a network resource that is unavailable

我觉得很奇怪,因为所有MSI所做的都是设置一些注册表值并将OCX控件放入系统中.没有任何网络设备或其他任何东西.

Which I find very odd because all the MSI does is set some registry values and put an OCX control into the system. Nothing with any network devices or anything else.

它还引用一个install[1].msi(当实际的MSI称为install.msi时),它显然找不到,这很明显,因为这样的文件从不存在,既不需要安装也不需要引用以任何方式.

It also refers to a install[1].msi (when the actual MSI is called install.msi) which it supposedly can't find, which is obvious, because such a file never existed and is neither required for the installation nor even referenced in it in any way.

即使我从本地驱动器D:中启动了MSI,该程序包仍尝试在C:\Documents and Settings\XYZ\Local Settings\Temporary Internet Files\Content.IE5\M84S9GA4\下找到该不存在的其他程序包.

The package tries to locate this non-existent other package under C:\Documents and Settings\XYZ\Local Settings\Temporary Internet Files\Content.IE5\M84S9GA4\, even though I started the MSI out of the local drive D:.

我该如何解决/更深入地查明根本原因?

How can I resolve this / get closer the underlying cause?

推荐答案

详细的日志文件应向您显示导致该问题的确切错误.如果不一致,则最好打开

A verbose log file should show you the exact error causing the issue. If it doesn't happen consistently, you'll probably be best served turning on the logging policy to get a log file all the time and when it repros, grab the log file really quick.

或者,如果您遇到问题,可以通过执行以下操作立即获取日志文件:

Alternatively, if you have a repro situation you can get a log file immediately by doing:

msiexec /i path\to\your.msi /l*v install.txt

对于根本原因,名称为install[1].msi的事实听起来像MSI是使用Web浏览器下载并从浏览器缓存中启动的. Windows Installer对于MSI的名称非常讲究,您可以在

As for the root cause, the fact that that the name is install[1].msi makes it sound like the MSI was downloaded using a web browser and launched out of the browser cache. The Windows Installer is very particular about the name of the MSI, you can read about that in an old blog entry of mine. The end result is that shipping a 'naked' MSI on the internet is never a good idea. Maybe you're seeing these errors when shipping a newer MSI? If so, that would make a lot of sense.

一个详细的日志文件将向您显示.

A verbose log file will show you for sure.

这篇关于“您正在尝试访问的功能..."从MSI使用简单的安装包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆