Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto Install 2

Status
Not open for further replies.

Ovatvvon

Programmer
Feb 1, 2001
1,514
US
When I created a program, it needed an additional .ocx file with it and a icon. To send all three files (including the .exe), how can I create an "install" program to set all three files in the same directory somewhere on the users computers? -Ovatvvon :-Q
 
pretty simple stuff.
as long as the 3 files are in the same directory as the "install" file here is all you need.

Private Sub Command1_Click()
Dim fso As New FileSystemObject

If Not (fso.FolderExists(myfolderpath)) Then
fso.CreateFolder myfolderpath
End If
fso.CopyFile App.Path & "*.*", myfolderpath, True

End Sub

You check to see if the directory exists...if it doesn't then you create it.
then you copy the files into it.
 
Is that an extra .exe with the other 3 files? Or can all three be contained in 1 exe that will install it into the system? I thought I've seen .exe files that extract many other files from themselves and install them into the system.

But also, if it could do that, couldn't it just attach the ocx and icon files with the actual exe program? -Ovatvvon :-Q
 
If you want to create an installation program that will install your app and any dependant files you should look into the Package and deployment wizard. It will create a setup file and automatically include all files that you need and place them where you want on the other computer. Thanks and Good Luck!

zemp
 
Yeah, that's what I'm getting at. I don't see it, guess I'm blind, lol.

Where is the wizard located it located in the VB application? -Ovatvvon :-Q
 
you will find it under Visual Studio 6.0 tools.

The only problem that I have using it is it installs everything you need. So if for example you know that the client will have Office 97 installed and you use a reference to the Word8 Object, you don't need to install all of word8. The installer program assumes the client has nothing and installs and registers all of the relevant files.

You can take a 500 K ap and turn it into a 10 Meg install file that way.
 
Under the tools menu, my list reads as follows:

1) Add Procedure
2) Procedure Attributes
3) Menu Editor
4) Options
5) Publish (which contains "source files", and "build outputs")

But I don't have a "Package and deployment wizard" or anything of similar like another wizard.

I'm running VB6 with SP5. Is there maybe a difference between my version and yours? Would it be somewhere else on mine?
-Ovatvvon :-Q
 

The P&D wizard is a seperate program. Once you have all the code done you will need to make an exe file (under file menu), then exit the design environment. Then goto your start button and...

Microsoft Visual Studio 6.0>Microsoft Visual Studio 6.0 Tools>Package & Deployment Wizard

Good Luck

 
There are many freeware applications that will create a setup program for your project.
VB Package & Deployment Wizard
Visual Studio Installer (Download from Microsoft site)
InnoSetup ( )
etc....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top