CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 1999
    Posts
    1

    Can somebody help me in creating this exe

    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 [email protected]


    Atul



  2. #2
    Join Date
    Feb 2000
    Location
    South Carolina, US
    Posts
    36

    Re: Can somebody help me in creating this exe

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured