Re: [aus-dotnet] Determining ANY Framework presence


    [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
    • From: Alex Hoffman
    • Subject: Re: [aus-dotnet] Determining ANY Framework presence
    • Date: Fri, 10 Dec 2004 14:06:50 +1100

    Check for two registry settings for 1.0 and 1.1 respectively:-
    
    Software\\Microsoft\\.NETFramework\\Policy\\v1.0
    Software\\Microsoft\\NET Framework Setup\\NDP\\v1.1.4322
    
    If you want a small unmanaged application which reports these to the
    command line (or silently for use in a batch file) - let me know.
    
    
    Writing something in .NET that can even start up when there's no
    Framework installed on the target machine - how do you do that?
    
    Depends what you mean by "writing something in .NET".
    
    You cannot run managed code without a version of .NET being installed.
    That said, there is at least one 3rd party product that statically binds
    parts of the Framework to an application, allowing no framework to be
    present.
    
    On the other hand, you can write an unmanaged application which itself
    hosts an instance of the CLR, subject to the existence of an installed
    framework.
    
    Alex Hoffman
    http://weblogs.asp.net/ahoffman
    
    
    ILT said the following:
    
    Alex
    
    I'd be interested in pointers on how to determine (code-wise, if possible)
    
    if ANY version of the .NET Framework is installed on a target machine. I haven't tried to code something simple to do this. Writing something in
    .NET that can even start up when there's no Framework installed on the
    target machine - how do you do that?
    
    Ian Thomas
    GeoSciSoft - Perth, Australia
    
    
    
    -----Original Message-----
    From: dotnet-owner@xxxxxxxxxxx [mailto:dotnet-owner@xxxxxxxxxxx] On Behalf
    Of Alex Hoffman
    Sent: Friday, 10 December 2004 8:33 AM
    To: dotnet@xxxxxxxxxxx
    Subject: Re: [aus-dotnet] Determining 1.1 Framework presence
    
    Greg,
    
    I've have a small (40k unmanaged) application that can display whether
    1.1 (or 1.0) is installed.  The SP installed is shown also.  I use it as
    part of an installer to ensure that the 1.1 Framework is installed
    before continuing installation.
    
    Let me know if it would help.
    
    Alex Hoffman
    http://weblogs.asp.net/ahoffman
    
    
    Greg Keogh said the following:
    
    
    TGIF
    
    I asked this about a year ago, but I've forgotten the answer:
    
    What's the easiest way a thickhead user can determine if the .NET
    Framework 1.1 is installed on their PC or not?
    
    I'm poking around now looking for way they can go Start->Run (something)
    and it will give them a definite yes or no. Perhaps there's an even
    simpler way.
    
    Ta
    Greg Keogh
    
    _________________
    You are a part of the Australian "dotnet" mailing list.
    To unsubscribe send "unsubscribe dotnet" or to re-subscribe send
    
    
    "subscribe dotnet Your Name" in the body of the email to:
    imailsrv@xxxxxxxxxxx
    
    
    List managed by: http://www.stanski.com
    
    
    _________________
    You are a part of the Australian "dotnet" mailing list.
    To unsubscribe send "unsubscribe dotnet" or to re-subscribe send
    "subscribe dotnet Your Name" in the body of the email to:
    imailsrv@xxxxxxxxxxx
    List managed by: http://www.stanski.com
    
    
    
    
    
    
    --
    _________________
    Alex Hoffman
    alintex.com
    
    Email : alexh@xxxxxxxxxxx
    Skype : alex.hoffman
    Weblog: http://alintex.com/blog/
    _________________
    You are a part of the Australian "dotnet" mailing list.
    To unsubscribe send "unsubscribe dotnet" or to re-subscribe send "subscribe dotnet Your Name" in the body of the email to: imailsrv@xxxxxxxxxxx
    List managed by: http://www.stanski.com
    
    



    (Click here for more information on the aus-dotnet mailling list)