Detecting Whether dot net runtime is installed

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sanket gupta

    Detecting Whether dot net runtime is installed



    Hi ,
    When installing my application , i want to check whether the dot net
    runtime is available on the users computer and if its not , then i would
    like to provide him with a download location.
    What is the easiest way to do it?
    Thanks/Regards
    Sanket Gupta

    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
  • Marc Scheuner [MVP ADSI]

    #2
    Re: Detecting Whether dot net runtime is installed

    >When installing my application , i want to check whether the dot net[color=blue]
    >runtime is available on the users computer and if its not , then i would
    >like to provide him with a download location.
    >What is the easiest way to do it?[/color]

    Check for the presence of mscoree.dll in your %system32% directory. If
    it's there, you most likely have the .NET framework installed - if
    it's missing, then you don't have the .NET framework.

    Marc
    =============== =============== =============== =============== ====
    Marc Scheuner May The Source Be With You!
    Bern, Switzerland m.scheuner(at)i nova.ch

    Comment

    • news.microsoft.com

      #3
      Re: Detecting Whether dot net runtime is installed

      Well, if its not there, you're app wont get far would it.



      "Marc Scheuner [MVP ADSI]" <m.scheuner@ino va.SPAMBEGONE.c h> wrote in message
      news:96espvoosb 8cebukc75acutsl igtconkca@4ax.c om...[color=blue][color=green]
      > >When installing my application , i want to check whether the dot net
      > >runtime is available on the users computer and if its not , then i would
      > >like to provide him with a download location.
      > >What is the easiest way to do it?[/color]
      >
      > Check for the presence of mscoree.dll in your %system32% directory. If
      > it's there, you most likely have the .NET framework installed - if
      > it's missing, then you don't have the .NET framework.
      >
      > Marc
      > =============== =============== =============== =============== ====
      > Marc Scheuner May The Source Be With You!
      > Bern, Switzerland m.scheuner(at)i nova.ch[/color]


      Comment

      • Marc Scheuner [MVP ADSI]

        #4
        Re: Detecting Whether dot net runtime is installed

        >Well, if its not there, you're app wont get far would it.

        Well, you'd have to have a NON-.NET app to test it, of course!

        Marc
        =============== =============== =============== =============== ====
        Marc Scheuner May The Source Be With You!
        Bern, Switzerland m.scheuner(at)i nova.ch

        Comment

        • sanket gupta

          #5
          Re: Detecting Whether dot net runtime is installed

          Its something strange.
          So to run a Dot net application , we actually need to runa native
          application.
          Could not microsoft just put in a small piece of code in the exe to
          check for and then help in downloading the code.
          Microsoft are usually smart people.I dont know how they got confused in
          this one.
          So what do u all say?
          should i use a small vc++ exe to check for the runtime and then take the
          user to the download location if required?

          would this be the best solution or can we do better?

          Thanks for all your help
          Regards
          Sanket Gupta

          *** Sent via Developersdex http://www.developersdex.com ***
          Don't just participate in USENET...get rewarded for it!

          Comment

          • Jack Mayhoff [MSFT]

            #6
            Re: Detecting Whether dot net runtime is installed

            Not always, I can name a huge list of "not so smart" people at microsoft. In
            theyre satallite offices which will go unnamed:D

            MIBU :D


            --

            Jack Mayhoff
            Microsoft Online Partner Support
            Get Secure! - www.microsoft.com/security
            This posting is provided "as is" with no warranties and confers no rights.

            "sanket gupta" <sanket@tsucorp .net> wrote in message
            news:ejQElAXnDH A.964@TK2MSFTNG P10.phx.gbl...[color=blue]
            > Its something strange.
            > So to run a Dot net application , we actually need to runa native
            > application.
            > Could not microsoft just put in a small piece of code in the exe to
            > check for and then help in downloading the code.
            > Microsoft are usually smart people.I dont know how they got confused in
            > this one.
            > So what do u all say?
            > should i use a small vc++ exe to check for the runtime and then take the
            > user to the download location if required?
            >
            > would this be the best solution or can we do better?
            >
            > Thanks for all your help
            > Regards
            > Sanket Gupta
            >
            > *** Sent via Developersdex http://www.developersdex.com ***
            > Don't just participate in USENET...get rewarded for it![/color]


            Comment

            • Marc Scheuner [MVP ADSI]

              #7
              Re: Detecting Whether dot net runtime is installed

              >So to run a Dot net application , we actually need to runa native[color=blue]
              >application.[/color]

              No, you don't need to do that - you might need to resort to a native
              app to determine whether or not the .NET framework is installed. To
              actually RUN the .NET app, you don't need this - the .NET app will run
              just fine (or crash, if the framework is missing).
              [color=blue]
              >Could not microsoft just put in a small piece of code in the exe to
              >check for and then help in downloading the code.[/color]

              Yes, they could - but that would be good ONLY in the very RARE case
              where you don't have the .NET framework installed - once it's
              installed, and everything's good to go, you would keep on checking for
              a condition that's already fulfilled - pretty pointless IMHO.

              It comes down to a matter of installation / deployment - in order to
              properly run .NET apps, you need to make sure the .NET framework is
              there and ready - for now, that's a bit of a pain, since most likely,
              it's not there yet. In a couple of years, the .NET framework will be
              delivered with all new WIndows versions, and you won't even have to
              think about that anymore.

              So for now - just make sure YOUR installation checks for the presence
              of .NET, and if it is missing, offers to install it. This is
              definitely a good feature for any installers out there - check for the
              ..NET framework and install if needed. But I really don't think it
              should be part of all your .NET apps, and their app loader.

              Marc
              =============== =============== =============== =============== ====
              Marc Scheuner May The Source Be With You!
              Bern, Switzerland m.scheuner(at)i nova.ch

              Comment

              • news.microsoft.com

                #8
                Re: Detecting Whether dot net runtime is installed

                You have a runtime for C installed, and probably VB, and WSH, so why do
                people make a big deal out of the CLR?

                They already have runtimes installed yet they say the DONT WANT ANY?
                Ignorance at its best. If they dont want the .NET CLR they can use other
                CLRs that are out there or roll theyre own, since they are whining pussies

                "Marc Scheuner [MVP ADSI]" <m.scheuner@ino va.SPAMBEGONE.c h> wrote in message
                news:mdsupvci8i gbvb5a338nfn224 dbkq3osh3@4ax.c om...[color=blue][color=green]
                > >So to run a Dot net application , we actually need to runa native
                > >application.[/color]
                >
                > No, you don't need to do that - you might need to resort to a native
                > app to determine whether or not the .NET framework is installed. To
                > actually RUN the .NET app, you don't need this - the .NET app will run
                > just fine (or crash, if the framework is missing).
                >[color=green]
                > >Could not microsoft just put in a small piece of code in the exe to
                > >check for and then help in downloading the code.[/color]
                >
                > Yes, they could - but that would be good ONLY in the very RARE case
                > where you don't have the .NET framework installed - once it's
                > installed, and everything's good to go, you would keep on checking for
                > a condition that's already fulfilled - pretty pointless IMHO.
                >
                > It comes down to a matter of installation / deployment - in order to
                > properly run .NET apps, you need to make sure the .NET framework is
                > there and ready - for now, that's a bit of a pain, since most likely,
                > it's not there yet. In a couple of years, the .NET framework will be
                > delivered with all new WIndows versions, and you won't even have to
                > think about that anymore.
                >
                > So for now - just make sure YOUR installation checks for the presence
                > of .NET, and if it is missing, offers to install it. This is
                > definitely a good feature for any installers out there - check for the
                > .NET framework and install if needed. But I really don't think it
                > should be part of all your .NET apps, and their app loader.
                >
                > Marc
                > =============== =============== =============== =============== ====
                > Marc Scheuner May The Source Be With You!
                > Bern, Switzerland m.scheuner(at)i nova.ch[/color]


                Comment

                • Marc Scheuner [MVP ADSI]

                  #9
                  Re: Detecting Whether dot net runtime is installed

                  >You have a runtime for C installed, and probably VB, and WSH, so why do[color=blue]
                  >people make a big deal out of the CLR?[/color]

                  True enough.... plus they keep installing patches and service packs
                  left, right and centre - but not the .NET runtime........ odd........

                  Marc
                  =============== =============== =============== =============== ====
                  Marc Scheuner May The Source Be With You!
                  Bern, Switzerland m.scheuner(at)i nova.ch

                  Comment

                  • sanket gupta

                    #10
                    Re: Detecting Whether dot net runtime is installed

                    Hi
                    I agree with all of you.
                    But the question is how do i make it work on the pc of an innocent
                    customers who knows nothing about what the .net runtime is and what is
                    it for.
                    I want to be sure that they just dont dump my software because they get
                    an error like ->Cannot find abc.dll

                    Whats the best solution to encounter the problem?
                    Thanks/Regards
                    Sanket Gupta


                    *** Sent via Developersdex http://www.developersdex.com ***
                    Don't just participate in USENET...get rewarded for it!

                    Comment

                    • Austin Ehlers

                      #11
                      Re: Detecting Whether dot net runtime is installed

                      Check out:


                      for how to have your install program automatically install the
                      framework. Look about halfway down the page at the "Bootstrapp ing"
                      section.

                      Austin Ehlers

                      On Wed, 29 Oct 2003 10:03:14 -0800, sanket gupta <sanket@tsucorp .net>
                      wrote:
                      [color=blue]
                      >Hi
                      >I agree with all of you.
                      >But the question is how do i make it work on the pc of an innocent
                      >customers who knows nothing about what the .net runtime is and what is
                      >it for.
                      >I want to be sure that they just dont dump my software because they get
                      >an error like ->Cannot find abc.dll
                      >
                      >Whats the best solution to encounter the problem?
                      >Thanks/Regards
                      >Sanket Gupta
                      >
                      >
                      >*** Sent via Developersdex http://www.developersdex.com ***
                      >Don't just participate in USENET...get rewarded for it![/color]

                      Comment

                      Working...