Click to See Complete Forum and Search --> : Can somebody help me in creating this exe


gula0012
December 16th, 1999, 04:48 AM
Can some body help me in creating an exe (setup.exe). Actually what I want is,
I have an executable file (body.exe). If I have to run body.exe I should have
Quick Time 3.0 or upper version (Installation files of Quick Time is already there in the same directory with a separate folder say qtw). For this what I need is an executable which can :

1. Automatically search the hard disk for qtim32.dll or search the registry for
Quick Time. If it is installed go ahead with body.exe.

2. If Quick Time is not installed, a dialog box should appear and ask for
installation of quick time and after that should start body.exe automatically.

If someone can send me the VB code for this. I will be very thankful to him.

My e-mail address is atulgulati@hotmail.com


Atul

Weasel
February 9th, 2000, 07:41 AM
You'll have to write some code, but for finding a file on a Win32 (or DOS) system.

Shell "\command.com /c DIR c:\qtim32.dll /s > \my.log"

This will search the C: drive for qtim32.dll.
Take out the C: to make it search the current drive. It also assumes command.com can be found in the root directory of the current drive.
When it's done check my.log and make sure there's no file not found in it. If so the file needs installation.
The messageBox will be something like:
foo = msgbox("Install QT?",vbYesNo,"Title")
Check foo to see if it is yes or no. If yes
Shell("BODY.EXE")
Good luck