200 likes | 282 Views
Application Deployment. ITE 370. Deployment. Deployment is the process used to distribute a finished application (or component) to be installed on other computers. Deployment Projects. What to Deploy Where to Deploy It How to Deploy It. Deployment Strategies. ClickOnce Technology
E N D
Application Deployment ITE 370
Deployment • Deployment is the process used to distribute a finished application (or component) to be installed on other computers
Deployment Projects • What to Deploy • Where to Deploy It • How to Deploy It
Deployment Strategies • ClickOnce Technology • Windows Installer Deployment • Traditional Setup • Selecting a Strategy • Type of Application • Type and Location of Users • Frequency of Updates • Installation Requirements
ClickOnce Technology • Publish Wizard to package the application • Publish it to a web site or network drive • User installs and launches application from the file location (single step) • You (programmer) creates application and deployment instructions and publish them with the files for the user to install
ClickOnce Technology • Typically provides a better installation • Easier for End User • Less Effort for the Developer • Simplifies the process of installing and updating an application • Self-Updating (with Network Connectivity) • Self-Contained Applications • Uses 2 XML Manifest Files • Application Manifest (about the application) • Deployment Manifest (about the installation)
ClickOnce Technology • Not as flexible as Windows Installer • Must have Network Connectivity for Updates • Security Issues may require advanced computer knowledge by the users • May require elevated permissions
Windows Installer • Add a Setup Project to your Solution • Creates a Setup file for users • Wizard for user to run for installation • You (programmer) creates the installer package which the user runs and steps through a wizard
Windows Installer • Updates require reinstall of entire application • Rely on Shared Components • Requires Administrator Permissions
Creating ClickOne Project • Application Manifest Created with Publish Wizard • Required Administrative Privileges • Copied to Deployment Location • Deployment Manifest Created with Publish Wizard • Copied to Deployment Location • Web Server • Network Share File • Media (CD, DVD) • Downloaded and Installed by the End User
Windows Installer Project • Create Windows Project • Visual Basic Project in Project Types Pane • Windows Application in Template Pane • Name the Project (example: MySample) • Event Handling: Shell (“MySample.exe”, AppWinStyle.NormalFocus) • Build Menu Build MySample
Windows Installer Project • Build Deployment Project • File Menu Add Project New Project • Project Types Setup and Deployment Projects • Templates Setup Project • Name MySample Installer • OK • Solution Explorer • MySample Installer • ProductName Property • MySample
Windows Installer Project • Add the Windows Application to the Installer • Solution Explorer MySample Installer • File System Editor Application Folder Node • Action Menu Add Project Output • Add Project Output Group • MySample from Project drop-down list • OK • Build Menu • Build MySample Installer
Windows Installer – Additional Capabilities • Creating a Shortcut • Creating File Associations • Adding Registry Entries • Custom Install Dialog Boxes