Article ID: 324733 - Last Review: March 29, 2007 - Revision: 5.3 HOW TO: Distribute the .NET Framework with a Visual Studio .NET Deployment ProjectThis article was previously published under Q324733 On This PageSUMMARYThis step-by-step article describes how to distribute the
.NET Framework with your application. When you deploy a Microsoft .NET-connected application, the destination computer must have the .NET Framework installed. If the .NET Framework is not installed, the application cannot run. A Microsoft Visual Studio .NET setup and deployment project does not automatically install the .NET Framework. However, there are ways to make sure that the .NET Framework is installed before your application is installed. Distribution of the .NET FrameworkWhen you deploy Visual Studio .NET applications, the .NET Framework must be installed on the destination computer. When you create a Windows Installer setup package by using Visual Studio .NET deployment tools, the installer includes a default start condition (MsiNetAssemblySupport). This start condition verifies that the .NET Framework is installed on the destination computer. If the .NET Framework is not found on the destination computer, the installation is stopped and you receive the following error message:This setup requires the .NET Framework. Please
install the .NET Framework and run this setup again
Requirements to Install the .NET FrameworkThere are basic configuration requirements that must be met to install Dotnetfx.exe. You must have one of the following operating systems and Microsoft Internet Explorer 5.01 or later installed on your computer:
Install the .NET Framework Manually
308488
(http://support.microsoft.com/kb/308488/EN-US/
)
INFO: Download and Install the
.NET Framework
Use Setup.exe to Distribute the .NET Framework with Your Visual Studio .NET ApplicationYou may want to package your application so that the .NET Framework redistributable package is installed first, and then starts the Windows Installer package (.msi file) for your Visual Studio .NET application. The Setup.exe bootstrapping application is a sample that is available on the MSDN site to demonstrate how to do this. Change the Settings file (Settings.ini) to specify the locations of the redistributable package and your application installer. For more information about how to include the .NET Framework with your package, visit the following Microsoft Web site:http://msdn2.microsoft.com/en-us/netframework/aa731542.aspx
(http://msdn2.microsoft.com/en-us/netframework/aa731542.aspx)
Prepare Your Deployment Project for Use with the Setup.exe Bootstrapping Application SampleTo use the Setup.exe bootstrapping application sample with an installer that you created by using Visual Studio .NET deployment tools, you must prepare the deployment project for this scenario to work correctly. By default, a deployment project includes a Windows Installer bootstrapping application. However, the .NET Framework redistributable also includes a Windows Installer bootstrapping application. You must remove the installer bootstrapping application from your project. To do this, follow these steps:
Customize the Settings.ini File
REFERENCES For more information, visit the following Microsoft Web
site: http://msdn2.microsoft.com/en-us/library/ms994427.aspx
(http://msdn2.microsoft.com/en-us/library/ms994427.aspx)
APPLIES TO
| Article Translations
|
Back to the top
