如何在ClickOnce中重命名安装文件? [英] How to rename setup file in ClickOnce?

查看:93
本文介绍了如何在ClickOnce中重命名安装文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在ClickOnce中将安装文件从setup.exe重命名为myapp.exe?

How can I rename a setup file in ClickOnce, from setup.exe to myapp.exe?

推荐答案

只需重命名安装.exe到myAppSetup.exe,然后编辑 publish.htm 文件,将href从setup.exe更改为myAppsetup.exe。用户可以通过右键单击安装按钮并选择另存为来下载此文件。我建议使用myAppSetup.exe,以免将其与可执行文件混淆。

Just rename setup.exe to myAppSetup.exe and edit the publish.htm file to change the href from setup.exe to myAppsetup.exe. Users can download this by right clicking the install button and choosing Save As. I recommend myAppSetup.exe so as not to confuse it with the executable.

哦,是的,由于 Visual,自动执行此过程有些棘手Studio 只有一个post build event选项可以运行外部工具,而没有post publish。因此,记得每次发布新版本时都要重新编辑。

Oh yes, it is a bit tricky to automate this process because Visual Studio only has a post build event option to run an external tool, and no post publish. So remember to re-edit every time you publish a new version.

这篇关于如何在ClickOnce中重命名安装文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆