header image ≡ Menu

Advantages of ClickOnce Deployment

ClickOnce deployment is a Microsoft .NET installation technology that automatically installs and configures a client-side application when a user clicks on a link, such as a link in a Web site, on a CD, or on a universal naming convention (UNC) path. Usually, the application will copy itself to the Temporary Internet Files folder and run within a restricted environment. ClickOnce was introduced with the .NET Framework 2.0 and Visual Studio 2005.

Advantages of ClickOnce Deployment:

1. Best of a rich Windows-based application user experience and the deployment and maintenance benefits of Web applications.
2. Apps automatically download the latest version of themselves.
3. ClickOnce takes the advantage of the Background Intelligent Transfer Service (BITS).
4. Trustworthy deployment model for users to be able to download and execute applications from centrally managed servers without requiring administrator privileges on the client machine.
5. Updates are transacted in a single transcation. (See this to understand “Single Transaction”)
6. The application not only can work offline but it has a degree of control over it; APIs exist, so that the application can find out if it’s online or offline; it can also control its own update process;
7. ClickOnce is integrated with Visual Studio .NET, including the ability to generate the appropriate extra files and tools that help to figure out which security privileges your application need in order to run.
8. Application files can be downloaded on demand or in batches.
9. ClickOnce comes with a Win32 “bootstraper” executable that can download necessary components, even the .NET Framework itself.

Comments on this entry are closed.

  • Anonymous

    can you please explain how downloading an unknown .bat file from the internet and allowing it to run is a good idea? We have locked down machines and restrict all but checked .exe files to run. We repackage everything into MSI’s and actually “test” updates before sending them out to users. Not to be too negative, but it seems like ClickOnce installs don’t fit the corporate mold.thoughts/suggestions?

  • Anonymous

    can you please explain how downloading an unknown .bat file from the internet and allowing it to run is a good idea? We have locked down machines and restrict all but checked .exe files to run. We repackage everything into MSI’s and actually “test” updates before sending them out to users. Not to be too negative, but it seems like ClickOnce installs don’t fit the corporate mold.

    thoughts/suggestions?

  • Vijay

    Thanks for your comments. I would say, the bootstapper will never be an unsecured one if deployed by a administrator in a corporate environment. Well, in your scenario we can create a bootstrapper exe which would indeed call this MSI for installation. The bootstrapper which is created can have a manifest in it, to make it run with highest privileges in the locked down environment. This exe would actually cache the installer to the user’s temp folder before it could trigger the install. This would signify “Download, Execute and Install”.One gentle request: Please key in your name which placing a comment :-)

  • Vijay

    Thanks for your comments. I would say, the bootstapper will never be an unsecured one if deployed by a administrator in a corporate environment.

    Well, in your scenario we can create a bootstrapper exe which would indeed call this MSI for installation. The bootstrapper which is created can have a manifest in it, to make it run with highest privileges in the locked down environment. This exe would actually cache the installer to the user’s temp folder before it could trigger the install.

    This would signify “Download, Execute and Install”.

    One gentle request: Please key in your name which placing a comment :-)