
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.
Click Prerequisites.
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.
Note: |
|---|
Administrator permissions are required to install the
.NET Framework Client Profile.
|