Results 1 to 7 of 7

Thread: Check .NET is installed

  1. #1

    Thread Starter
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690

    Check .NET is installed

    Is there a way, using purely JavaScript or similar, to check if the client machine has .NET installed?

  2. #2
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    Presumably this would mean you have to see if a file exists on the clients PC. JavaScript cannot read files or even check to see if they are there, and that's a good thing. Otherwise it would be a huge security concern.
    Have I helped you? Please Rate my posts.

  3. #3

    Thread Starter
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    Not necessarily, although that might be one way. There are registry entries also, and indeed other mechanisms, about which I have no idea.

    Sure a browser should not access the files, or the registry, but I do know this is possible, I just don't know how to do it. For example, I have seen a browser application that tests if .NET is installed on the client machine. This is not even done in a .NET language. I'm not sure if it's a HTTP header or what the heck, I do know that it only works if the browser is IE.

    Perhaps some object model that can query this? I don't know. Like I said, I know it's possible, I just don't know how to do it. I'd like to find out how.

    Mike

  4. #4
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906
    There might be a way to check in IE. After installing the .NET framework , it may append something to the user agent string too.

    Have you tried asking this question in one of the .NET forums?
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  5. #5

    Thread Starter
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    No, I did not ask this question in any forum but this one. I wasn't really sure where to post. I'm guessing it's a IE/JavaScript type of thing, so I posted here.

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    .Net does indeed append something to IE's user agent string. CLR 1.0.3905235 or something to that effect for .Net 1.0, and CLR 1.1.12482245 for .Net 1.1.

    navigator.userAgent can be used in JS to obtain this string.

    This is my IE's UA:
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)

    No other browser does this.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  7. #7

    Thread Starter
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    Cool CornedBee, I appreciate the info.

    Mike

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width