setup.exe name to Sample.exe


  • Hi team,

    Could you please guide on how to change the name of the exe from setup.exe to Sample.exe of clickonce application when published for windows application.

    Thank you in advance

    Friday, February 9, 2018 11:01 AM

All replies

  • Hi MadhuSiddu,

    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.

    You can rename setup.exe to Sample.exe and edit the publish.htm file to change the href from setup.exe to Sample.exe. Users can download this by right clicking the install button and choosing Save As.

    Note that remember to re-edit every time you publish a new version.

    Refer: How to rename setup file in ClickOnce?



    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Monday, February 12, 2018 2:31 AM