Walkthrough: Deploying a .NET Framework Client Profile Application by using Windows Installer
This walkthrough shows how to deploy a simple .NET Framework Client Profile application by using Windows Installer.
In this walkthrough, you perform the following tasks:
Create and configure the Windows Presentation Foundation (WPF) project for deployment as a .NET Framework Client Profile application.
Create an installer for the application.
When you are finished, you will have a Windows Installer setup program that installs your .NET Framework Client Profile application and .NET Framework prerequisites.
The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.
You need the following components to complete this walkthrough:
- Visual Studio 2008 SP1.
Creating and Configuring the WPF project
The first step is to create the project for the WPF application.
To create the WPF project
Create a new WPF Application project in Visual Basic or Visual C# named DemoApplication. For more information, see How to: Create a New WPF Application Project.
Window1.xaml opens in the WPF Designer.
In the project's property pages, check the Client-only Framework subset check box. For more information, see How to: Configure a .NET Framework Client Profile Application for Deployment.
Creating the Setup Project
You create the Windows Installer setup program for a .NET Framework Client Profile application by using the same procedure as other .NET applications.
To create the setup project
Add a new Windows Installer Setup project named Setup1 to the solution. For more information, see How to: Create or Add a Setup Project.
In Solution Explorer, right-click the Setup1 project and select Properties.
The Setup1 Property Pages dialog box opens.
The Prerequisites dialog box opens.
In the Choose which prerequisites to install section, check .NET Framework Client Profile.
Uncheck .NET Framework 3.5 and .NET Framework 3.5 SP1 if they are checked.
In the Specify the install location for prerequisites section, leave the default Download prerequisites from the component vendor's web site option selected.
This option specifies to download the .NET Client Profile from Microsoft's Web site.
Click OK two times to close the dialog boxes.
In Solution Explorer, right-click the Setup1 project, point to Add, and then select Project Output.
The Add Project Output Group dialog box opens and lists the outputs that can be included in the installer.
Select Primary output and then click OK.
In Solutions Explorer, the Setup1 project node is updated.
Build the solution.
Build the Setup1 project. By default, the Setup1 project is not configured to build with the solution.
Open the DemoApplication\Setup1\Debug folder.
Double-click setup.exe to start installing your application.
During the installation, if the computer does not have the full .NET Framework 3.5 SP1 or the .NET Framework Client Profile, you will be prompted to download and install the .NET Framework Client Profile from Microsoft's Web site.
Administrator permissions are required to install the .NET Framework Client Profile.
- Deploy your .NET Framework Client Profile application by using ClickOnce. For more information, see Walkthrough: Deploying a .NET Framework Client Profile Application by using ClickOnce.
Added new topic.
SP1 feature change.