exporting a VB.NET program

I am  new to VB.NET. I wrote a relatively simple program that I would like to use on other computers (that don’t have VB.NET installed).
I have a book that describes how to destribute applications and I followed instructions outlined there, but, alas, to no avail. I know that I need to create an .msi file and to do that I ran a setup project which should create a windows installer file (with a .msi extention)

Here is what I went so far.
File -->add project --> new project.
I named my project “Leib Program” and ran the setup wizard
At the end of this I expected to find Leib Program folder with the .msi file inside. The only folders that I found inside the “Leib program” folder with an empty “Debug” folder, and empty “Release” folder and a Leib Program file.

Please Help:)

Thanks in advance and best regards, Leib
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You will need to build your installer project, similar to how you have to build the program when you're programming.  The shortcut usally is [CTRL]-[SHIFT]-B
Right click "Solution" in the solution explorer window on your right hand side (with your vb project in it).
Click on "Add" then "New Project"
  Project Types="setup and Deployment Projects"
  Templates="Setup Wizard"
  "Create a setup for a Windows Application"
  "Primary Output from WindowsApplication1"
finish   (You will now have 1 solution with 2 projects in it. your Program project, and the setup project.)

Click on "Build" at the top.
  then click on "Build Setup1"

Now you will have a setup.exe setup1.msi and setup.ini in either your release or debug subdirectory.

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

psychdrumAuthor Commented:
Thanks Carl.
I have done that. The problem is that when I try to run the installation file on a different computer I get the following message; “This setup requires the .NET framework version 1.1.4322. Please install the .NET framework…”.
Am I doing something wrong?
This is probably because the target machine doesn't have the .net framework installed, which is needed to run the application.

You need to add the .net framework bootstrapper on your development machine which will in turn add the installation files for the .net framework into your installation for you. It is available with documentation at:


Hope this helps.
An easier way is to just download the .net framework on the target machine
dotnetfx.exe is located at


That is easier for a single machine but when you want to start distributing aplications to more than one user, or if the user only has a modem or no intenet access it is not as simple.

The bootstrapper also checks for the correct version of the .net framework on the target machine and if needed prompts them to install it all in the same user interface as the MS installer used by your application. It not only saves time but it is also slightly more professional than asking the user to have to go and download some random program that they have no idea about in order to make yours work!
Hey Bio,
  You make a very good point.  I keyed off of 'New to VB Programming' and went for easiest to get him up and running.  The bootstrapper was an interesting article which seems to do most of what InstallShield10 has been doing for me.
  Can you still make a relatively small setup package after you install the bootstrapper?
The bootstrapper to all intents and purposes only adds the dotnetfx.exe to your project, adds registry checking for the framework version and another installation popup window for the framework installation to your standard installer. So size wise the only increase is the addition of dotnetfx.exe... which you would have to distribute anyway just in case it isnt present as in this case.

i kinda glanced over the 'New to VB Programming' bit.

However the point Carl- and I are making is that you have to have the .net framework installed on the target machine, whether you do it by hand or via the bootstrapper is largely up to you, both suggestions lead to the same end point just different ways of looking at it.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
psychdrumAuthor Commented:
Thanks guys. I’ve installed the .net framework, and was then able to install my program. It wasn’t possible to install the bootstrapper. When I tried a message appeared that the .net framework was needed to complete the installation.

I do find it surprising that one needs to install the vb.net framework just to distribute a a few lines of code. In C all you need to do is make an executable and its ready to go.
Thanks for your help. Your comments were great!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.