Presentation is loading. Please wait.

Presentation is loading. Please wait.

Create Windows Setup and Deployment Projects 98-362 Windows Development Fundamentals LESSON 5.2.

Similar presentations


Presentation on theme: "Create Windows Setup and Deployment Projects 98-362 Windows Development Fundamentals LESSON 5.2."— Presentation transcript:

1 Create Windows Setup and Deployment Projects 98-362 Windows Development Fundamentals LESSON 5.2

2 98-362 Windows Development Fundamentals LESSON 5.2 Lesson Overview How do you deploy an application using Windows ® Installer? In this lesson, you will learn about:  Creating setup files  Customizing an installation

3 98-362 Windows Development Fundamentals LESSON 5.2 Anticipatory Set 1. Create a simple “Hello, World” application. Name the solution HelloWorld. 2. Put a single Button on a form. When clicked, the application should display the text “Hello, World” in a Label or in a MessageBox. 3. Build and run the application to ensure that it works. 4. Create a text file explaining what your application does. Name the file ReadMe.txt.

4 98-362 Windows Development Fundamentals LESSON 5.2 Setup Projects  A setup project creates the setup files necessary to install your application on a target computer  It is added to the solution that contains the application(s) to be installed Create a setup project as follows: 1. In Solution Explorer, right-click on the solution and select Add, New Project. 2. Select Setup and Deployment Projects in the Other Project Types category and Setup Project; give the project a name, such as MySetup. 3. In Solution Explorer, right-click the new project’s name (“MySetup”), select Add, and choose Project Output. 4. In the Add Project Output Group dialog box, select the application that you want to deploy from the Project list. 5. Select Primary Output and choose (Active) from the Configuration box. 6. Click OK.

5 98-362 Windows Development Fundamentals LESSON 5.2 Testing Your Setup Project 1. With your setup project (“MySetup”) selected in Solution Explorer, build the project from the Build menu. 2. From the Build menu, click Install.  —This will run your installer (it will appear as a Setup Wizard) and install your application on your development computer.

6 98-362 Windows Development Fundamentals LESSON 5.2 Custom Actions  Though the standard actions of Windows Installer are sufficient, there may be times when setup requires additional (“custom”) actions to take place.  A custom action is an additional action performed on the target computer at the end of an installation.  Examples of custom actions:  —Display a “read me” or “additional information” dialog box after installation.  —Run an executable program after installation.  —Create a database necessary for the installed application to function.  Custom actions are implemented through the use of installer classes.

7 98-362 Windows Development Fundamentals LESSON 5.2 File System Editor  Allows the developer to add files to a deployment project, to specify the locations where files will be installed on a target computer, and to create shortcuts on a target computer.  The File System Editor is accessed by right-clicking the setup project in Solution Explorer, selecting View, and clicking File System. To create a new folder on the target computer, perform the following steps: 1. In the File System Editor, right-click File System on Target Machine. 2. Select Add Special Folder to get a list of system-related folders. 3. Select the folder that you want to add to, or select Custom Folder to create your own.  Files that you add to the folders in the File System Editor will be installed in their respective folders on the target computer during installation.

8 98-362 Windows Development Fundamentals LESSON 5.2 Lesson Review  Ticket out the door:  —Create two quiz questions about today’s lesson.  —Write the questions—including the answers—on a sheet of paper with your name at the top.  —Turn in the paper as you leave the room.  Note: If you are confused or need clarification on anything from the lesson, use the ticket out the door to ask for additional help on the topic.


Download ppt "Create Windows Setup and Deployment Projects 98-362 Windows Development Fundamentals LESSON 5.2."

Similar presentations


Ads by Google