I have created a C# Windows Forms app with .Net 6 and Visual Studio 2022. When publishing it, a setup.exe is created. When running setup.exe it installs the app in appdata/local/app/2.0/.../...
Is there a way to force a shortcut in the desktop after installing it? I have to distribute the app to my co-workers who are not very tech savvy and I don't want them to go through the hassle of finding the installation folder and creating a shortcut themselves.
I use ClickOne for publishing.
If you want create shortcut icon in desktop by c#
this answer https://stackoverflow.com/a/4909475/13634838
If some one looks for setting options using Visual studio 2022,
After selecting "Clickonce", select "next" on publish window.
Keep selecting "next" till you reach to "settings".
Now select "options" link which opens "Publish Options" window.
Select "Manifest" on "Publish Options" window.
Then you will observe a check box saying "Create desktop shortcut". Select it.