Test if .NET is installed

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michael A. Covington

    Test if .NET is installed

    What is the best way to test whether .NET 1.1 is installed on someone's
    machine? I'd like to give him a small program to run to test this, and
    based on the answer, he'll download either the big version (with
    dotnetfx.exe) or the small version of the install package for the app we're
    distributing.

    Test for existence of a directory under %WINDIR%?



  • John Timney \(ASP.NET MVP\)

    #2
    Re: Test if .NET is installed

    Theres a bunch of information below on how to do it - I never wrote it and I
    cant recall who did, but credit to them. Best tip is probably the uninstall
    registry setting, as thats the most lieky indicator that the framework
    runtime is actually still installed.

    --
    Regards

    John Timney
    ASP.NET MVP
    Microsoft Regional Director



    There are lot of ways you can check for .NET framework installation.

    The registry actually contains this information. It is located somewhere
    like this:

    HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\NET Framework
    Setup\NDP\v1.1. 4322\1033

    The .NET Framework 1.0 is version 1.0.3705
    The .NET Framework 1.1 is version 1.1.4322

    1033 means English, so you can also check which languages of the Framework
    are also present on the machine.

    You could check the registry. The location
    HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Windows \CurrentVersion \Uninstall\
    contains a registry key for each program installed. This information is
    listed in Add/Remove Programs in Control Panel.

    The key for Microsoft .NET Framework is:
    HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Windows \CurrentVersion \Uninstall\{B43 3
    57AA-3A6D-4D94-B56E-43C44D09E548}

    I suppose you can check the subkeys under
    HKLM\Software\M icrosoft\.NETFr amework or
    HKLM\Software\M icrosoft\ASP.NE T
    registry key. There should be seperate subkeys for each version.

    Also check this links

    HOW TO: Detect Which Version of the .NET Framework Is Installed in a
    Deployment Package
    Microsoft Support is here to help you with Microsoft products. Find how-to articles, videos, and training for Microsoft Copilot, Microsoft 365, Windows 11, Surface, and more.






    Also you can check for the .NET framework installation folder presence in
    the windows\microso ft.net\framewor k..but checking it from the Registry is
    more accurate.



    "Michael A. Covington" <look@ai.uga.ed u.for.address> wrote in message
    news:usb%235GFH FHA.3200@TK2MSF TNGP12.phx.gbl. ..[color=blue]
    > What is the best way to test whether .NET 1.1 is installed on someone's
    > machine? I'd like to give him a small program to run to test this, and
    > based on the answer, he'll download either the big version (with
    > dotnetfx.exe) or the small version of the install package for the app[/color]
    we're[color=blue]
    > distributing.
    >
    > Test for existence of a directory under %WINDIR%?
    >
    >
    >[/color]


    Comment

    • Among Thieves

      #3
      Re: Test if .NET is installed

      Michael A. Covington wrote:
      [color=blue]
      > What is the best way to test whether .NET 1.1 is installed on someone's
      > machine? I'd like to give him a small program to run to test this, and
      > based on the answer, he'll download either the big version (with
      > dotnetfx.exe) or the small version of the install package for the app
      > we're distributing.
      >
      > Test for existence of a directory under %WINDIR%?[/color]

      How about running csc --version

      Comment

      • Michael A. Covington

        #4
        Re: Test if .NET is installed

        Many thanks!



        Comment

        • David Pendrey

          #5
          Re: Test if .NET is installed

          Just a quick question, if you are going to give him a program to test if he
          has the .NET system wont he need the .NET system to run the test application
          anyway? I'm looking into the distriution of .NET applications and trying to
          see which files need to be distributed and when. Thanks for the info


          "John Timney (ASP.NET MVP)" <timneyj@despam med.com> wrote in message
          news:%23d$D6NFH FHA.576@TK2MSFT NGP15.phx.gbl.. .[color=blue]
          > Theres a bunch of information below on how to do it - I never wrote it and
          > I
          > cant recall who did, but credit to them. Best tip is probably the
          > uninstall
          > registry setting, as thats the most lieky indicator that the framework
          > runtime is actually still installed.
          >
          > --
          > Regards
          >
          > John Timney
          > ASP.NET MVP
          > Microsoft Regional Director
          >
          >
          >
          > There are lot of ways you can check for .NET framework installation.
          >
          > The registry actually contains this information. It is located somewhere
          > like this:
          >
          > HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\NET Framework
          > Setup\NDP\v1.1. 4322\1033
          >
          > The .NET Framework 1.0 is version 1.0.3705
          > The .NET Framework 1.1 is version 1.1.4322
          >
          > 1033 means English, so you can also check which languages of the Framework
          > are also present on the machine.
          >
          > You could check the registry. The location
          > HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Windows \CurrentVersion \Uninstall\
          > contains a registry key for each program installed. This information is
          > listed in Add/Remove Programs in Control Panel.
          >
          > The key for Microsoft .NET Framework is:
          > HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Windows \CurrentVersion \Uninstall\{B43 3
          > 57AA-3A6D-4D94-B56E-43C44D09E548}
          >
          > I suppose you can check the subkeys under
          > HKLM\Software\M icrosoft\.NETFr amework or
          > HKLM\Software\M icrosoft\ASP.NE T
          > registry key. There should be seperate subkeys for each version.
          >
          > Also check this links
          >
          > HOW TO: Detect Which Version of the .NET Framework Is Installed in a
          > Deployment Package
          > http://support.microsoft.com/?id=315291
          >
          > http://support.microsoft.com/default...5BLN%5D;315291
          >
          > http://www.microsoft.com/indonesia/m...otstrapper.asp
          >
          > Also you can check for the .NET framework installation folder presence in
          > the windows\microso ft.net\framewor k..but checking it from the Registry is
          > more accurate.
          >
          >
          >
          > "Michael A. Covington" <look@ai.uga.ed u.for.address> wrote in message
          > news:usb%235GFH FHA.3200@TK2MSF TNGP12.phx.gbl. ..[color=green]
          >> What is the best way to test whether .NET 1.1 is installed on someone's
          >> machine? I'd like to give him a small program to run to test this, and
          >> based on the answer, he'll download either the big version (with
          >> dotnetfx.exe) or the small version of the install package for the app[/color]
          > we're[color=green]
          >> distributing.
          >>
          >> Test for existence of a directory under %WINDIR%?
          >>
          >>
          >>[/color]
          >
          >[/color]


          Comment

          • Michael A. Covington

            #6
            Re: Test if .NET is installed


            "David Pendrey" <fairydave@dodo .com.au> wrote in message
            news:423a651c@n ews.comindico.c om.au...[color=blue]
            > Just a quick question, if you are going to give him a program to test if
            > he has the .NET system wont he need the .NET system to run the test
            > application anyway? I'm looking into the distriution of .NET applications
            > and trying to see which files need to be distributed and when. Thanks for
            > the info[/color]

            Obviously, the program to perform the test will have to be written in a
            non-.NET framework. If I proceed with this, I'll probably use Delphi.


            Comment

            • Jim Hubbard

              #7
              Re: Test if .NET is installed

              Take a look at the "Stand Alone EXE" thread.

              Thinstall is really what you need.

              Jim Hubbard

              "David Pendrey" <fairydave@dodo .com.au> wrote in message
              news:423a651c@n ews.comindico.c om.au...[color=blue]
              > Just a quick question, if you are going to give him a program to test if
              > he has the .NET system wont he need the .NET system to run the test
              > application anyway? I'm looking into the distriution of .NET applications
              > and trying to see which files need to be distributed and when. Thanks for
              > the info
              >
              >
              > "John Timney (ASP.NET MVP)" <timneyj@despam med.com> wrote in message
              > news:%23d$D6NFH FHA.576@TK2MSFT NGP15.phx.gbl.. .[color=green]
              >> Theres a bunch of information below on how to do it - I never wrote it
              >> and I
              >> cant recall who did, but credit to them. Best tip is probably the
              >> uninstall
              >> registry setting, as thats the most lieky indicator that the framework
              >> runtime is actually still installed.
              >>
              >> --
              >> Regards
              >>
              >> John Timney
              >> ASP.NET MVP
              >> Microsoft Regional Director
              >>
              >>
              >>
              >> There are lot of ways you can check for .NET framework installation.
              >>
              >> The registry actually contains this information. It is located somewhere
              >> like this:
              >>
              >> HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\NET Framework
              >> Setup\NDP\v1.1. 4322\1033
              >>
              >> The .NET Framework 1.0 is version 1.0.3705
              >> The .NET Framework 1.1 is version 1.1.4322
              >>
              >> 1033 means English, so you can also check which languages of the
              >> Framework
              >> are also present on the machine.
              >>
              >> You could check the registry. The location
              >> HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Windows \CurrentVersion \Uninstall\
              >> contains a registry key for each program installed. This information is
              >> listed in Add/Remove Programs in Control Panel.
              >>
              >> The key for Microsoft .NET Framework is:
              >> HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Windows \CurrentVersion \Uninstall\{B43 3
              >> 57AA-3A6D-4D94-B56E-43C44D09E548}
              >>
              >> I suppose you can check the subkeys under
              >> HKLM\Software\M icrosoft\.NETFr amework or
              >> HKLM\Software\M icrosoft\ASP.NE T
              >> registry key. There should be seperate subkeys for each version.
              >>
              >> Also check this links
              >>
              >> HOW TO: Detect Which Version of the .NET Framework Is Installed in a
              >> Deployment Package
              >> http://support.microsoft.com/?id=315291
              >>
              >> http://support.microsoft.com/default...5BLN%5D;315291
              >>
              >> http://www.microsoft.com/indonesia/m...otstrapper.asp
              >>
              >> Also you can check for the .NET framework installation folder presence in
              >> the windows\microso ft.net\framewor k..but checking it from the Registry is
              >> more accurate.
              >>
              >>
              >>
              >> "Michael A. Covington" <look@ai.uga.ed u.for.address> wrote in message
              >> news:usb%235GFH FHA.3200@TK2MSF TNGP12.phx.gbl. ..[color=darkred]
              >>> What is the best way to test whether .NET 1.1 is installed on someone's
              >>> machine? I'd like to give him a small program to run to test this, and
              >>> based on the answer, he'll download either the big version (with
              >>> dotnetfx.exe) or the small version of the install package for the app[/color]
              >> we're[color=darkred]
              >>> distributing.
              >>>
              >>> Test for existence of a directory under %WINDIR%?
              >>>
              >>>
              >>>[/color]
              >>
              >>[/color]
              >
              >[/color]


              Comment

              • Shailesh

                #8
                Re: Test if .NET is installed

                Hi John,

                I am developing a set up programm for my web application using
                InstalledShield . Before set up starts, I want to check if .net framework
                installed or not? So how can I check this from my installedshied script?

                Plz guide me.

                "John Timney (ASP.NET MVP)" wrote:
                [color=blue]
                > Theres a bunch of information below on how to do it - I never wrote it and I
                > cant recall who did, but credit to them. Best tip is probably the uninstall
                > registry setting, as thats the most lieky indicator that the framework
                > runtime is actually still installed.
                >
                > --
                > Regards
                >
                > John Timney
                > ASP.NET MVP
                > Microsoft Regional Director
                >
                >
                >
                > There are lot of ways you can check for .NET framework installation.
                >
                > The registry actually contains this information. It is located somewhere
                > like this:
                >
                > HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\NET Framework
                > Setup\NDP\v1.1. 4322\1033
                >
                > The .NET Framework 1.0 is version 1.0.3705
                > The .NET Framework 1.1 is version 1.1.4322
                >
                > 1033 means English, so you can also check which languages of the Framework
                > are also present on the machine.
                >
                > You could check the registry. The location
                > HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Windows \CurrentVersion \Uninstall\
                > contains a registry key for each program installed. This information is
                > listed in Add/Remove Programs in Control Panel.
                >
                > The key for Microsoft .NET Framework is:
                > HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Windows \CurrentVersion \Uninstall\{B43 3
                > 57AA-3A6D-4D94-B56E-43C44D09E548}
                >
                > I suppose you can check the subkeys under
                > HKLM\Software\M icrosoft\.NETFr amework or
                > HKLM\Software\M icrosoft\ASP.NE T
                > registry key. There should be seperate subkeys for each version.
                >
                > Also check this links
                >
                > HOW TO: Detect Which Version of the .NET Framework Is Installed in a
                > Deployment Package
                > http://support.microsoft.com/?id=315291
                >
                > http://support.microsoft.com/default...5BLN%5D;315291
                >
                > http://www.microsoft.com/indonesia/m...otstrapper.asp
                >
                > Also you can check for the .NET framework installation folder presence in
                > the windows\microso ft.net\framewor k..but checking it from the Registry is
                > more accurate.
                >
                >
                >
                > "Michael A. Covington" <look@ai.uga.ed u.for.address> wrote in message
                > news:usb%235GFH FHA.3200@TK2MSF TNGP12.phx.gbl. ..[color=green]
                > > What is the best way to test whether .NET 1.1 is installed on someone's
                > > machine? I'd like to give him a small program to run to test this, and
                > > based on the answer, he'll download either the big version (with
                > > dotnetfx.exe) or the small version of the install package for the app[/color]
                > we're[color=green]
                > > distributing.
                > >
                > > Test for existence of a directory under %WINDIR%?
                > >
                > >
                > >[/color]
                >
                >
                >[/color]

                Comment

                • John Timney \(ASP.NET MVP\)

                  #9
                  Re: Test if .NET is installed

                  I have no idea unfortunately. I'm sure it has facilities that allow you to
                  evaluate certain criteria for an install, I would check with their site.

                  --
                  Regards

                  John Timney
                  ASP.NET MVP
                  Microsoft Regional Director

                  "Shailesh" <Shailesh@discu ssions.microsof t.com> wrote in message
                  news:B34C1292-87F2-49FE-8143-10AAEB2E414E@mi crosoft.com...[color=blue]
                  > Hi John,
                  >
                  > I am developing a set up programm for my web application using
                  > InstalledShield . Before set up starts, I want to check if .net framework
                  > installed or not? So how can I check this from my installedshied script?
                  >
                  > Plz guide me.
                  >
                  > "John Timney (ASP.NET MVP)" wrote:
                  >[color=green]
                  > > Theres a bunch of information below on how to do it - I never wrote it[/color][/color]
                  and I[color=blue][color=green]
                  > > cant recall who did, but credit to them. Best tip is probably the[/color][/color]
                  uninstall[color=blue][color=green]
                  > > registry setting, as thats the most lieky indicator that the framework
                  > > runtime is actually still installed.
                  > >
                  > > --
                  > > Regards
                  > >
                  > > John Timney
                  > > ASP.NET MVP
                  > > Microsoft Regional Director
                  > >
                  > >
                  > >
                  > > There are lot of ways you can check for .NET framework installation.
                  > >
                  > > The registry actually contains this information. It is located somewhere
                  > > like this:
                  > >
                  > > HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\NET Framework
                  > > Setup\NDP\v1.1. 4322\1033
                  > >
                  > > The .NET Framework 1.0 is version 1.0.3705
                  > > The .NET Framework 1.1 is version 1.1.4322
                  > >
                  > > 1033 means English, so you can also check which languages of the[/color][/color]
                  Framework[color=blue][color=green]
                  > > are also present on the machine.
                  > >
                  > > You could check the registry. The location
                  > > HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Windows \CurrentVersion \Uninstall\
                  > > contains a registry key for each program installed. This information is
                  > > listed in Add/Remove Programs in Control Panel.
                  > >
                  > > The key for Microsoft .NET Framework is:
                  > >[/color][/color]
                  HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Windows \CurrentVersion \Uninstall\{B43 3[color=blue][color=green]
                  > > 57AA-3A6D-4D94-B56E-43C44D09E548}
                  > >
                  > > I suppose you can check the subkeys under
                  > > HKLM\Software\M icrosoft\.NETFr amework or
                  > > HKLM\Software\M icrosoft\ASP.NE T
                  > > registry key. There should be seperate subkeys for each version.
                  > >
                  > > Also check this links
                  > >
                  > > HOW TO: Detect Which Version of the .NET Framework Is Installed in a
                  > > Deployment Package
                  > > http://support.microsoft.com/?id=315291
                  > >
                  > > http://support.microsoft.com/default...5BLN%5D;315291
                  > >
                  > > http://www.microsoft.com/indonesia/m...otstrapper.asp
                  > >
                  > > Also you can check for the .NET framework installation folder presence[/color][/color]
                  in[color=blue][color=green]
                  > > the windows\microso ft.net\framewor k..but checking it from the Registry[/color][/color]
                  is[color=blue][color=green]
                  > > more accurate.
                  > >
                  > >
                  > >
                  > > "Michael A. Covington" <look@ai.uga.ed u.for.address> wrote in message
                  > > news:usb%235GFH FHA.3200@TK2MSF TNGP12.phx.gbl. ..[color=darkred]
                  > > > What is the best way to test whether .NET 1.1 is installed on[/color][/color][/color]
                  someone's[color=blue][color=green][color=darkred]
                  > > > machine? I'd like to give him a small program to run to test this,[/color][/color][/color]
                  and[color=blue][color=green][color=darkred]
                  > > > based on the answer, he'll download either the big version (with
                  > > > dotnetfx.exe) or the small version of the install package for the app[/color]
                  > > we're[color=darkred]
                  > > > distributing.
                  > > >
                  > > > Test for existence of a directory under %WINDIR%?
                  > > >
                  > > >
                  > > >[/color]
                  > >
                  > >
                  > >[/color][/color]


                  Comment

                  • Shailesh

                    #10
                    Re: Test if .NET is installed

                    let me know as soon as u get any idea about this.

                    "John Timney (ASP.NET MVP)" wrote:
                    [color=blue]
                    > I have no idea unfortunately. I'm sure it has facilities that allow you to
                    > evaluate certain criteria for an install, I would check with their site.
                    >
                    > --
                    > Regards
                    >
                    > John Timney
                    > ASP.NET MVP
                    > Microsoft Regional Director
                    >
                    > "Shailesh" <Shailesh@discu ssions.microsof t.com> wrote in message
                    > news:B34C1292-87F2-49FE-8143-10AAEB2E414E@mi crosoft.com...[color=green]
                    > > Hi John,
                    > >
                    > > I am developing a set up programm for my web application using
                    > > InstalledShield . Before set up starts, I want to check if .net framework
                    > > installed or not? So how can I check this from my installedshied script?
                    > >
                    > > Plz guide me.
                    > >
                    > > "John Timney (ASP.NET MVP)" wrote:
                    > >[color=darkred]
                    > > > Theres a bunch of information below on how to do it - I never wrote it[/color][/color]
                    > and I[color=green][color=darkred]
                    > > > cant recall who did, but credit to them. Best tip is probably the[/color][/color]
                    > uninstall[color=green][color=darkred]
                    > > > registry setting, as thats the most lieky indicator that the framework
                    > > > runtime is actually still installed.
                    > > >
                    > > > --
                    > > > Regards
                    > > >
                    > > > John Timney
                    > > > ASP.NET MVP
                    > > > Microsoft Regional Director
                    > > >
                    > > >
                    > > >
                    > > > There are lot of ways you can check for .NET framework installation.
                    > > >
                    > > > The registry actually contains this information. It is located somewhere
                    > > > like this:
                    > > >
                    > > > HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\NET Framework
                    > > > Setup\NDP\v1.1. 4322\1033
                    > > >
                    > > > The .NET Framework 1.0 is version 1.0.3705
                    > > > The .NET Framework 1.1 is version 1.1.4322
                    > > >
                    > > > 1033 means English, so you can also check which languages of the[/color][/color]
                    > Framework[color=green][color=darkred]
                    > > > are also present on the machine.
                    > > >
                    > > > You could check the registry. The location
                    > > > HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Windows \CurrentVersion \Uninstall\
                    > > > contains a registry key for each program installed. This information is
                    > > > listed in Add/Remove Programs in Control Panel.
                    > > >
                    > > > The key for Microsoft .NET Framework is:
                    > > >[/color][/color]
                    > HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Windows \CurrentVersion \Uninstall\{B43 3[color=green][color=darkred]
                    > > > 57AA-3A6D-4D94-B56E-43C44D09E548}
                    > > >
                    > > > I suppose you can check the subkeys under
                    > > > HKLM\Software\M icrosoft\.NETFr amework or
                    > > > HKLM\Software\M icrosoft\ASP.NE T
                    > > > registry key. There should be seperate subkeys for each version.
                    > > >
                    > > > Also check this links
                    > > >
                    > > > HOW TO: Detect Which Version of the .NET Framework Is Installed in a
                    > > > Deployment Package
                    > > > http://support.microsoft.com/?id=315291
                    > > >
                    > > > http://support.microsoft.com/default...5BLN%5D;315291
                    > > >
                    > > > http://www.microsoft.com/indonesia/m...otstrapper.asp
                    > > >
                    > > > Also you can check for the .NET framework installation folder presence[/color][/color]
                    > in[color=green][color=darkred]
                    > > > the windows\microso ft.net\framewor k..but checking it from the Registry[/color][/color]
                    > is[color=green][color=darkred]
                    > > > more accurate.
                    > > >
                    > > >
                    > > >
                    > > > "Michael A. Covington" <look@ai.uga.ed u.for.address> wrote in message
                    > > > news:usb%235GFH FHA.3200@TK2MSF TNGP12.phx.gbl. ..
                    > > > > What is the best way to test whether .NET 1.1 is installed on[/color][/color]
                    > someone's[color=green][color=darkred]
                    > > > > machine? I'd like to give him a small program to run to test this,[/color][/color]
                    > and[color=green][color=darkred]
                    > > > > based on the answer, he'll download either the big version (with
                    > > > > dotnetfx.exe) or the small version of the install package for the app
                    > > > we're
                    > > > > distributing.
                    > > > >
                    > > > > Test for existence of a directory under %WINDIR%?
                    > > > >
                    > > > >
                    > > > >
                    > > >
                    > > >
                    > > >[/color][/color]
                    >
                    >
                    >[/color]

                    Comment

                    Working...