Results 1 to 12 of 12

Thread: Steps for creating VB.Net standalone exe - RESOLVED

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2004
    Posts
    64

    Steps for creating VB.Net standalone exe - RESOLVED

    Resolution: I simply installed the .NET Framework on my WinME laptop. Then copied my VB.Net exe file from the BIN folder (plus all the other files required by the program) into a C:\MyProg\ folder and pasted the exe and files there. I installed the .NET Framework from the "Prerequisites" CD from my Visual Studio.NET 3 CD set and did not have to download it. At first I got some errors (exceptions) when I tried to run the program and found I had not copied all the files (.bmp) I was using. It works great and I appreciate the helps. jj2 6-5-05
    ---------------------------------

    If reading for the first time please see my reply (3 or 4 down) for clarification.

    I have a VBNet program I started while taking a VBNet class and would like to be able to run it on a laptop without VBNet. My class did not discuss creating an exe.

    I did a search and found a similar question "distributable standalone exe" posted by alcodesign, 2-5-05 but that discussion and replies was all over my head.

    Is there a step by step discussion in layman's language that I could find on-line describing how to accomplish creating a VBNet standalone. I have VB6 on the laptop (running ME) and have the choice of rewriting the program in VB6 but prefer not to do this unless there are distinct advantages such as smaller more compact code for the exe and accessory files. I think I'll do all my future VB programs in VB6 rather than VBNet. I will appreciate all help. Thanks, jj2
    Last edited by jj2; Jun 4th, 2005 at 11:40 PM. Reason: Resolved

  2. #2
    New Member
    Join Date
    Mar 2005
    Posts
    10

    Re: Steps for creating VB.Net standalone exe

    After you build your project look in the "bin folder" for the the project (usually mydocuments/visualstudioprojects/<projectname>/bin, should be an .exe in there.

    Also VS.net includes a "dotnetfuscator" which will greatly recude your executable size and memory footprint by cleaning up your project depenedencies and also adds to your source security.
    Last edited by mlynch3261; Jun 4th, 2005 at 02:19 PM.

  3. #3
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: Steps for creating VB.Net standalone exe

    Quote Originally Posted by jj2
    I think I'll do all my future VB programs in VB6 rather than VBNet.
    Your career will suffer as a result of that decision and you will regret it. Maybe not today, maybe not tomorrow...

    Don't be put off by the first problem that presents itself.

    Its dead easy to make an EXE.

    Fire up VS. write a bit of code. Hit Build. Thats it!

    Its just common sense to look for the compiled program exe near to its source code.
    I don't live here any more.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Steps for creating VB.Net standalone exe

    Also, its nbot really a standalong exe because it requires the .NET Framework also. If your planning to distribute the program on to
    other systems then you need to create an installation package.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Sep 2004
    Posts
    64

    Re: Steps for creating VB.Net standalone exe

    Thanks for the replies. To Clarify: I'm retired and my applications will be of a hobby nature so I will not have a "professional programming career".

    I'm aware of the exe VBNet gives but its not "standalone" in that I cannot directly run it on my Laptop running ME or other computers without VBNet. I guess what I should have asked for are a reference to a list of step by steps for creating the installation package.

    Thanks, jj2

  6. #6
    Frenzied Member <ABX's Avatar
    Join Date
    Jul 2002
    Location
    Canada eh...
    Posts
    1,622

    Re: Steps for creating VB.Net standalone exe

    VB6 EXE's aren't "standalone" either, you don't need VB.Net, you need the .Net Framework Installed. Any Windows 2000+ User (that keeps their machine up-to-date with updates will be able to run it with no problems, ok this removes 95% of most users )

    You need to Install the .Net Framework for a VB.Net (or C#, or Managed C++) app to run. You can download the redist here

    Windows codename "longhorn" will have the Runtimes integrated (like WinME, Win2K+ with the VB6 runtimes)

    This question is asked quite regularly, an simple search should have turned up a verbose answer.

    I'm retired and my applications will be of a hobby nature so I will not have a "professional programming career".
    All I use VB.Net for is mucking around with personal little wigets, and little hobbist things...
    Tips:
    • Google is your friend! Search before posting!
    • Name your thread appropriately... "I Need Help" doesn't cut it!
    • Always post your code!!!! We can't read your mind!!! (well, at least most of us!)
    • Allways Include the Name and Line of the Exception (if one is occuring!)
    • If it is relevant state the version of Visual Studio/.Net Framwork you are using (2002/2003/2005)


    If you think I was helpful, rate my post
    IRC Contact: Rizon/xous ChakraNET/xous Freenode/xous

  7. #7
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Steps for creating VB.Net standalone exe

    So along with your .Net application you need to send along 23MBs for the framework?


    Has someone helped you? Then you can Rate their helpful post.

  8. #8
    Hyperactive Member
    Join Date
    Mar 2005
    Location
    Maine, USA
    Posts
    277

    Re: Steps for creating VB.Net standalone exe

    Quote Originally Posted by wossname
    common sense
    Huh?
    <deis> I turn on god mode when I program
    <deis> I just call it .NET


    If my post was helpful, please Rate it

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Sep 2004
    Posts
    64

    Re: Steps for creating VB.Net standalone exe

    Thanks ABX, please clarify - are you saying:

    that, on my WinME laptop, I can run a VB.Net exe if I have the .Net Framework loaded? I checked and it does not have the .Net Framework loaded.

    The laptop does have VB6 professional loaded and obviously runs VB6 programs OK.

    I don't understand the "longhorn" comment.

    Thanks, jj2

  10. #10
    Frenzied Member <ABX's Avatar
    Join Date
    Jul 2002
    Location
    Canada eh...
    Posts
    1,622

    Re: Steps for creating VB.Net standalone exe

    Longhorn is the Next Version of windows. (Windows XP was codenamed "Whistler")

    Yes, if you Install the .Net Framework on the computer any .Net Executable will run (this includes one written in vb.net)

    So you have two options
    1) your users must download the .Net Framework (if they dont already have it)
    2) you distrubute the 23mb .Net Framework Installer (linked, in my previous post) with your application.

    If you wanted to distrubute your VB6 applications to Windows 98, you would need to Include the vb6 runtimes.
    Tips:
    • Google is your friend! Search before posting!
    • Name your thread appropriately... "I Need Help" doesn't cut it!
    • Always post your code!!!! We can't read your mind!!! (well, at least most of us!)
    • Allways Include the Name and Line of the Exception (if one is occuring!)
    • If it is relevant state the version of Visual Studio/.Net Framwork you are using (2002/2003/2005)


    If you think I was helpful, rate my post
    IRC Contact: Rizon/xous ChakraNET/xous Freenode/xous

  11. #11

    Thread Starter
    Lively Member
    Join Date
    Sep 2004
    Posts
    64

    Re: Steps for creating VB.Net standalone exe

    Thanks much ABX, this simplifies things for me since I am my only user and at the moment just need to get my program running on the Laptop for further testing.

    jj2

  12. #12
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Steps for creating VB.Net standalone exe - RESOLVED

    Initially, I was thinking that the problem might be Win ME itself.

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