Visual Studio Setup项目用户桌面快捷方式图标无法正常工作…为什么?

huangapple go评论71阅读模式
英文:

Visual Studio Setup Project User Desktop Shortcut icon doesn't work... why?

问题

我使用了许多项目输出开发了一个VS安装项目。我向我的项目输出添加了3个桌面快捷方式,并且我将.exe图标附加到了快捷方式上。在运行安装程序后,我只能看到一个图标,而另外两个图标则是应用程序的默认图标,如我的桌面快捷方式所示。

唯一的区别在于图标的大小:第一个正确显示的图标是128x128,另外两个是512x512,但是如果我打开应用程序项目中的调试文件夹,图标看起来非常好。
VS安装项目是否对图标有限制??

英文:

I developed a VS Setup Project with many Projects Output. I added 3 desktop shortcuts to my project outputs and I attached the .exe icon to the shortcut. After run the setup, I can see only one icon and the other 2 icons are the application default icon as showed in my desktop shortcut.

The only one difference to the icons are the size: the first one correctly showed is 128x128, the other 2 are 512x512 but if I open the Debug folder in the App Project the icon look very well.
Does VS Setup project have a limitation for icons??

答案1

得分: 0

我使用Visual Studio Installer项目创建了一个演示。

我使用了两个图标,一个大小为128x128,另一个为669x512。两者都能正确显示。

在测试过程中,我使用的其中一个图标出现了错误,无法运行。(我的错误原因是图标文件中存在错误,因此无法正确显示。建议您检查您的图标文件)

编辑:问题是Windows不会立即刷新文件夹图标缩略图...用户必须将可执行文件复制粘贴到新文件夹中,图标才能正确显示!

英文:

I created a demo using Visual Studio Installer Project.

I used two icons, one 128x128 and one 669x512. Both can be displayed correctly.

One of the icons I used had an error during the test and couldn't run. (The reason for my error is that there is an error in the icon file, so it cannot be displayed correctly. It is recommended that you check your icon file)

Visual Studio Setup项目用户桌面快捷方式图标无法正常工作…为什么?

Edit:The problem was windows doesn't refresh immediately the folder icon miniatures... Op have to to copy and paste the exe file in a new folder and icon displays correctly!

huangapple
  • 本文由 发表于 2023年2月16日 15:41:01
  • 转载请务必保留本文链接:https://go.coder-hub.com/75469144.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定