School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
Welcome to Dream.In.Code
Become an Expert!

Join 340,029 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 4,091 people online right now. Registration is fast and FREE... Join Now!



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

Page 1 of 1

How to generate/create a exe file of a Vb.net project Rate Topic: -----

#1 jremio  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: Members
  • Posts: 15
  • Joined: 19-October 08


Dream Kudos: 0

Post icon  Posted 29 January 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
Was This Post Helpful? 0
  • +
  • -


#2 highboy  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 4
  • Joined: 28-January 09


Dream Kudos: 0

Posted 29 January 2009 - 02:30 AM

View Postjremio, on 29 Jan, 2009 - 02:18 AM, said:

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.
Was This Post Helpful? 0
  • +
  • -

#3 shill  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: Members
  • Posts: 36
  • Joined: 19-September 08


Dream Kudos: 0

Posted 29 January 2009 - 11:32 AM

View Postjremio, on 29 Jan, 2009 - 04:18 AM, said:

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!
Was This Post Helpful? 0
  • +
  • -

#4 Core  Icon User is offline

  • Jasper
  • Icon
  • View blog
  • Group: Admins
  • Posts: 3,474
  • Joined: 08-December 08


Dream Kudos: 975

Expert In: .NET Framework

Posted 29 January 2009 - 01:59 PM

View Postjremio, on 29 Jan, 2009 - 02:18 AM, said:

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).
Was This Post Helpful? 0
  • +
  • -

#5 jremio  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: Members
  • Posts: 15
  • Joined: 19-October 08


Dream Kudos: 0

Posted 01 February 2009 - 04:36 PM

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?
Was This Post Helpful? 0
  • +
  • -

#6 Bort  Icon User is online

  • Echo-3 to Carlos Spiceyweiner.
  • Icon
  • Group: Authors
  • Posts: 1,549
  • Joined: 18-September 06


Dream Kudos: 350

Posted 03 February 2009 - 02:36 AM

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: 03 February 2009 - 02:37 AM

Was This Post Helpful? 0
  • +
  • -

#7 pr4y  Icon User is offline

  • Location: 127.0.0.1
  • Icon
  • View blog
  • Group: Author w/DIC++
  • Posts: 615
  • Joined: 19-September 08


Dream Kudos: 175

Posted 03 February 2009 - 04:43 AM

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.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1


Fast Reply

  

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



Live Help!

Be Social

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

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month