File.run does not wait

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • dana
    Forum Member
    • Jul 2006
    • 7

    File.run does not wait

    Hi,
    we ran into a strange problem after starting to use packages created with Installshield 2008 being launched by autoplay:

    we are using Autoplay 5.0 to run packages that were created with installshield 2008.
    we are running them with the file.run function that is supposed to wait for the installation to complete and then we check if the product is installed, if not we show an error massge. the problem is that we get the error massage before the installshield package finished (actually it's right in the beginning of the installation) we did not have this problem using the same project when running packages created with other installshield versions. this problem accures only when we burn the project and run it from a CD. we can't figure out what is wrong. the only thing that changed is the Installshield version that we use for our packages.
    any ideas?

    thanks,
    Dana
  • longedge
    Indigo Rose Customer
    • Aug 2003
    • 2498

    #2
    Have you got "WaitForReturn" set to true? e.g. -

    result = File.Run("AutoPlay\\Docs\\MyProg.exe", "", "", SW_SHOWNORMAL, true);

    Comment

    • dana
      Forum Member
      • Jul 2006
      • 7

      #3
      YES i do, but sill it doesn't wait.
      the weird thing is that it happens only when running from CD...

      Comment

      • longedge
        Indigo Rose Customer
        • Aug 2003
        • 2498

        #4
        In that case how about using a while loop incorporating some sort of test to see if the app has been installed. You could also set the page timer to act as a 'time-out' to break out after a reasonable time if things stall.

        I've no idea about why it suddenly started happening but on the basis that there's always more than one way to achieve your goal....
        Last edited by longedge; 02-25-2008, 06:13 AM.

        Comment

        Working...
        X