还是老外的文章给力

I'm not aware of any way to change the icon BEFORE building the project so that once the ClickOnce is deployed it already has the icon, however you can edit the setup.exe icon AFTER deployment quite easily. If anyone else knows of a way to do it before then they can trump my answer.

In Visual Studio go to File > Open > File and browse to the setup.exe for your ClickOnce deployment. Open this file.

You should see a folder tree. Right click on the Icon node and choose Add Resource.

It should already have the Icon resource type chosen on the left so click Import on the right to add your icon.

Your icon will open up in Visual Studio, just close this tab. You should be back to your folder tree. Look under the Icon node and make sure your icon has the lowest ID number.

Save the file.

Your setup.exe will now have the new icon.

Disclaimer: For me Windows was weird and didn't refresh the icon right away. If I went to its properties or copied the file elsewhere I could see the icon immediately. I imagine it's a caching thing.

Edit: Screenshot:

from:http://stackoverflow.com/questions/35019832/how-to-change-setup-exe-icon-when-publishing-through-clickonce

最新文章

  1. Centos 7.0 安装Mono 3.4 和 Jexus 5.6
  2. swift开发学习网站
  3. 突然顿悟的Javascript中的this
  4. 工程技巧Linux上建立工程项目
  5. CentOS6.4安装VNC
  6. socket编程在windows和linux下的区别
  7. 关于System.out.println()与System.out.print("\n")的区别
  8. jquery next nextAll nextUntil siblings的区别
  9. 【Java入门提高篇】Day10 Java代理——静态代理
  10. kindeditor用法简单介绍
  11. Q - N! HDU - 1042
  12. Maven工程的POM继承
  13. python 基础 ----- 变量
  14. 生产环境使用 pt-table-checksum 检查MySQL数据一致性【转】
  15. 谁考了第k名
  16. 基于TCP的安卓服务器开发
  17. 牛客多校第三场 A- PACM Team 背包/记忆路径
  18. newborn, infant, toddler以及baby的区别
  19. SolrServer SolrRequest
  20. 使用maven编译Java项目

热门文章

  1. iPhone各控件的默认高度
  2. 修复Dll文件
  3. eval函数的工作原理
  4. git 上传
  5. 传智springMVC笔记
  6. jQuery实现一个全选复选框联动效果
  7. javascript中 IE事件处理程序中try catch用法
  8. 浅谈github页面域名绑定
  9. archlinux设置无线网络连接
  10. 安装Python+Pywin32(version 3.3)