This Qikkwit describes ClickOnce deployment technology which enables self-updating applications installed from a variety of media and with minimal user interaction.
ClickOnce application can be deployed from:
- CD ROM
These applications can be either
- Windows Applications
- Navigation apps or
- XBAP applications
Various features of ClickOnce applications are
- No dependency on or sharing of any component with any other software on the machine
- Windows and Navigation apps require Full Trust to be installed via ClickOnce
- XBAP and online apps run by default in local intranet security zone if run from share or Internet Security Zone
- For WPF apps ClickOnce is preferred technology.
You can publish your application by going to project -> properties -> publish tab.
Publishing path can be
- File path
- a network share
- Local Microsoft Internet Information Services (IIS) folder
- Hypertext Transfer Protocol (HTTP)
- File Transfer Protocol (FTP) address
You can configure application to run either
- Online only mode: Application is never installed on client machine and we can make sure that client always gets latest application from server when client runs the app.
- Online- Offline mode: Application is copied to client machine and added to add/remove programs and start menu.
You can make ClickOnce deployed application to check updates for themselves. You can do it by Clicking Update in Publish Properties window and select checkbox specifying Application should check for updates.
Developers can configure application to check update
- Before start of application
- After start of application
- Everytime or With periodic interval
- Check updates in various locations
- Manual update by user : You have to write code in program using ApplicationDeployment class.
Application settings as well as any custom config files will be replaced. User settings won’t be as they are stored in different place. You can also sign the assembly using certificate.