Indigo Rose Software

Go Back   Indigo Rose Software Forums > Old Versions > Setup Factory 7.0 Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 09-29-2004
brianlesker brianlesker is offline
Forum Member
 
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?
Reply With Quote
  #2  
Old 09-29-2004
JXBURNS's Avatar
JXBURNS JXBURNS is offline
Forum Member
 
Join Date: Apr 2001
Location: Haverhill, Suffolk, UK
Posts: 333
May I suggest you use the ADD ACTION Wizard which will explain all the parameters for you.

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

John
Reply With Quote
  #3  
Old 09-29-2004
brianlesker brianlesker is offline
Forum Member
 
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 07:13 AM.
Reply With Quote
  #4  
Old 09-29-2004
JXBURNS's Avatar
JXBURNS JXBURNS is offline
Forum Member
 
Join Date: Apr 2001
Location: Haverhill, Suffolk, UK
Posts: 333
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
Reply With Quote
  #5  
Old 09-29-2004
Mark's Avatar
Mark Mark is offline
Indigo Rose Staff Member
 
Join Date: Jun 2000
Location: Indigo Rose Software
Posts: 1,773
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
Reply With Quote
  #6  
Old 09-29-2004
JXBURNS's Avatar
JXBURNS JXBURNS is offline
Forum Member
 
Join Date: Apr 2001
Location: Haverhill, Suffolk, UK
Posts: 333
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
Reply With Quote
  #7  
Old 09-29-2004
Mark's Avatar
Mark Mark is offline
Indigo Rose Staff Member
 
Join Date: Jun 2000
Location: Indigo Rose Software
Posts: 1,773
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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking If a Particular Program is Running Desmond AutoPlay Media Studio 5.0 Examples 0 10-03-2003 02:31 PM
Running a Program and Waiting for it to Finish Desmond AutoPlay Media Studio 5.0 Examples 0 09-26-2003 10:26 AM
HOWTO: Make a Program Run Every Time the System Starts Support Setup Factory 6.0 Knowledge Base 0 10-01-2002 10:44 AM
Why won't WaitForSingleObject() wait for patch to finish running? scs0 Visual Patch 1.0 1 01-14-2002 04:10 PM


All times are GMT -6. The time now is 07:08 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software