Results 1 to 25 of 25

Thread: [RESOLVED] VB 2010 Express: Run .exe file on computer without .NET framework

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2009
    Location
    Townsville, Qld, Australia
    Posts
    135

    Resolved [RESOLVED] VB 2010 Express: Run .exe file on computer without .NET framework

    I am having a few dramas with running my completed project on another computer. I created my project using Visual Studio 2010 (Microsoft Visual Basic 2010 Express).

    The error messages I get say that the program is unable to access the .NET framework. This is because the .NET framework is not loaded onto the other computer and loading it is not an option.

    I’ve done some searching on the internet and I found instructions for going from a dynamic library to a static library and building, rather than publishing the finished product for C++ 2010. So, I assume that I need to do something similar but I haven’t been able to apply this to VB 2010 Express.

    The finished product needs to be self-contained, so that the .exe file has all the libraries and compilation instructions it needs.

    So, is someone able to tell me how to link up the files I need and re-package my project so that it works on any computer that runs Windows.

    Thank you.

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: VB 2010 Express: Run .exe file on computer without .NET framework

    You install the framework...

    Seriously.

    Or re-write it in something that doesn't require the framework. VB6.0 (most computers have the runtime libraries needed), C++, Java (although, this arguably also requires a framework, just a different one, and again this is something most computers have these days), Delphi all come to mind.

    Trying to run a .NET app w/o the framework is like trying to drive a car on the highway w/o an engine... just not gonna happen.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jun 2009
    Location
    Townsville, Qld, Australia
    Posts
    135

    Re: VB 2010 Express: Run .exe file on computer without .NET framework

    UNGG! Largely due to my ignorance, (combined with issues of the network on which the program needs to run) I might have to fall back on VBA & putting the project in a Word or an excel file. As this is not a commercial project, it doesn't matter if it looks a little klunky - I'm not actually paid to program!

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: VB 2010 Express: Run .exe file on computer without .NET framework

    It may not be a complete loss... are you *SURE* there is NO framework installed? FW2.0 should be largely everywhere by now... you can target FW2.0, recompile the app and see if it will then install/run.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jun 2009
    Location
    Townsville, Qld, Australia
    Posts
    135

    Re: VB 2010 Express: Run .exe file on computer without .NET framework

    Dear tg

    I'll try that. (I'll search for the FW2 before attempting to recompile!) There are apps that live in the various drives, so someone must have found a way of getting them to work. [If you're wondering, the app is intended for use at work, where the IT services people only get upgrades when suppliers refuse to support the existing software any longer, there are security issues and the security people work hand-in-glove with the fun police. My app is actually work-related.]

  6. #6
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: VB 2010 Express: Run .exe file on computer without .NET framework

    Remotesoft has software they claim can compile a .Net application as a stand alone exe by using static linking. Only problem, its not free.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  7. #7
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: VB 2010 Express: Run .exe file on computer without .NET framework

    yeah... that is an option... but they work by compiling it down into native code... and while there's nothing really wrong with that, it can have an impact since it only "compile[s ...] into x86 machine code" which means there's some features you may lose out on.


    wow... that's pretty pricey...

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  8. #8
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: VB 2010 Express: Run .exe file on computer without .NET framework

    I'm not certain you'd lose out on anything. Here is a review written about RemoteSoft's products including the linker. This guy had no complaints about it. He seemed blown away by it in fact. Also, I believe compiling to native code is an option. The linker is described to work by creating a mini-framework and linking to that.

    I'd really like to give this product a try someday.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  9. #9
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: VB 2010 Express: Run .exe file on computer without .NET framework

    by being x86-based, you're inherently missing out on 64-bit operations... seems minor in the grand scheme of things, but with 64-bit becoming more and more proliferated, it could be a problem - admittedly I'm thinking specifically of things like PLINQ that could be left out in cases like this - ... now that's not to say that the people at Remotesoft won't update the linker... which does bring up an interesting opportunity .... creating a linker that can product x86, 64-bit native and ARM run-times.... that might be too good to pass up....

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  10. #10
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: VB 2010 Express: Run .exe file on computer without .NET framework

    Oh, I see what you mean. I think this software has been around for about 10 years now. I'm not certain they update it any more so that may be a problem indeed.

    EDIT:-

    The changelog on their site indicates it was last updated in 2007. So its about 5 years behind current trends.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  11. #11
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: VB 2010 Express: Run .exe file on computer without .NET framework

    Even still.... I'll have to remember this tread so I can point Esposito to it the next time he rails against the whole .NET framework issue...

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  12. #12
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,109

    Re: VB 2010 Express: Run .exe file on computer without .NET framework

    Framework 2.0 was pushed to XP as an essential OS update. Framework 3.5 was pushed to XP as an optional update, and was included in Windows 7 (and possibly Vista). So it is perhaps a bit more likely that at least one of those is available.
    My usual boring signature: Nothing

  13. #13
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: VB 2010 Express: Run .exe file on computer without .NET framework

    Even so, I don't know why MS in all their wisdom didn't include an option to compile to native code and statically link only the necessary components into the EXE or external DLLs. This would have been so great as many people(including me ) find it a hassle to go an hunt down and download other components over the internet just to get an app working.

    Give developers a choice. I would have jumped to VB.Net from VB6 much much sooner than I did if MS included such a feature. Having to install the runtime was my biggest barrier to switching over second only to the fact that .Net MSIL code can be decompiled with very high fidelity to the original source code very easily.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  14. #14

    Thread Starter
    Addicted Member
    Join Date
    Jun 2009
    Location
    Townsville, Qld, Australia
    Posts
    135

    Re: VB 2010 Express: Run .exe file on computer without .NET framework

    Wow, guys! Thank you for all the info & discussion. As I'm sure you've deduced, I am very much a beginner in the world of .NET. I would agree with Niya's last comment.

  15. #15
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,109

    Re: [RESOLVED] VB 2010 Express: Run .exe file on computer without .NET framework

    You have had to have a runtime for pretty nearly the entire history of VB. The reason nobody thought anything of it with VB5 and VB6 was that the runtime was already installed as part of the OS, so it was just there. Had it not been there, you wouldn't have been able to run one of those programs anymore than you can run a .NET program without the framework. I remember packaging the VB5 runtime in with distribution disks. VB had a Package and Deployment Wizard that would package the runtime, along with the program and any resources, into a compressed set of files spread across multiple disks (3.5" floppies, at the time). Because of that runtime, you could never make a program so small that it only required one disk.

    You kids these days....you're all spoiled. Now get off my lawn....and help me find my teeth.

    In any case, the goal behind .NET was to cut into Java. The intention was to write once, end up with MSIL, and have virtual machines in different operating systems that could take that MSIL and run it for the particular machine. Write Once Run Anywhere was the goal. It may not have quite been entirely successful.

    I'd like to see MS release a compiler that produced native exe's too, but mostly just out of curiosity. Specifically, I'd be curious about what Esposito would have to say about it.
    My usual boring signature: Nothing

  16. #16
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: [RESOLVED] VB 2010 Express: Run .exe file on computer without .NET framework

    Well its not so much me that's spoiled but other people that may want to use software I write. I remember when I first released an app over the internet, the number one issue people was griping about was the need to have to install my program. It was a piece of editing software for the ZDOOM map making. Very few people were willing install this software and they only came around when it seemed quite useful and worth having to install. I envied all the C++ guys who wrote other editors that could simply be downloaded and executed without the need to package a runtime. My own was unique and did things the others didn't which is why I eventually got away with it. I even had a few people requesting updates to it and such.

    I remember thinking that if people gave so much trouble just because they had to install the application, it would be madness to ask them to download a 300 something MB runtime and install it just to run my application. The .Net framework wasn't as ubiquitous as it is today so this presented a huge barrier. It soured me and made embracing .Net a problem for me for many years. Static linking would have made a big difference for me had they thought of that.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  17. #17
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,518

    Re: [RESOLVED] VB 2010 Express: Run .exe file on computer without .NET framework

    Ah, those where the days. I wrote programs for about 10 years in a language called Clipper (which as an enhanced version of DBaseIII that created an executable). Just copy the exe and database files and you were off and running. But, back then PCs only had a 1meg of ram and memory was precious so it seemed like an art to make the program do what you want and still keep the file sizes small enough. Now, memory is a very small worry.

    Then came the GUI. Now memory isn't a problem but installing the application is now an art. I've been doing this for 25years and it seems like every time I stop to catch my breath, I fall behind.

  18. #18
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: [RESOLVED] VB 2010 Express: Run .exe file on computer without .NET framework

    Ya, this business of computers evolves too quickly
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  19. #19
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,109

    Re: [RESOLVED] VB 2010 Express: Run .exe file on computer without .NET framework

    As the red queen said: Sometimes you have to run as fast as you can just to stay in one place.
    My usual boring signature: Nothing

  20. #20
    PowerPoster cicatrix's Avatar
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,654

    Re: [RESOLVED] VB 2010 Express: Run .exe file on computer without .NET framework

    Quote Originally Posted by Niya View Post
    I envied all the C++ guys who wrote other editors that could simply be downloaded and executed without the need to package a runtime.
    Still MSVC++ also has a runtime (msvcrt.dll) . It ships with Windows so nobody notices the fact.

    As for the original question - is there a point in using a framework (any framework) and then link a substantial part of it into an executable? After all, if people just read the documentation they'd known that the framework must be installed on a target computer.

  21. #21
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: [RESOLVED] VB 2010 Express: Run .exe file on computer without .NET framework

    Problem is people don't want to read anything, much less hunt the internet for runtime downloads. If your app is much needed then they'd do just about anything to get it working. This can cause competing apps to win out. Many people including myself, when downloading or installing apps and we had a choice of different apps that do the same thing, will have always choosen the one with the least hassle to get up and running. Only instance where this isn't true is when the heavy one is far superior to the thinner ones.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  22. #22
    PowerPoster cicatrix's Avatar
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,654

    Re: [RESOLVED] VB 2010 Express: Run .exe file on computer without .NET framework

    Back in VB5 or VB6 times I simply re-distributed MSVBVMx0.dll with the package.

  23. #23

    Thread Starter
    Addicted Member
    Join Date
    Jun 2009
    Location
    Townsville, Qld, Australia
    Posts
    135

    Re: [RESOLVED] VB 2010 Express: Run .exe file on computer without .NET framework

    For the record, I checked on the .NET framework and discovered it was ... FW1!

  24. #24
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,109

    Re: [RESOLVED] VB 2010 Express: Run .exe file on computer without .NET framework

    I didn't think that was even possible. Are they not doing Windows Updates?
    My usual boring signature: Nothing

  25. #25

    Thread Starter
    Addicted Member
    Join Date
    Jun 2009
    Location
    Townsville, Qld, Australia
    Posts
    135

    Re: [RESOLVED] VB 2010 Express: Run .exe file on computer without .NET framework

    That's what I thought. They do selective Windows updates. I might try my search again, in case I searched wrongly. Along with the selective Windows updates, they also do selective deletions, e.g. text-to-speech has vanished from the accessories > accessibility and I don't think they've replaced it with the narrator.

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