Solved

Noob VB 6.0 Question

Posted on 2004-10-15
16
224 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 69

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
 
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 69

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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This article will show, step by step, how to integrate R code into a R Sweave document
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now