Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2003
    Posts
    49

    howto lett SF7 wait till an executed program finished with running

    howto lett SF7 wait till an executed program finished with running?

  2. #2
    Join Date
    Apr 2001
    Location
    Haverhill, Suffolk, UK
    Posts
    360
    May I suggest you use the ADD ACTION Wizard which will explain all the parameters for you.

    File.Run("\\MyProg.exe", "", "", SW_SHOWNORMAL, true);
    true at the end tells the system to wait.

    John

  3. #3
    Join Date
    Oct 2003
    Posts
    49
    i have the following code:

    On Post Install:
    File.Run("imp", "impulse/"..strImpPassNew.."@"..strDatabaseNaam.." file="..strInstallatieDir.."\handleiding.dmp FULL=Y IGNORE=Y LOG="..strInstallatieDir.."\HelpUpdate.log", strInstallatieDir, SW_SHOWNORMAL);

    But while this one is running, it shows after installing screens?!?

    Whoops i c the fault already!! SORRY! :(
    Last edited by brianlesker; 09-29-2004 at 06:13 AM.

  4. #4
    Join Date
    Apr 2001
    Location
    Haverhill, Suffolk, UK
    Posts
    360
    It will do as you have the window state set to SW_NORMAL. If you do not want it being seen in a normal window set to SW_MINIMIZE.

    If you want it to run after completion of the setup completely then you need to insert the code into the ONSHUTDOWN method.

    John

  5. #5
    Join Date
    Jun 2000
    Location
    Indigo Rose Software
    Posts
    1,943
    Quote Originally Posted by brianlesker
    On Post Install:
    File.Run("imp", "impulse/"..strImpPassNew.."@"..strDatabaseNaam.." file="..strInstallatieDir.."\handleiding.dmp FULL=Y IGNORE=Y LOG="..strInstallatieDir.."\HelpUpdate.log", strInstallatieDir, SW_SHOWNORMAL);
    Just to make sure, the reason that this isn't working is because you are missing the final parameter boolean WaitForReturn (which defaults to false). If you add a ,
    Code:
    , true);
    to the end of the action Setup Factory will wait.

    Also remember that the backslash "\" needs to be escaped when used in strings. So if I wanted to specify the following file path: C:\Program Files\Setup Factory 7.0\SUF70Design.exe in a string it would have to look like this:

    "C:\\Program Files\\Setup Factory 7.0\\SUF70Design.exe"
    MSI Factory The Next Generation Intelligent Setup Builder

  6. #6
    Join Date
    Apr 2001
    Location
    Haverhill, Suffolk, UK
    Posts
    360
    Mark,

    You expressed it better than I could re setting the last parameter to True.

    HOWEVER re-reading the docs, and specifically the parameter defaults, (in theory) it is set to true by default. I think this may be an error as appears it is false by default which is same as when the Wizard is used.

    John

  7. #7
    Join Date
    Jun 2000
    Location
    Indigo Rose Software
    Posts
    1,943
    Hi JXBURNS,

    Nice catch! You are right it appears as though the help file is incorrectly lists the default as true, when it should be false.

    I have already made a note of it!
    MSI Factory The Next Generation Intelligent Setup Builder

Similar Threads

  1. Checking If a Particular Program is Running
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 10-03-2003, 01:31 PM
  2. Running a Program and Waiting for it to Finish
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-26-2003, 09:26 AM
  3. HOWTO: Make a Program Run Every Time the System Starts
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-01-2002, 09:44 AM
  4. Replies: 1
    Last Post: 01-14-2002, 03:10 PM

Posting Permissions

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