Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. How to install .Net Framework with my C# application ?

How to install .Net Framework with my C# application ?

Scheduled Pinned Locked Moved C#
csharpdotnetsaleshelptutorial
6 Posts 5 Posters 7 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    CoderForEver
    wrote on last edited by
    #1

    Hey my friends I develop C# application all the time .... But when I want to install them on my customer PC's .. I always have to insert .Net Cd and Install it ... But is there any way so that my Setup will contain .Net Framework together and install them together with my application? ... Pleas help me ... am tired of it. Thank you

    realJSOPR 1 Reply Last reply
    0
    • C CoderForEver

      Hey my friends I develop C# application all the time .... But when I want to install them on my customer PC's .. I always have to insert .Net Cd and Install it ... But is there any way so that my Setup will contain .Net Framework together and install them together with my application? ... Pleas help me ... am tired of it. Thank you

      realJSOPR Offline
      realJSOPR Offline
      realJSOP
      wrote on last edited by
      #2

      You have three options: 0) You can configure a setup project in your solution that will download the required version of the framework from the site your users downloaded your program from, 1) You can configure a setup project in your solution that will download the required version of the framework from the Microsoft site. 2) You can download the redistributables for the framework and install that setup from your setup.

      .45 ACP - because shooting twice is just silly
      -----
      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
      -----
      "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

      W 1 Reply Last reply
      0
      • realJSOPR realJSOP

        You have three options: 0) You can configure a setup project in your solution that will download the required version of the framework from the site your users downloaded your program from, 1) You can configure a setup project in your solution that will download the required version of the framework from the Microsoft site. 2) You can download the redistributables for the framework and install that setup from your setup.

        .45 ACP - because shooting twice is just silly
        -----
        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
        -----
        "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

        W Offline
        W Offline
        Wamuti
        wrote on last edited by
        #3

        John Simmons / outlaw programmer wrote:

        1. You can download the redistributables for the framework and install that setup from your setup.

        How do you install that setup from your setup. Again, for example, framework 3.5 is an online resource. How do you deal with that?

        Wamuti: Any man can be an island, but islands to need water around them! Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.

        S realJSOPR M 3 Replies Last reply
        0
        • W Wamuti

          John Simmons / outlaw programmer wrote:

          1. You can download the redistributables for the framework and install that setup from your setup.

          How do you install that setup from your setup. Again, for example, framework 3.5 is an online resource. How do you deal with that?

          Wamuti: Any man can be an island, but islands to need water around them! Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.

          S Offline
          S Offline
          SeMartens
          wrote on last edited by
          #4

          Hi, I recommend using the WiX toolset. This is a easy to use abstraction of the windows installer. With this toolset (it is free) you can use a bootstrapper to put the redistributables of the framework to your setup. Have a look here: http://wix.sourceforge.net/manual-wix3/install_dotnet.htm[^] Used this for all my installation projects and it works. Regards Sebastian

          It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

          1 Reply Last reply
          0
          • W Wamuti

            John Simmons / outlaw programmer wrote:

            1. You can download the redistributables for the framework and install that setup from your setup.

            How do you install that setup from your setup. Again, for example, framework 3.5 is an online resource. How do you deal with that?

            Wamuti: Any man can be an island, but islands to need water around them! Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.

            realJSOPR Offline
            realJSOPR Offline
            realJSOP
            wrote on last edited by
            #5

            Here's a link to the full DotNet 3.5 package: http://download.microsoft.com/download/6/0/f/60fc5854-3cb8-4892-b6db-bd4f42510f28/dotnetfx35.exe[^] Just execute it from within your setup. If you familiarize yourself with using google, you can find full installers for all of the other DotNet versions as well.

            .45 ACP - because shooting twice is just silly
            -----
            "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
            -----
            "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

            1 Reply Last reply
            0
            • W Wamuti

              John Simmons / outlaw programmer wrote:

              1. You can download the redistributables for the framework and install that setup from your setup.

              How do you install that setup from your setup. Again, for example, framework 3.5 is an online resource. How do you deal with that?

              Wamuti: Any man can be an island, but islands to need water around them! Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.

              M Offline
              M Offline
              Mouldiwarp
              wrote on last edited by
              #6

              I just spent a long time getting to the bottom of this one..... Nothing ever seems as simple as it should be. Here is how I managed to do it, When you add in the installer project into your solution, in the Solution explorer right click and view properites of the installer project. Take a look down the right hand side of the properties screen pop and you will see a 'Prerequisites' button. On the pre-req screen you can add in or remove dependencies (I am building to .net 2.0 for some older clients), once you have selected the pre-req's you want check the radio button 'Download pre-req's from the same location as my application' then hit OK, then OK again to close the property page. At this point I save all files for the solution. If you are installing an older version of .net with your app you also need to take a look at the dependencies under the installation project. Expand the 'Detected Dependencies' container and double click 'Microsoft .net framework'. In the properties window beneath the solution explorer look at the version informaiton and select the appropriate version for your install (If you dont do this, the setup.exe bootstrap will install the older version of .net as a pre-req but the installer for your application will then error because it is expecting a newer version than has just been installed - the default on my system and I guess other VS 2008 systems is 3.5.21022). Once you build the solution be sure to install from setup.exe and not the MSI. I hope this helps, I found it very frustrating. (p.s. sorry if there are any spelling cock ups... I have yet to install a HTML spellcheck utility on my work machine).

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups