1

I am publishing a .NET 3.5 SP1 WPF application through ClickOnce. By default, when the user clicks on the published link the application gets installed and a menu and shortcut are added to the client's Start/All Programs menu.

How can I prevent the shortcut/menu from being created? (Users need to run the application solely by clicking on the hyperlink to the ".application" file on a web page.)

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Gus Cavalcanti
  • 10,527
  • 23
  • 71
  • 104

2 Answers2

3

For this behaviour, set it as online only. Project properties -> Publish -> "The application is available online only" (radio button).

It will still do the same local caching of files etc; it is mainly the start-menu that changes (I don't have a full list of the differences).

Marc Gravell
  • 1,026,079
  • 266
  • 2,566
  • 2,900
1

This can also be changed in the .application file by setting <deployment install="false"

Adam Butler
  • 3,023
  • 5
  • 35
  • 40