Q:

How to rename setup file in ClickOnce?

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

A:

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.
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.

