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 can I know if I have installed .net framework 2.0 or not by C#?

How can I know if I have installed .net framework 2.0 or not by C#?

Scheduled Pinned Locked Moved C#
csharpquestiondotnet
5 Posts 5 Posters 1 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.
  • R Offline
    R Offline
    Real Coder
    wrote on last edited by
    #1

    I need a source which can check whether I have installed .Net framework 2.0 or not. Thanks.

    Nothing!! But gonzo!!

    J C S 3 Replies Last reply
    0
    • R Real Coder

      I need a source which can check whether I have installed .Net framework 2.0 or not. Thanks.

      Nothing!! But gonzo!!

      J Offline
      J Offline
      Justin Perez
      wrote on last edited by
      #2

      You need to create a precondition in your setup project that checks to see if your version of the .net framework is installed. Your software won't install unless your precondition has been met. You don't need to write any code for this, it is the right way to do what you are talking about. It is a very, very easy and common task.

      "If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")

      1 Reply Last reply
      0
      • R Real Coder

        I need a source which can check whether I have installed .Net framework 2.0 or not. Thanks.

        Nothing!! But gonzo!!

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        You can write C++ code to do this, but not C#, for obvious reasons.

        Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        P 1 Reply Last reply
        0
        • C Christian Graus

          You can write C++ code to do this, but not C#, for obvious reasons.

          Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          You may have to explain this one to him. If he posted a question like this, it's apparent that he doesn't have the knowledge to understand the blindingly obvious.

          Deja View - the feeling that you've seen this post before.

          1 Reply Last reply
          0
          • R Real Coder

            I need a source which can check whether I have installed .Net framework 2.0 or not. Thanks.

            Nothing!! But gonzo!!

            S Offline
            S Offline
            Scott Dorman
            wrote on last edited by
            #5

            Have you tried looking on Google or CP? There is at least one article[^] here that explains how to do this, and also gives you a reference to some C++ code that you will need to use if you are trying to do this from an installer.

            Scott.


            —In just two days, tomorrow will be yesterday. [Forum Guidelines] [Articles] [Blog]

            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