Results 1 to 18 of 18

Thread: [2005] .Net Framework 2.0 general question

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2006
    Posts
    75

    Exclamation [2005] .Net Framework 2.0 general question

    Hi all,
    I use Visual Basic 2005 to build programs. To run them is required .Net Framework to the computer that i run the applications. My question is:
    Is there a way to run my applications to a computer that does not have .Net Framework 2.0 installed?
    Also, can i put to my installer the .Net Framework 2.0 dll's that my program need to run(or Microsoft will complain)?


  2. #2
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: [2005] .Net Framework 2.0 general question

    Instead of building your projects, publish them. This will create an actual install file that will take with it the 2.0 dependancies needed for your project to run.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2006
    Posts
    75

    Re: [2005] .Net Framework 2.0 general question

    is there another way? I want to use a freeware installer because i must write also values to registry, create shortcuts, show a welcome screen ....

  4. #4
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: [2005] .Net Framework 2.0 general question

    It's part of VS. Drop down the Build menu and select Publish.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Dec 2006
    Posts
    75

    Re: [2005] .Net Framework 2.0 general question

    No, you did not understand....
    I know how to do that, but i do not want to do it that way.
    That what am i asking is there another way(except publishing)?
    I want to use a my own installer.

  6. #6
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: [2005] .Net Framework 2.0 general question

    The framework must be on the computer. Either you must package it for installation or the user must download from MS.
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  7. #7
    Frenzied Member Zakary's Avatar
    Join Date
    Mar 2005
    Location
    Canada, Quebec, Montreal
    Posts
    1,654

    Re: [2005] .Net Framework 2.0 general question

    Program build with .NET do required the Framework.
    Running .NET program without the Framework is like trying to prepare a cake with recipe but without any ingredient.



    Maybe .NET isn't appropriate to your need.
    Using VS 2010 on Fw4.0

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Dec 2006
    Posts
    75

    Re: [2005] .Net Framework 2.0 general question

    If i pack to my installer,
    i have to copy the required dll's to the 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727' folder OR in my programs' directory??

  9. #9
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: [2005] .Net Framework 2.0 general question

    Did you look at Inno Installer? That gives a way to do everything you are asking and will package the framework installer with the installation package. There is a function that will test if the 2.o Framework is installed if it is then the regular installation continues. If not the framework is installed and then the rest of the app is installed.
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  10. #10

    Thread Starter
    Lively Member
    Join Date
    Dec 2006
    Posts
    75

    Re: [2005] .Net Framework 2.0 general question

    I use CreateInstall.com (free) and i find it more easy to use and more powerful.
    So, i have to copy the required dll's to the 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727' folder OR in my programs' directory?

  11. #11
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: [2005] .Net Framework 2.0 general question

    NO the framework must be installed.
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  12. #12

    Thread Starter
    Lively Member
    Join Date
    Dec 2006
    Posts
    75

    Re: [2005] .Net Framework 2.0 general question

    So, i can not put the required .Net Framework dll's, that my application needs, to my installer and copy them to windows system folder...
    The computer must have .Net Framework 2.0 installed :-(

  13. #13

    Thread Starter
    Lively Member
    Join Date
    Dec 2006
    Posts
    75

    Re: [2005] .Net Framework 2.0 general question

    thanks for the fast replies!

  14. #14
    Frenzied Member Zakary's Avatar
    Join Date
    Mar 2005
    Location
    Canada, Quebec, Montreal
    Posts
    1,654

    Re: [2005] .Net Framework 2.0 general question

    If you don't what to mess with the framework , maybe you should change your approach and use another language, ASP or VB6.

    But of course if your software is already build it is another thing ...
    Using VS 2010 on Fw4.0

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

    Re: [2005] .Net Framework 2.0 general question

    You need to get the .NET Framework Redistributable Package, which is the dotnetfx.exe file, and distribute that with your application, then have your installer execute that file to install the Framework before installing your app. You can download that file from Microsoft or just find it on your system yourself. as it will be present somewhere, probably more than once.
    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

  16. #16
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: [2005] .Net Framework 2.0 general question

    Quote Originally Posted by hellas07
    I use CreateInstall.com (free) and i find it more easy to use and more powerful.
    To make a statement like this you must already know how to use the other installers...

  17. #17

    Thread Starter
    Lively Member
    Join Date
    Dec 2006
    Posts
    75

    Re: [2005] .Net Framework 2.0 general question

    You are right. I'm sorry...

    Thank you again for the replies!!!

  18. #18
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: [2005] .Net Framework 2.0 general question

    I haven't actually checked in vb.net, but in visual studio 6, the package and deployment wizard included its own source code. same with DirectX. You could customize the install any way you wanted because you had the installer source. Custom splash screens were a main benefit.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

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