First time making program

bigalexe

New member
Joined
Oct 8, 2006
Messages
2
Programming Experience
Beginner
ok i have my program written and i want to compile it. However i want to compile it so that it just runs as is. The program i am using (Microsft Visual Basic 2005 Express) makes a setup and like 10 other files when i click build. How do i just make the one file into a .exe and so i can place that on a CD. Then have a batch script open that file.
 

Nemesis09

Active member
Joined
Jul 25, 2006
Messages
31
Location
NSW, Australia
Programming Experience
Beginner
Firstly, what type of "solution"/"project" is it?

If its just a simple WinForms .exe then you can just go to

"Build" --> "Build Solution"

and it will compile the exe and save it in the folder shown at

"Build Output Path:"

box on the

"Compile"

tab of the

"Application Properties"

page.

Then just go to that path and you'll find your .exe. It will be saved as the project name. i.e. "Project1.exe"
 

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,439
Location
Norway
Programming Experience
10+
Deploying only the compiled App.exe would in the simplest cases work, but it is better practice to always create setup package. It is a clean and familiar method for users where they don't have to create the application folder/copy the file/make shortcuts themselves, and keeping track of all what was done, and also automates uninstalls/upgrades. What if your application produces data files and user just places the exe on desktop? What a mess that would make.

VB2005 Express doesn't make a setup when you 'Build', it just builds the current application to the output path.

To make setup click 'Publish' or go Application Properties to Publish tab, which creates the ClickOnce deployment setup. This result in several files needed for install. To make a single file (for download and local install) there is the possibility to zip them as self-extractable.

Another option is to find and employ a MSI installer as your deployment tool, these often produce a single setupApp.exe. There exist one in VB2005 Professional and some standalones if you search web. MSI was also the only option in earlier Visual Studio versions before ClickOnce technology was invented.
 
Top Bottom