VB.NET School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 306,831 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,740 people online right now. Registration is fast and FREE... Join Now!




How to generate/create a exe file of a Vb.net project

 

How to generate/create a exe file of a Vb.net project

jremio

29 Jan, 2009 - 02:18 AM
Post #1

New D.I.C Head
*

Joined: 19 Oct, 2008
Posts: 15


My Contributions
Do anyone know how to create a .exe file from my vb.net project? I do not want the one in the /bin folder. This is because i want it to be able to run my application from a single EXE file.

Your help will be appreciated, thank you

User is offlineProfile CardPM
+Quote Post


highboy

RE: How To Generate/create A Exe File Of A Vb.net Project

29 Jan, 2009 - 02:30 AM
Post #2

New D.I.C Head
*

Joined: 28 Jan, 2009
Posts: 4

QUOTE(jremio @ 29 Jan, 2009 - 02:18 AM) *

Do anyone know how to create a .exe file from my vb.net project? I do not want the one in the /bin folder. This is because i want it to be able to run my application from a single EXE file.

Your help will be appreciated, thank you


i dont really understand you for thats all you are ever going to get is that exe file in the bin folder.i mean you can create an installer that places it in say program files and makes a nice short cut to the users desktop and all but when it all boils down the app is still running from that exe file in the bin folder.
User is offlineProfile CardPM
+Quote Post

shill

RE: How To Generate/create A Exe File Of A Vb.net Project

29 Jan, 2009 - 11:32 AM
Post #3

New D.I.C Head
*

Joined: 19 Sep, 2008
Posts: 36



Thanked: 2 times
My Contributions
QUOTE(jremio @ 29 Jan, 2009 - 04:18 AM) *

Do anyone know how to create a .exe file from my vb.net project? I do not want the one in the /bin folder. This is because i want it to be able to run my application from a single EXE file.

Your help will be appreciated, thank you

To add a setup file to a project:

File --> Add --> New Project --> Other Project Types --> Setup & Deployment --> Setup Wizard

To have it overwrite the old program (instead of having to uninstall/reinstall each time)

In the Properties of the setup file change the version from 1.0.0 to 1.0.1, it will prompt you to change the product code. Make a new build and it will overwrite the old!
User is offlineProfile CardPM
+Quote Post

Core

RE: How To Generate/create A Exe File Of A Vb.net Project

29 Jan, 2009 - 01:59 PM
Post #4

The .NET Dude
Group Icon

Joined: 8 Dec, 2008
Posts: 3,033



Thanked: 217 times
Dream Kudos: 900
Expert In: C#, VB.NET, WPF, .NET Framework

My Contributions
QUOTE(jremio @ 29 Jan, 2009 - 02:18 AM) *

Do anyone know how to create a .exe file from my vb.net project? I do not want the one in the /bin folder. This is because i want it to be able to run my application from a single EXE file.

Your help will be appreciated, thank you


The executable that you is found in the project bin folder (either Release or Debug versions) is your only choice if you need the EXE file. Your application will run from that single executable everywhere, where a compatible version of .NET Framework is installed (if you are not using any additional third-party references).
User is offlineProfile CardPM
+Quote Post

jremio

RE: How To Generate/create A Exe File Of A Vb.net Project

1 Feb, 2009 - 04:36 PM
Post #5

New D.I.C Head
*

Joined: 19 Oct, 2008
Posts: 15


My Contributions
Thanks for the reply, but i do not want the exe in the bin folder, i wan a exe that acts like a disc, where u can simply use the application by runnning the exe even in the other computers.
I do not expect the client to install Vb.net in order to view this application. Any idea?
User is offlineProfile CardPM
+Quote Post

Bort

RE: How To Generate/create A Exe File Of A Vb.net Project

3 Feb, 2009 - 02:36 AM
Post #6

VBort.NET
Group Icon

Joined: 18 Sep, 2006
Posts: 1,391



Thanked: 27 times
Dream Kudos: 350
My Contributions
As Shill said above:

QUOTE

To add a setup file to a project:

File --> Add --> New Project --> Other Project Types --> Setup & Deployment --> Setup Wizard

To have it overwrite the old program (instead of having to uninstall/reinstall each time)

In the Properties of the setup file change the version from 1.0.0 to 1.0.1, it will prompt you to change the product code. Make a new build and it will overwrite the old!


This is how you create an exe for your application. It will be in the bin\release folder. Copy all of the files in this folder onto the target computer, then run the exe. It will install, and give you a start menu item and a desktop icon.

Once this is done, the owner of the other computer will not need vb.net installed.

This post has been edited by Bort: 3 Feb, 2009 - 02:37 AM
User is offlineProfile CardPM
+Quote Post

pr4y

RE: How To Generate/create A Exe File Of A Vb.net Project

3 Feb, 2009 - 04:43 AM
Post #7

Location: 127.0.0.1
Group Icon

Joined: 19 Sep, 2008
Posts: 615



Thanked: 29 times
Dream Kudos: 175
My Contributions
You can't simply take a .NET application and expect to have it work without the .NET framework. Any application developed in .NET, must stay with the .NET framework.

Your only option for a single executable file would be an EXE binder in which is bound to the .NET installation and your Project's installation files.

You can't avoid the framework... its like trying to run a web server without apache, you just can't do it.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/20/09 10:45PM

Live VB.NET Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month