简体   繁体   English

Visual Studio 2017安装程序桌面快捷方式图标

[英]Visual Studio 2017 Installer Desktop Shortcut Icon

I am trying to use the Visual Studio Installer for 2017 to package my program. 我正在尝试使用Visual Studio Installer for 2017打包程序。 I have added the deployment project to my solution, created a shortcut from the Primary Output in the Application folder, moved that to the User's Desktop folder, and set the icon in properties to the icon in the application folder. 我已将部署项目添加到解决方案中,从Application文件夹中的Primary Output创建了一个快捷方式,将其移至User's Desktop文件夹,并将属性中的图标设置为application文件夹中的图标。 In the actual project, under the Properties menu (Project - Properties) I have also set the very same icon as a Resource in the icon box there. 在实际项目中,在“属性”菜单(“项目”-“属性”)下,我还在其中的图标框中设置了与“资源”相同的图标。 I then build the solution. 然后,我构建解决方案。

The problem is, if I run the installer it creates a shortcut on the desktop of the user, but always without the icon I've set. 问题是,如果我运行安装程序,它将在用户桌面上创建快捷方式,但始终没有我设置的图标。 Please can someone help!? 请有人帮忙!?

I've tried re-creating the shortcut and re-adding the icon, but all my searches online suggest that the method I'm following should work. 我尝试重新创建快捷方式并重新添加图标,但是我在网上进行的所有搜索都表明我遵循的方法应该可以使用。

I think the issue was with the icon itself as once I got a new one it worked. 我认为问题出在图标本身,因为一旦我得到一个新的图标就可以使用。 For anyone else who gets this issue, make sure your icon isn't too large, and also just try getting a new one. 对于遇到此问题的其他任何人,请确保您的图标不会太大,也可以尝试获取一个新图标。

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

相关问题 删除桌面快捷方式 Visual Studio 安装程序项目 - Remove desktop shortcut Visual Studio Installer Projects 如何为使用 visual studio Installer 创建的安装项目的桌面快捷方式设置图标? - How to set icon for the desktop shortcut of setup project created using visual studio Installer? 如何使用Visual Studio安装程序在所有应用程序菜单中创建桌面应用程序的快捷方式 - How to create shortcut to desktop app in the all apps menu using Visual Studio Installer Visual Studio 安装程序项目 - 未设置快捷方式图标 - Visual Studio Installer Project - shortcut icons not set Visual Studio 2017中的工具箱控件安装程序(TCI) - Toolbox Control Installer (TCI) in Visual Studio 2017 Visual Studio 2017 中的 Windows 安装程序项目 - Windows Installer Project in Visual Studio 2017 Visual Studio部署项目可选的桌面快捷方式 - Visual Studio Deployment Project Optional Desktop Shortcut 如何有选择地在 Microsoft Visual Studio 安装程序中创建快捷方式 - How to optionally create shortcut in Microsoft Visual Studio Installer Visual Studio 2017 C#安装程序项目未安装我的应用程序 - Visual Studio 2017 C# installer project is not installing my app Visual Studio 2017安装程序项目未显示任何依赖项 - Visual Studio 2017 Installer Project not showing any dependencies
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM