Results 1 to 15 of 15

Thread: [RESOLVED] How can i check if .net 2.0 is installed and thorw an error

  1. #1

    Thread Starter
    Fanatic Member Crash893's Avatar
    Join Date
    Dec 2005
    Posts
    930

    Resolved [RESOLVED] How can i check if .net 2.0 is installed and thorw an error

    Ive seen many threads mentioning it but never the actuall code

    anyone?
    Last edited by Crash893; Feb 15th, 2006 at 05:44 PM.

  2. #2

    Thread Starter
    Fanatic Member Crash893's Avatar
    Join Date
    Dec 2005
    Posts
    930

    Re: How can i check if .net 2.0 is installed and thorw an error


  3. #3

    Thread Starter
    Fanatic Member Crash893's Avatar
    Join Date
    Dec 2005
    Posts
    930

    Re: How can i check if .net 2.0 is installed and thorw an error

    okay now i have it installed by im not sure how to use it?

    now i really need help

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: How can i check if .net 2.0 is installed and thorw an error

    That's the bootstrapper plug-in for VS.NET 2003. It has no connection to version 2.0 of the Framework whatsoever. When it's installed it will cause VS.NET 2003 to include version 1.1 of the Framework with your setup projects by default, so that when a user installs your app it will first install the Framework if required. Note that this is for VS.NET 2003 and Framework version 1.1 only. Version 2.0 of the Framework is for applications created with VS 2005 only, which already has a bootstrapper built-in.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Fanatic Member Crash893's Avatar
    Join Date
    Dec 2005
    Posts
    930

    Re: How can i check if .net 2.0 is installed and thorw an error

    that makes sense

    could you point me to the 2005 epress one then?

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: How can i check if .net 2.0 is installed and thorw an error

    VB 2005 Express already has the bootstrapper built-in. All the Express editions, as well as VS 2005 Standard if I'm not mistaken, support only ClickOnce deployment.
    Attached Images Attached Images  
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  7. #7

    Thread Starter
    Fanatic Member Crash893's Avatar
    Join Date
    Dec 2005
    Posts
    930

    Re: How can i check if .net 2.0 is installed and thorw an error

    Intresting that was already checked

    but i ran it on a coworkers desktop and it wouldnt run?

    i didnt get the error ill get it tommrow

    thanks

  8. #8

    Thread Starter
    Fanatic Member Crash893's Avatar
    Join Date
    Dec 2005
    Posts
    930

    Re: [RESOLVED] How can i check if .net 2.0 is installed and thorw an error




    This is what im getting shouldnt i be getting something asking if you want to install .net

  9. #9

    Thread Starter
    Fanatic Member Crash893's Avatar
    Join Date
    Dec 2005
    Posts
    930

    Re: How can i check if .net 2.0 is installed and thorw an error

    bump
    Last edited by Crash893; Feb 15th, 2006 at 05:49 PM.

  10. #10
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: [RESOLVED] How can i check if .net 2.0 is installed and thorw an error

    Quote Originally Posted by Crash893



    This is what im getting shouldnt i be getting something asking if you want to install .net
    there is NO way around that to be honest. When you double click a .NET exe and no .NET framework is present. it craps out with that error message. It would have been nice for them to build something into the win32 file header to give a better error message.. but perhaps it was something that was not possible to do.

    What I have done in the past when I was worried about this, was to create a tiny VB6 app that my shortcuts point to, and that VB6 app checks for .NET framework, and if present, launches the .NET exe, otherwise gives a message stating they need the framework, and perhaps if you wanted, further instructions on how to obtain it.

    VB6 apps need a runtime too, but its included on windows 2000 and up, and even if you wanted to target windows 9x systems (98, ME) the VB6 runtime redist file is only 1MB in size.

  11. #11
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: How can i check if .net 2.0 is installed and thorw an error

    Did you install this using a ClickOnce installer or did you just copy the executable to the other computer? Your app is .NET code so it is incapable of doing anything if the Framework is not present. This includes checking for the Framework and prompting you to download it. It is the installer that checks for the Framework and installs it BEFORE installing your application. If you're distributing via CD the you would choose the second option for location and supply the Framework on the same CD, which I imagine the Publishing process will do for you.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  12. #12

    Thread Starter
    Fanatic Member Crash893's Avatar
    Join Date
    Dec 2005
    Posts
    930

    Re: How can i check if .net 2.0 is installed and thorw an error

    I just draged the exe over

    i didnt know there was a installer

    where is that located

  13. #13
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: How can i check if .net 2.0 is installed and thorw an error

    Did you notice the Publish tab in my screen shot? Note that the Express IDEs only support ClickOnce deployment, which has its advantages but is not the same as using an MSI installer. I suggest you visit MSDN and do some reading on the subject to make sure it is what you want.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  14. #14
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: How can i check if .net 2.0 is installed and thorw an error

    Quote Originally Posted by Crash893
    I just draged the exe over

    i didnt know there was a installer

    where is that located
    This was already posted with directions and a pretty screenshot
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  15. #15
    Frenzied Member Ideas Man's Avatar
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    1,718

    Re: How can i check if .net 2.0 is installed and thorw an error

    I could've sworn I saw a .NET app built using the .NET Framework v2.0 say it required it and it wouldn't run, maybe it needed v1.1 to be installed for that to work....
    I use Microsoft Visual Basic 2005. (Therefore, most code samples I provide will be based around the .NET Framework v2.0, unless otherwise specified)

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