Results 1 to 5 of 5

Thread: .NET framework Question

  1. #1

    Thread Starter
    Lively Member lavarock09's Avatar
    Join Date
    Jun 2005
    Posts
    124

    .NET framework Question

    Hey,

    I am making this program in Visual Basic 2005, and it will only run if I am using .NET Framework v2.0, so, Is there a way I can make it install .NET framework v2.0 when I publish it so that it can run on other computers.

    Thanks,
    Chris

  2. #2
    Junior Member
    Join Date
    Feb 2006
    Location
    Germany
    Posts
    19

    Re: .NET framework Question

    If you are using the Express Edition I think you can't do that with the build-in publisher. I think you'll need to use another tool to create an installer for your application and have it check for the .net version in the registry on the target machine. If it is not 2.0, either display a message or install dotnetfx.

    If I'm wrong and you can actually do that with the Express Editions, please let me know how :-)

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

    Re: .NET framework Question

    Nah, I think jannemann was correct, you need to use another installer. One other method to do is to inform the users before they install, or tell them to download it from Microsoft Update.
    I use Microsoft Visual Basic 2005. (Therefore, most code samples I provide will be based around the .NET Framework v2.0, unless otherwise specified)

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

    Re: .NET framework Question

    The VS 2005 Express editions only support ClickOnce deployment. A ClickOnce installer can deploy the Framework with your app as the bootstrapper is built-in. You should read about ClickOnce and determine whether it is suitable for your needs. If not then you would need to either just provide the Framework redistributable with your program and tell the user to install it themselves or else use a third-party installer. There are some freeware ones around, like Inno and NSIS. Note that these are both very powerful as they are sriptable, but they are not so user-friendly as the VB Express Publish function.
    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
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: .NET framework Question

    Here is a link to what jmchi...ey is talking about.

    http://msdn2.microsoft.com/en-us/library/wh45kb66.aspx

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