Solved

Noob VB 6.0 Question

Posted on 2004-10-15
16
226 Views
Last Modified: 2010-04-17
I made a small program in VB 6.0

I have told it to make EXE and it did.  I can run it just fine.

Want to take it to a friends house, but he doesn't have VB.

What do I need to download and install on his computer to get my program to run?

Thanks
0
Comment
Question by:mrchaos101
  • 6
  • 3
  • 3
  • +2
16 Comments
 
LVL 6

Expert Comment

by:bkthompson2112
ID: 12319954
You can use the Package and Deployment wizard that comes w/ vb6.

Or, better yet, use the free Inno Setup.  You can get it here: http://www.jrsoftware.org/isinfo.php
0
 
LVL 6

Expert Comment

by:bkthompson2112
ID: 12319997
Using either of these, you then create, on your computer, a setup package
that contains all the files necessary for your program.

You then take the setup package to your friends and install it there.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 12320033
If you don't have any dependencies other then the basic VB runtime file, you can download and run VBrun60SP6.exe (from http://support.microsoft.com/default.aspx?scid=kb;en-us;290887 ) and then just copy your exe on his PC.
0
How our DevOps Team Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

 
LVL 1

Author Comment

by:mrchaos101
ID: 12320150
With that  http://www.jrsoftware.org/isinfo.php  installer program  I like this it make it look nice...

But I do think I need the VB Runtime files...  How would I get this installer to install those runtime files as well?
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 12320186
>>But I do think I need the VB Runtime files

It is an absolute requirement!

Read Inno setup pages. It as all you need to create packages for VB6 application.
0
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 12320198
when you build the Setup package, ALL of the necessary support files will be included, so that all you need to do is to execute the setup on the target computer.

AW
0
 
LVL 1

Author Comment

by:mrchaos101
ID: 12320274
WOW hehe

SO I just run that setup Wizzard and then that is it..... ok one last question.

I have a datadir folder  I need that folder and teh db file in it... it also...

So when it says OTHER FILES section.. Do I just tag that folder or do I tag that folder and the files in it?
0
 
LVL 44

Accepted Solution

by:
Arthur_Wood earned 500 total points
ID: 12320438
actually, you will need to READ the INNO Setup pages, in particualr the FAQ section on Installing the VB Runtime files, found at:

http://www.jrsoftware.org/isfaq.php#vb

you can download the necessary files from their site, or directly from Microsoft's site at:

http://www.microsoft.com/downloads/details.aspx?FamilyId=7B9BA261-7A9C-43E7-9117-F673077FFB3C&displaylang=en

you can either include these files with YOUR setup or you can download them onto your friend's computer, and install them there.  Your choice.

AW
0
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 12320498
in my personal opinion, I would go with the Package and Deployment Wizard that is built into Visual Studio (VB6) first, as that will automatically include all of the necessary files (and you can add your additional files as needed), using the same versions as you used when you developed the program.  YOu may or may NOT have the IDENTICAL versions to the ones you get from either the INNO site, or from Microsoft, and if you do not include the IDENTICAL versions, you may get installation errors, but building the installation files from YOUR PC, you are assured that the versions are 'correct' - if not 'current', they match (heck, they ARE) the versions you used to build the progrom in the first place.

You can then move to INNO if the PDW causes problems.  This is just my opinion, as I have never had problems with the PDW in Visual Studio.

AW
0
 
LVL 6

Expert Comment

by:bkthompson2112
ID: 12320770
Agreed.  PDW gets a lot of flack, but I've never had problems w/ it.
0
 
LVL 1

Author Comment

by:mrchaos101
ID: 12321486
Ok one probelm..

I the folder  Datadir

I need it ot MAKE that folder and then put the files that were in it.. .in it.

I click the ADD DIR and tag it... but it just copies the files and then puts then in the root install dir.

Any ideas?
0
 
LVL 1

Author Comment

by:mrchaos101
ID: 12321666
Ok here is the line I think:

Source: "C:\Documents and Settings\t.berry\Desktop\Tickle\datdir\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs

It is copying  all the files in my datadir  then when it goes to to where I tell it to install the app.. it is putting those files in \app

What do I need to changet to get it to copy those files and then put it in app\datadir ?

thanks
0
 
LVL 2

Expert Comment

by:Dudge669
ID: 12321687
You should be able to change the destdir for that line to "{app}\datadir\"
0
 
LVL 1

Author Comment

by:mrchaos101
ID: 12321733
Bah I forgot the last \  hehe

OK...

Now if i save this it saves as a .iss

not an exe or . bat

I assume that If I save that .iss to a cd  and take it over to my friends we can then do the install?
0
 
LVL 1

Author Comment

by:mrchaos101
ID: 12338635
Arthur,

Thanks for the help. I will award you the points.  I would like to ask one last question though...

Were in VB do I start the Pacakge and Deployment wizzard?

Can you list steps in doing this for me?  

Thanks

Tim
0
 
LVL 2

Expert Comment

by:Dudge669
ID: 12338797
Not sure about you but here is the command to launch the PDW on my machine...
"C:\Program Files\Microsoft Visual Studio\Vb98\Wizards\PDWizard\Pdcmdln.exe"

And you should be prompted about extra files/folders to include in the package and not have to edit anything.  If you aren't able to specify the correct folder during the packaging process, you can just edit the SETUP.LST file that is produced by the wizard to put the extra files and folders in place. There is lots of good info out there on adding simple things to these files if you do a Google search.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question