Results 1 to 10 of 10

Thread: detecting no ".net framework" prior to install [RESOLVED]

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489

    detecting no ".net framework" prior to install [RESOLVED]

    I searched for this but didn't find anything. How do you scan the target computer to see if the .net framework is installed before the user can install your software? And if it's detected as not being there, is there an .exe to include when you deploy your application?
    Last edited by Andy; Feb 11th, 2004 at 09:30 PM.

  2. #2
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    I thought the included installers in VS.NET could detect, but I'm not sure how to use them. If you wanted to, you could create an executable in C++ that checks for the .NET framework directories and if they don't exist, download it. That may be more trouble for you than it's worth (since you may not know C++). I'll let someone else give you a different answer for that.

    As for the executable for the .NET framework, look at this: http://www.microsoft.com/downloads/d...displaylang=en

  3. #3
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    Well if the installer was built in VS.NET, the framework would have to be on the computer for it to work, which defeats the purpose of what you are trying to accomplish.

    Take a look at this sample http://www.franklins.net/dotnet/bootstrapper.zip

    Also installshield is able to detect and install the framework.

  4. #4
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    Originally posted by DevGrp
    Well if the installer was built in VS.NET, the framework would have to be on the computer for it to work, which defeats the purpose of what you are trying to accomplish.
    I was talking about the Installers VS.NET comes with, which don't use the .NET framework themselves.

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    Originally posted by DevGrp
    Well if the installer was built in VS.NET, the framework would have to be on the computer for it to work, which defeats the purpose of what you are trying to accomplish.

    Take a look at this sample http://www.franklins.net/dotnet/bootstrapper.zip

    Also installshield is able to detect and install the framework.
    well, that's what I'm saying. If a user installs my app that I wrote in .net, they can't use it until the framework is installed. What I need to be able to do is check that the framework is there and if not, have it prompt to install it from my cd (or whatever meda) or maybe even prompt to connect to windows update etc, etc....

    Some programs do this but I don't know what method is used to check.

  6. #6
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    well you could BUY installsheild devstudio and it would do it for you

    try this though, I dont know if it's the same bootstrapper that DevGrp was talking about. http://msdn.microsoft.com/library/de...otnetfxexe.asp

    or this?
    http://www.msdn.microsoft.com/librar...amedepguid.asp


    I think I've tried it before, works fine. I think I used InnoSetup and had the DotNetFix file, and used this bootstrapper thingie
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  7. #7
    Hyperactive Member
    Join Date
    Jun 2002
    Location
    Tulsa,Ok
    Posts
    262
    I wrote an autorun program in C++ that detects for the framework. It just reads through the registry and looks for the entry for the framkework.

    I can send you the code if you are interested.

  8. #8

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    Originally posted by Phenglai
    I wrote an autorun program in C++ that detects for the framework. It just reads through the registry and looks for the entry for the framkework.

    I can send you the code if you are interested.
    that'd be great. That's what I'm actually after. When the user doesn't have it installed, I want to give a choice of wether or not they want to install it.(some people don't)

    sure, post that code buddy!!

  9. #9
    Hyperactive Member
    Join Date
    Jun 2002
    Location
    Tulsa,Ok
    Posts
    262
    I just got to work this morning. Give me a bit to remove some of the stuff in the code so it becomes generic. I will try to have it up here by this afternoon

  10. #10
    Hyperactive Member
    Join Date
    Jun 2002
    Location
    Tulsa,Ok
    Posts
    262
    Ok,

    Here it is. I stripped out the stuff that is for my employer. I dont think I took out anything that will stop it from not working. If it does not work, let me know. If you need any help, let me know.

    I am not that great at C++. But I did get this to work.

    Hope this helps.

    Jerel
    Attached Files Attached Files

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