【转】vs2012 打包安装更改 setup.exe的图标
2016-08-09 11:49
543 查看
还是老外的文章给力
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
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
相关文章推荐
- 【软件打包】SetupFactory打包之后,如何更改Setup.exe图标
- InnoSetup打包exe安装应用程序,并添加卸载图标
- vs 2012自带打包工具进行部署安装
- vs打包生成的文件有:setup.msi,setup.exe 二者区别
- 为 VS 2012 打包 MSDN 在线文档为磁盘安装源
- java<jar<exe<setup.java项目打包为安装文件。不依赖jre。
- vs打包生成的文件有:setup.msi,setup.exe 二者区别
- VS2012程序安装打包部署详解
- C#如何打包EXE程序生成setup安装文件
- 【Python】爬图片,Py2exe打包成EXE,并用inno setup生成安装文件
- InnoSetup打包exe安装应用程序,并添加卸载图标 转
- vs2012打包部署时“cannot extract icon with index 0 from file xxx.exe”的解决方案
- VS 2005 打包C#(exe)程序 包括 安装 卸载 功能
- VS2013如何生成exe文件以及如何更改exe程序图标
- Windows系统下将Qt生成的应用程序打包成可以安装的文件setup***.exe
- vs 2012自带打包工具进行部署安装
- vs 2012自带打包工具进行部署安装
- vs2012自带打包工具进行部署安装
- 如何利用Python2.7、py2exe、PyInstaller-2.1将*.py打包成*.exe,再利用Inno Setup Compiler封装成windows安装文件
- Inno Setup Compiler 将exe打包setup安装文件