gpt4 book ai didi

c# - 主要输出的 Visual Studio 部署项目快捷方式 - 'Open file location' 不工作

转载 作者:太空宇宙 更新时间:2023-11-03 13:00:17 24 4
gpt4 key购买 nike

当您使用部署项目创建主要输出的快捷方式时,请执行以下步骤:

(根据这篇文章Visual Studio Deployment Project - Create shortcut to deployed executable)

In your Deployment Project go to File System Editor
Click on "Application Folder" (I assume you have "Primary Output" from your projects there)
Right click on "Primary Output" of the project you want to target with your shortcut - select "Create Shortcut to Primary Output ..."
Rename shortcut
Drag shortcut to Desktop / Programs Menu folder

一切正常,但是当您在安装后右键单击目标计算机上的快捷方式并选择“打开文件位置”选项时,这应该会打开实际 exe 的文件夹,Windows 打开快捷方式所在的文件夹.快捷方式“属性”中的“打开目标位置”按钮被禁用。

知道为什么它没有正确链接,即使点击它启动可执行文件一切正常?

最佳答案

MSI 安装的快捷方式是默认公布的快捷方式。它只是意味着快捷方式是指向其目标的间接指针,包含 Windows Installer ProductCode、功能名称和组件 guid。作为激活的一部分,它会检查目标文件是否存在,如果不存在,它将修复已安装的产品。

如果您在命令行安装中将 DISABLEADVTSHORTCUTS 设置为 1 或手动将其添加到 MSI 文件(InstEd 或 Orca)的属性表中,这将禁止创建它们。 https://msdn.microsoft.com/en-us/library/aa368297(v=vs.85).aspx

关于c# - 主要输出的 Visual Studio 部署项目快捷方式 - 'Open file location' 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32520310/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com