Results 1 to 5 of 5

Thread: Sequential v Visual

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Posts
    65
    This problem wouldn't exist in a sequential language eg 'C'

    I have in install program written in VB which runs
    Setup.exe from the ODK for an Accrss Run-Time database.

    It alse copies a number of other files from the CD to PC.

    I then need to run another Setup.exe (to install SnapView.exe), which is in a different directory from the first one, but keep getting a clash:'Setup is already running'

    Obviosly VB can't differentiate between the two!

    I don't expect 'Do Events' to change things and have thought of putting a 'nothing' loop in between, which seems messy and anyway I'll never know how long to set it for.

    I considered continually checking for the exsistence of the last file from the first Setup.exe before running the second, but all of this seems crazy.

    There must be a way of halting subsequent execution of a program until a procedure has finished.

    Am I missing soimething?

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Try renaming the second Setup.exe file to something else.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Posts
    65
    renaming the 2nd setup file was the 1st thing I tried -
    didn't work.

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    If you use the Shell() function, it returns the ID of the new process/thread. If you loop through (using DoEvents) for this to exit, then move on, it should work.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Posts
    65
    Parksie
    I'm confused by
    'If you loop through (using DoEvents) for this to exit'
    Checking the ID looks good, but I need to understand the above
    Cheers

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