Results 1 to 21 of 21

Thread: How Do You Build into .EXE and not VB?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2008
    Posts
    22

    Unhappy How Do You Build into .EXE and not VB?

    Hey, I am a beginner at Visual Basic. I am using "Microsoft Visual Basic 2008 Express Edition". I made a little browser just for fun and when I ''Build'' it for use, I get a Setup file, a ''application manifest'' file, and a folder with files called ''Application Files''. Now I am assuming if I send this all (setup, folder, file, everything) to someone else to install WITHOUT VB installed, will they be able to execute it? I was wanting a .EXE kind of program and not this awkward "Application Manifest" thing. Please help me with this matter!

  2. #2
    Lively Member
    Join Date
    Aug 2008
    Location
    Palm Desert, CA
    Posts
    91

    Re: How Do You Build into .EXE and not VB?

    The .exe file that makes up you program is most likely in the debug directory, which should be in the directory for your project.

  3. #3
    Lively Member mahammad()'s Avatar
    Join Date
    Jun 2008
    Location
    Cairo , Egypt
    Posts
    71

    Re: How Do You Build into .EXE and not VB?

    I get the .EXE file from the debug directory too , I was think that it is a stupid way to make an EXE file
    but is there is not in the 2008 Express 'Make EXE file' like in vb6?

  4. #4
    Frenzied Member obi1kenobi's Avatar
    Join Date
    Aug 2007
    Posts
    1,091

    Re: How Do You Build into .EXE and not VB?

    The application manifest doesn't contain the executable, it only describes the permissions and stuff it needs in xml. You don't press Build, you press Publish in order to get an installer. It is made to download and install all prerequisites, such as .NET 3.5.

    If you want the exe, go to the bin/Release (not the Debug) folder in your project directory and copy it from there. Don't say you weren't warned if it doesn't work on another machine. It may miss .NET, you may need the .config files, you may need some .resx resource files, you may need all kinds of stuff which will NOT be included.
    Please rate helpful ppl's posts. It's the best 'thank you' you can give

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

    Re: How Do You Build into .EXE and not VB?

    entirely correct. Unlike earlier versions of vb, the OS does not contain the run-time files for vb.net. And if you are using vb2008, and your target system doesn't have vb.net installed, it almost certainly won't work because vb2008 uses .net 3.5 which is not ever installed even with windows update. Only programs that need it download it.
    Your program will need it but it won't be able to download it since that is what the install package does and you aren't giving them that.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

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

    Re: How Do You Build into .EXE and not VB?

    Does noone ever read anything? This subject has been discussed over and over on this forum and compiling and deploying are covered in detail in the MSDN Library.

    When you BUILD your project it is compiled into an executable, i.e. and EXE file. Every time you run your project in the debugger this occurs and it is the EXE file that gets run. The EXE file is located in the bin\Debug folder under your project folder. If you build the project from the main menu it will compile a Release version, so the EXE is located in the bin\Release folder.

    When you PUBLISH your project, it is first built and then bundled into a ClickOnce installer. It is THAT that you're talking about in the first post. That package will install your app (yes, that means the EXE) onto the user's system along with the .NET Framework if it isn't already installed.

    By default, the installer will download the Framework over the Internet if and only if it's required. That's goo if the user is downloading your app because it means they won't download the Framework if they already have it installed. If you're deploying on physical media then it's better to change that behaviour and deploy the Framework with the app, so the user doesn't have to use their download allowance unnecessarily.
    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
    Junior Member
    Join Date
    Aug 2008
    Posts
    22

    Angry Re: How Do You Build into .EXE and not VB?

    Thanks for so many posts during this little time but my problem still goes on.

    Why is everyone talking about the bin / debug folder? Yes i have all of them but im trying to make this like a real program. Something like the user clicks the Setup file to install all the contents into a directory located in the Program Files and you run it from an EXE, not something that needs visual basic on your computer to open!

    I am major beginner, 15 years old taking programming and engineering classes in my high skool lol.

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

    Re: How Do You Build into .EXE and not VB?

    This is just a bit ridiculous. You say:
    Something like the user clicks the Setup file to install all the contents into a directory
    yet in your first post you specifically state that you already have the Setup.exe file. You already have what you're asking for. All you need to do is deploy the contents of the output from the publish operation, i.e. the contents of the folder that contains the Setup.exe file. The user executes that setup and your app gets installed, end of story.
    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

  9. #9

    Thread Starter
    Junior Member
    Join Date
    Aug 2008
    Posts
    22

    Re: How Do You Build into .EXE and not VB?

    YES but it installs files that that open with visual basic

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

    Re: How Do You Build into .EXE and not VB?

    Either you're mistaken or your IDE is broken. When you publish the code files aren't touched at all. It is the contents of the aforementioned bin folder that are the source. Building takes the code files as the source and outputs the executable files to a different folder. Publishing takes those executable files as the source and outputs a deployment package to yet another folder. The publishing process doesn't know anything about the code files so I don't see how what you're saying could be true. I'd need to see specific evidence before I'd believe that.
    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

  11. #11

    Thread Starter
    Junior Member
    Join Date
    Aug 2008
    Posts
    22

    Re: How Do You Build into .EXE and not VB?

    Yes I think I am highly mistaken, when I go to "build", all I see are tiny locks on the tabs for like a second and they go away. I dont know whats going on. When I get the EXE, folder, and the other file, thats when I clicked "publish". Ok so I think something is wrong with my "Build" function, or im doing something wrong or need an add-on??

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

    Re: How Do You Build into .EXE and not VB?

    There's nothing wrong with your Build function. The padlock on the tab indicates a read-only file, which they are while the project is being built.
    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

  13. #13

    Thread Starter
    Junior Member
    Join Date
    Aug 2008
    Posts
    22

    Re: How Do You Build into .EXE and not VB?

    yeah i see padlocks for like a second then nothing happens

    where is it building what is it building what locatoin how do i access it??

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

    Re: How Do You Build into .EXE and not VB?

    Um, you've already been told several times. Did you read post #6? Post #10? I'm not fond of repeating myself and I'm not going to. If you ask for help and people provide it, don't ignore it and ask questions they've already answered.
    Last edited by jmcilhinney; Aug 30th, 2008 at 01:26 PM.
    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

  15. #15

    Thread Starter
    Junior Member
    Join Date
    Aug 2008
    Posts
    22

    Re: How Do You Build into .EXE and not VB?

    oohh im sry yes now i understand.

    so that exe can be copy pasted out of that folder and used for independent use? meaning no other files need to be there for it to work, and no setup/install required?

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

    Re: How Do You Build into .EXE and not VB?

    Exactly, other than the appropriate version of the .NET Framework. That's the primary reason you'd provide an installer for a simple application: to install the .NET Framework if it isn't already installed. If you know that the end-user will already have the Framework installed, or that they'll be able to install it themselves, then you don't need to worry about that.
    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

  17. #17

    Thread Starter
    Junior Member
    Join Date
    Aug 2008
    Posts
    22

    Re: How Do You Build into .EXE and not VB?

    yeah i got my friend to test it thank u so much

  18. #18
    Frenzied Member obi1kenobi's Avatar
    Join Date
    Aug 2007
    Posts
    1,091

    Re: How Do You Build into .EXE and not VB?

    Age doesn't matter at all. I only turned 16 today... Btw, I think that nafiul93's reference to files that open with VB in post #9 is actually about the .Net framework...

    Btw, you should mark the thread resolved if you require no further help. Cheers!
    Last edited by obi1kenobi; Aug 30th, 2008 at 02:28 PM.
    Please rate helpful ppl's posts. It's the best 'thank you' you can give

  19. #19
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: How Do You Build into .EXE and not VB?

    Man, 15 year olds have it easy with being able to program in .Net from the start, I remember doing Basic and QBasic back in high school.
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  20. #20

    Thread Starter
    Junior Member
    Join Date
    Aug 2008
    Posts
    22

    Re: How Do You Build into .EXE and not VB?

    lol yeah im taking a pre ap class on programming this year

  21. #21
    Member
    Join Date
    Jun 2008
    Posts
    37

    Re: How Do You Build into .EXE and not VB?

    Quote Originally Posted by JuggaloBrotha
    Man, 15 year olds have it easy with being able to program in .Net from the start, I remember doing Basic and QBasic back in high school.
    Ahh, I remember getting royally annoyed at skool becuase they insisted on the final projects being wrote in QBasic when I wanted to use VB3.

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