简体   繁体   English

如何使用Visual Studio安装程序在所有应用程序菜单中创建桌面应用程序的快捷方式

[英]How to create shortcut to desktop app in the all apps menu using Visual Studio Installer

In my solution I have a Windows desktop project and a Visual Studio installer setup project. 在我的解决方案中,我有一个Windows桌面项目和一个Visual Studio安装程序安装项目。 The Windows project is just for testing purposes and does not have any UI. Windows项目仅用于测试目的,没有任何UI。

I want to configure my installer project to install my Windows app and create an entry in the all apps list in the start menu, however I don't see any way of doing this. 我想配置我的安装程序项目以安装Windows应用程序,并在开始菜单的所有应用程序列表中创建一个条目,但是我看不到这样做的任何方法。

The only way I have found that I can create an entry in the all apps list is by creating and installing a UWP app. 我发现可以在所有应用程序列表中创建条目的唯一方法是创建并安装UWP应用程序。

How do I create an entry for my Windows app? 如何为Windows应用程序创建条目?

I found the answer. 我找到了答案。

In the Visual Studio installer setup project, in the solution explorer, right click on the project and go to view file system. 在Visual Studio安装程序安装项目中的解决方案资源管理器中,右键单击该项目,然后查看文件系统。

Right click on 'File System on Target Machine' in the file system menu, and go to 'add special folder'. 右键单击文件系统菜单中的“目标计算机上的文件系统”,然后转到“添加特殊文件夹”。 Add 'User's start menu'. 添加“用户的开始菜单”。 Cut and paste shortcut of primary output into the start menu. 将主输出的快捷方式剪切并粘贴到开始菜单中。

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

相关问题 删除桌面快捷方式 Visual Studio 安装程序项目 - Remove desktop shortcut Visual Studio Installer Projects Visual Studio 2017安装程序桌面快捷方式图标 - Visual Studio 2017 Installer Desktop Shortcut Icon 如何为使用 visual studio Installer 创建的安装项目的桌面快捷方式设置图标? - How to set icon for the desktop shortcut of setup project created using visual studio Installer? 如何有选择地在 Microsoft Visual Studio 安装程序中创建快捷方式 - How to optionally create shortcut in Microsoft Visual Studio Installer 如何在不使用安装程序的情况下在Windows 8“开始”屏幕上放置Desktop App快捷方式? - How can I place a Desktop App shortcut on the Windows 8 Start screen without using an installer? 如何使用Visual Studio为.net Windows服务创建安装程序 - How to create an installer for a .net Windows Service using Visual Studio 如何在 Visual Studio 中创建 MSI 安装程序? - How to Create an MSI Installer in Visual Studio? Visual Studio 安装程序项目 - 未设置快捷方式图标 - Visual Studio Installer Project - shortcut icons not set Visual Studio 安装程序 > 如何在安装程序结束时启动应用程序 - Visual Studio Installer > How To Launch App at End of Installer Visual Studio部署项目可选的桌面快捷方式 - Visual Studio Deployment Project Optional Desktop Shortcut
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM