Discussion Locked

installing and run

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

after making .exe out of .vbp ,i am able to
run it on the same machine on which i
developed.i want to be able to run the .exe
on a different pc(windows OS)which does not have ms visual studio installed.how to step
by step.thanks in advance.this will help me a
lot.

4 replies

by peyison

First, please rate my answer to your question on how to compile an exe from VB. :)

The answer to this question is to use the Package and Deployment Wizard (PDW) that ships with VB. The PDW will walk you through the process of creating a setup program. It will examine your project and include any components used. Note - it will only automatically include dlls and ocxs used by your app, not help files, database files, etc. You have to add these files yourself.

Start the PDW - there should be a short cut for it in your VB menu on the Start menu.

Select the .VBP for your project.

Press the Package button.

For Package Type select Standard Setup Package.

Select the folder to put the setup package files into.

From the Include Files dialog, you can see which files the wizard is going to include in the setup package. You can select additional files to include, or unselect files. Only unselect files if you are sure that they already exist on the PCs that you'll be installing this on.

You can select to create single or multiple cabs. Select multiple if you want to distribute on floppy disks, otherwise stay with single.

You can enter a title, and modify the Start menu items that will be created.

more to follow...

by peyison

From the Install Locations dialog, you can set where each file should be copied to. If you've added additional files to the files list, you can set their destinations here.

Next, you can set if you want any files to be flagged as shared. You can do this if you have other apps that will be using the same files. This prevents those files from being deleted if this app is uninstalled.

Next, name the script you've just created. The next time you run the PDW for this app, you can use this script.

There are some other dialogs that you might get depending on the your app.

When all is done, you have the setup files in the package directory you selected above. There will be at least three files (*.cab, setup.exe and setup.lst). You needto distribute all files in the folder.

Hope this helps.

This discussion is closed to new replies.