Deploying with .Net Framework

Last post 07-05-2009 6:04 PM by plnelson. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 07-05-2009 12:06 PM

    • plnelson
    • Top 75 Contributor
    • Joined on 01-13-2009
    • Wannabe Slacker
    • Points 233

    Deploying with .Net Framework

     

    I'm creating a Deployment Project in Visual Studio 2008 for a C# program.     I have no way of knowing whether the people who download my program will have a recent (or any!) version of the .NET framework installed on their PC.      How do I use the Setup Wizard or Setup Project to include a check for .NET Framework, and if its needed, to install the latest version?      I want to make this easy for the user, and most of them will not have any geek skills like going to the Microsoft website and downloading the framework on their own.

     

    Thanks in advance.

     

     

     

    Filed under:
  •  Advertisement

    Featured Advertisement

     
  • 07-05-2009 12:44 PM In reply to

    • Sonu
    • Top 10 Contributor
    • Joined on 05-22-2006
    • Montreal / Canada
    • Slacker
    • Points 12,183
    • MVP

    Re: Deploying with .Net Framework

    From the MSDN:

    To include the .NET Framework 3.0 with a setup project

    1. In Visual Studio 2005, create a new setup project following these steps:

      1. In the File menu, click New, and then click Project.

      2. Under Other Project Types, select Setup and Deployment.

      3. Name your project and click OK.

    2. Add your project output, merge modules, file, and assemblies.

    3. In Solution Explorer, right-click the project name and then click Properties.

      The Property Pages dialog box is displayed.

    4. Click Prerequisites.

    5. Select the Create setup program to install prerequisite components check box.

    6. In the list, locate .NET Framework 3.0 and then select the version appropriate for the target platforms.

    7. Specify the source location for the prerequisites.

      For the location of the .NET Framework 3.0, you can specify either the Windows Vista Download site or a site of your own. The URL can also specify a CD on which your own application is being distributed.

    8. Click OK.

    [MVP since 2005] [MCAD]
    Webmaster of DotNetSlackers
    Question or Suggestion?
    Feel free to ask my any .NET question
    Our Posting FAQ
  • 07-05-2009 6:04 PM In reply to

    • plnelson
    • Top 75 Contributor
    • Joined on 01-13-2009
    • Wannabe Slacker
    • Points 233

    Re: Deploying with .Net Framework

    Sonu:

    From the MSDN:

    To include the .NET Framework 3.0 with a setup project  . . .

     . . .


    1. Select the Create setup program to install prerequisite components check box.

    2. In the list, locate .NET Framework 3.0 and then select the version appropriate for the target platforms.

    3. Specify the source location for the prerequisites.

      For the location of the .NET Framework 3.0, you can specify either the Windows Vista Download site or a site of your own. The URL can also specify a CD on which your own application is being distributed.

    4. Click OK.

    Do I need to know, or be aware of, what the target environment is?    My users will all be running XP or Vista, but I can't predict what version or service pack they might have.    My development environment is Visual Studio 2008, so can I just use .Net Framework 3.5?

    The instructions for installing .Net Framework 3.5 say that the user must have the latest service packs, and must remove earler pre-release version of 3.5.   Again, I have no way of knowing what the user might already have on their PC, and these users are probably not very technical so it's not reasonable to expect them to know, or to add or remove anything on their own.

    Thanks for further clarification.

     

     

     

Page 1 of 1 (3 items)