• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 201
  • Last Modified:

exporting a VB.NET program

Hi
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
0
psychdrum
Asked:
psychdrum
  • 3
  • 3
  • 2
  • +2
3 Solutions
 
LacutahCommented:
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
0
 
carl-Commented:
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"
next
  "Create a setup for a Windows Application"
next
  "Primary Output from WindowsApplication1"
next
next
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.

0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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?
Leib
0
 
The_BiochemistCommented:
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:

http://msdn.microsoft.com/vstudio/downloads/tools/bootstrapper/

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

http://www.microsoft.com/downloads/details.aspx?FamilyID=262d25e3-f589-4842-8157-034d1e7cf3a3&DisplayLang=en
0
 
The_BiochemistCommented:
Carl-

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!
0
 
carl-Commented:
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?
0
 
The_BiochemistCommented:
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.

0
 
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!
Leib
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 3
  • 3
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now