Setup Project for ClickOnce C# app targetting .net 4.8

Lorne Johnson 0 Reputation points
2025-05-09T19:09:40.6633333+00:00

Added the "Setup Project" to my ClickOnce .net 4.8 c# app. It does not have publish as an output that I can select. Is there a different installer project I can use to make an installer that reads the ClickOnce published files?

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,451 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 59,026 Reputation points
    2025-05-09T20:24:54.74+00:00

    ClickOnce is a setup project. So it doesn't really make sense to have a setup program for a ClickOnce app. A ClickOnce app, when run the first time on a machine, will install (or try) the required components. As such all you need to do is host the EXE somewhere and that is the setup that gets run.

    Is there a reason you need a wrapper around the ClickOnce-published app? If you need to add pre-reqs then that is part of the publish options. Right click your EXE project and select Publish. Under the Settings section is Prerequisites where you can specify dependencies, such as NET 4.8, that must be installed in addition to your app.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.