“主要输出”的快捷方式使标准用户失败 [英] Shortcut to “Primary Output” fails standard users

查看:80
本文介绍了“主要输出”的快捷方式使标准用户失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


Visual Studio安装项目创建"主要输出"的快捷方式,显然除了标准快捷方式之外还有其他功能/行为。当您检查快捷方式的
属性时,可以看到这种不同结构的最重要的视觉提示:"目标"字段包含应用程序的名称并且显示为灰色。

Visual Studio Setup Project creates shortcuts to the "Primary Output" which apparently have additional features/behaviors beyond those of a standard shortcut. The most significant visual cue to this different structure is seen when you examine the shortcut’s properties: The "Target" field contains the application’s name and is grayed-out.


我遇到过这种类型的快捷方式的问题。显然,它的新功能需要访问安装程序包(.msi文件)才能运行。当应用程序的常规用户没有管理员安装应用程序的网络
文件夹的访问权限时,这就成了一个问题。

I have encountered an issue with this type of shortcut. Apparently its new features require access to the Installer Package (.msi file) in order to function. This becomes a problem when the regular users of the application don’t have access rights to the network folder from which the administrator installed the application.


他们得到错误信息:

They get the error message:



"无法找到产品MyApplication的安装包。请使用安装包"MyApplication Setup.msi"的有效副本再次尝试安装。

"An installation package for the product MyApplication cannot be found. Try the installation again using a valid copy of the installation package ‘MyApplication Setup.msi’.



注意:应用程序已完全安装(适用于所有人),并且将为有权访问安装包位置的任何用户运行。

Note: The application is fully installed (for Everyone) and will run for any user that has access to the location of the install package.


有没有办法:

Is there a way to:




  • A)更改需要引用的"Primary Output"快捷方式的选项?

  • A) Change the options of the "Primary Output" shortcut that are requiring the reference?


B)替换标准快捷方式"改进"一个?

B) Substitute standard shortcuts in place the ‘improved’ one?


C)另一个推荐的选项,不涉及将安装包复制到每个本地工作站,这会破坏建立网络的目的吗?

C) Another recommended option that does not involve copying the Install Package to every local workstation, which would kind of defeat the purpose of having a network?

推荐答案

您可以使用Windows SDK中的Orca工具编辑Visual Studio Installer项目创建的msi,以添加属性DISABLEADVTSHORTCUTS。 这将导致安装"正常"快捷方式。
You can use the Orca tool from the Windows SDK to edit the msi created by Visual Studio Installer projects to add the property DISABLEADVTSHORTCUTS.  This will cause a "normal" shortcut to be installed.


这篇关于“主要输出”的快捷方式使标准用户失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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