Install a Windows Service Application 98-362 Windows Development Fundamentals LESSON 3.2.

Slides:



Advertisements
Similar presentations
Stored procedures and views You can see definitions for stored procedures and views in the demo databases but you can’t change them. For views, expand.
Advertisements

Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Chapter 6 Multiform Projects Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview Introduce Visual Studio 2013 Create a first ASP.NET application.
PowerPoint 2002 Linking Video in Presentation and Delivering Presentation on the Road.
1 After completing this lesson, you will be able to: Start Outlook. Navigate within Outlook. Use the Outlook Bar. Use the Folder List. Use the Office Assistant.
A Guide to Oracle9i1 Creating an Integrated Database Application Chapter 8.
Using Visual C++ and Pelles C
Performing Software Installation with Group Policy
1 Chapter Overview Creating User and Computer Objects Maintaining User Accounts Creating User Profiles.
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Guide to MCSE , Enhanced 1 Activity 10-1: Restarting Windows Server 2003 Objective: to restart Windows Server 2003 Start  Shut Down  Restart Configure.
Working with Drivers and Printers Lesson 6. Skills Matrix Technology SkillObjective DomainObjective # Understanding Drivers and Devices Install and configure.
Microsoft Visual Basic 2005 CHAPTER 12 Cell Phone Applications and Web Services.
Microsoft Visual Basic 2012 CHAPTER TWELVE (ENRICHMENT CHAPTER) Windows Store Apps.
1 ENG236: ENG236: C++ Programming Environment (2) Rocky K. C. Chang THE HONG KONG POLYTECHNIC UNIVERSITY.
ITE 370. Deployment Deployment is the process used to distribute a finished application (or component) to be installed on other computers.
MCTS Guide to Microsoft Windows Server 2008 Applications Infrastructure Configuration (Exam # ) Chapter Two Deploying Windows Servers.
Moving & Copying Web Applications 1. 2 Why Do We Need to Copy or Move a Web Application?  So you can run someone else’s sample code.  So you can backup.
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
1/28/2010 Network Plus Windows Networking Network Identification Identifies name and type of network. Installed adapters –Performed during Windows installation.
IT 211 Project Integration and Deployment Lab #11.
 The BPEL Module project is a group of source files which includes BPEL files, WSDL files, and XML schema files. Within a BPEL Module project, you can.
Intro to C++. Getting Started with Microsoft Visual Studios Open Microsoft Visual Studios 2010 Click on file Click on New Project Choose Visual C++ on.
Microsoft Windows Vista Chapter 1 Fundamentals of Using Microsoft Windows Vista.
A First Look At Microsoft Visual Basic Lesson 1. What is Microsoft Visual Basic? Microsoft Visual Basic is a software development tool, which means it.
CMPF124 Personal Productivity with Information Technology Chapter 1 – Part 4 Introduction To Windows Operating Systems Basic Windows Admin Introduction.
MCTS Guide to Microsoft Windows Server 2008 Applications Infrastructure Configuration (Exam # ) Chapter Four Windows Server 2008 Remote Desktop Services,
Project Deployment IT [211 CAP] How to convert your project to a full application.
McGraw-Hill © 2009 The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Multiform Projects.
MCTS Guide to Microsoft Windows Server 2008 Applications Infrastructure Configuration (Exam # ) Chapter Five Windows Server 2008 Remote Desktop Services,
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
1 Part-1 Chap 5 Configuring Accounts Definitions.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 8 Debugging, Creating Executable Files, and Distributing a Windows Application.
® Microsoft Office 2010 Exploring the Basics of Microsoft Windows 7.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
Module 8: Managing Software Distribution. Collections Packages Programs Advertisements Collections Packages Programs Advertisements How Software.
Managing Applications, Services, Folders, and Libraries Lesson 4.
Optimizing Windows Vista Performance Lesson 10. Skills Matrix Technology SkillObjective DomainObjective # Introducing ReadyBoostTroubleshoot performance.
® Microsoft Office 2010 Exploring the Basics of Microsoft Windows 7.
Create Windows-based Applications by Using Visual Studio Windows Development Fundamentals LESSON 1.3.
Understand Click Once Deployment Windows Development Fundamentals LESSON 5.1B.
Adding Shortcuts Topic 8 7/28/2010. What is a Shortcut? A shortcut offers a way of doing a task more quickly such as starting a program or accessing a.
Understand Windows Services Software Development Fundamentals LESSON 5.3.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Open project in Microsoft Visual Studio → build program in “Release” mode.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
1 Chapter Overview Using Group Objects Understanding Default Groups Creating Group Objects Managing Administrative Access.
Create Windows Setup and Deployment Projects Windows Development Fundamentals LESSON 5.2.
Understand Windows Forms Inheritance Windows Development Fundamentals LESSON 2.2.
Data-information stored in files on the disks and CDs in your computer system Why should we save a file when we create it on the computer?
Creating New Forms Projects can appear more professional when using different windows for different types of information. Select Add Windows Form from.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Active-HDL Server Farm Course 11. All materials updated on: September 30, 2004 Outline 1.Introduction 2.Advantages 3.Requirements 4.Installation 5.Architecture.
Chapter 10 Using Macros, Controls and Visual Basic for Applications (VBA) with Excel Microsoft Excel 2013.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Using Macros Lesson.
An Introduction to Programming with C++1 An Introduction to Control Structures Tutorial 1.
FIRST COURSE Exploring the Basics of Microsoft Windows Vista.
Dive Into® Visual Basic 2010 Express
Chapter 2: The Visual Studio .NET Development Environment
Using a template to create a document
3.01 Apply Controls Associated With Visual Studio Form
Deploying and Configuring SSIS Packages
3.01 Apply Controls Associated With Visual Studio Form
Contact QuickBooks File Doctor
Lab 1 Introduction to C++.
Creating a Windows Application Project in Visual Studio
Presentation transcript:

Install a Windows Service Application Windows Development Fundamentals LESSON 3.2

Windows Development Fundamentals LESSON 3.2 Lesson Overview How are Windows ® Service applications installed? In this lesson, you will learn about:  Installing a Windows Service application manually  Using the Component Designer to create installers

Windows Development Fundamentals LESSON 3.2 Anticipatory Set  List the stages in the lifetime of a Windows Service application; give a brief description of each stage, including the related ServiceBase methods.

Windows Development Fundamentals LESSON 3.2 The Need to Install a Service Application  Unlike Windows Forms and Windows Presentation Foundation (WPF) projects, Windows Service applications cannot be run directly from Microsoft Visual Studio ® by simply pressing F5.  Instead, services must be registered with the Services Control Manager—the mechanism that Windows uses to manage Windows Service applications.  Generally, developers can install their service application two different ways:  — Installing (and then uninstalling) the service manually  — Adding installers to your project  Note: A Windows Service application does not start when it is installed. It still must be started to trigger the OnStart method and being operating.

Windows Development Fundamentals LESSON 3.2 Installing a Service Manually  Installutil.exe is a command-line utility used to install—or uninstall—a Windows Services application manually. The user must have Administrator permissions to use Installutil.exe.  After building your project, use the command line and navigate to the folder that contains your executable file. Then run: installutil MyService.exe  To uninstall the Windows Service, repeat the process, adding the /u parameter: installutil /u MyService.exe Note: in these examples, MyService.exe is used to represent the name of your project’s output. You would replace MyService.exe with the file that was created when you built your project.

Windows Development Fundamentals LESSON 3.2 Installers (or Installer Classes)  Installer classes perform programmed actions when the project is installed.  For example, they can tell the setup to install a Windows Service application. To add installers to your project, perform the following steps: 1. Access the Component Designer for your services project. 2. Right-click the background of the Component Designer and select Add Installer. 3. A class called ProjectInstaller is added to the project. 4. Create a setup project (with a custom action). Next, you will need to create a setup project for your application.

Windows Development Fundamentals LESSON 3.2 Setup Projects A setup project creates the setup files necessary to install your application on a target computer. To create one, perform the following steps: 1. In Solution Explorer, right-click the solution and select Add, then New Project. 2. Select Setup And Deployment Projects and Setup Project; give the project a name, such as ServiceSetup. 3. In Solution Explorer, right-click the new project’s name, select Add, and choose Project Output. 4. In the Add Project Output Group dialog box, select Primary Output and click OK.

Windows Development Fundamentals LESSON 3.2 Setup Projects (Continued) – adding a custom action 1. In Solution Explorer, right-click the setup project, select View, and select Custom Actions. 2. When the Custom Actions editor appears, right-click the Custom Actions node and select Add Custom Action. 3. When the Select Item In Project dialog box appears, double-click Application Folder and select Primary Output From [project name] (Active). To install your service, in Solution Explorer, right-click the setup project and select Install; and then proceed through the Setup Wizard that appears.

Windows Development Fundamentals LESSON 3.2 Starting the Service Application  There are several ways to start a service that has been installed. For most users, the Services Control Manager is the typical method.  From Visual Studio, services can be started from the Server Explorer (View menu, Server Explorer) by expanding the Services node and right-clicking the service name.

Windows Development Fundamentals LESSON 3.2 Lesson Review  Using the notes you took during this presentation, create a Windows Service application and add installers and a setup project.