Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 14 of 14
  1. #1
    Join Date
    Jan 2006
    Posts
    21

    can Setup Factory run Batch files?

    like the title says, can it run batch files? if so, how?

  2. #2
    Join Date
    Jan 2000
    Posts
    2,002
    Use the File.Open action.

  3. #3
    Join Date
    Jan 2006
    Posts
    21
    will that run the batch file or just open it?

  4. #4
    Join Date
    Jan 2000
    Posts
    2,002
    It should run it. It does an Open shell verb on it which means run it for a batch file.

  5. #5
    Join Date
    Jan 2006
    Posts
    21
    what about in SF6? I have both versions, but I have it in 6 right now.... do I need to bring it over into SF7?

  6. #6
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    In 6.0 use Actions -> Open/Close Programs -> Open Document.

    Adam Kapilik

  7. #7
    Join Date
    Mar 2005
    Location
    WA 'wait a while' - Australia
    Posts
    872
    For SUF70:

    please correct me if required:

    File.Open does not wait for a batch file to complete.

    File.Run gives much more control (eg the 'wait' parameter)

  8. #8
    Join Date
    Jan 2006
    Posts
    21
    I was trying to find a way to make it wait also... I couldn't even find a winwait or anything.... I'm trying to use this as a wrapper and I'm deleteing the files at the end of the installation.... my only other option that I can think of is to just have the files delete at reboot....

    ideas?

  9. #9
    Join Date
    Mar 2005
    Location
    WA 'wait a while' - Australia
    Posts
    872
    have a look into the batch command START /WAIT

    at a command prompt type START /?

    hth

    you could also run a .bat or .cmd file at the very end of 'on shutdown' event
    but need to cover if a reboot is needed.

    also have a look inti the PING /? command
    (if set output to null) >nul this can be used to pause a batch file for n seconds)
    --maybe NT only for this one though.

    have a look here also:
    http://www.indigorose.com/forums/showthread.php?t=16965


    hth
    Last edited by Eagle; 09-14-2006 at 02:13 PM.

  10. #10
    Join Date
    Jan 2006
    Posts
    21
    the batch file waits... the problem is the package will continue to run and will complete way before the batch file does.... and the end of the package I have it delete all of the files that the batch file is using.

  11. #11
    Join Date
    Mar 2005
    Location
    WA 'wait a while' - Australia
    Posts
    872
    Yep, the trick is to make actions wait untill the .bat has fully exited ..

    personally, if you have SUF70 - if practical for you ...

    convert Suf6 project-s to SUF70 - opens up many more Possibilities as we know.

    you will be able to handle batch files with more power..which it seems is what you need for this one
    Last edited by Eagle; 09-14-2006 at 02:25 PM.

  12. #12
    Join Date
    Jan 2006
    Posts
    21
    Quote Originally Posted by Adam View Post
    In 6.0 use Actions -> Open/Close Programs -> Open Document.

    Adam Kapilik
    ok, I tried doing the open document and nothing.... I verified that that batch file is fine even after placed in the proper directory.... are you sure open document will execute a batch file?

  13. #13
    Join Date
    Feb 2008
    Posts
    5
    Hi,
    I'm trying this for hours and I can't get it to work. After my setup installed the files a specific batch file needs to be started from the installation folder. So I set the "On Shutdown" code to this:

    File.Open("%AppFolder%\\unpack.bat");

    My problem is, that the batch will be started from the Tempfolder instead of the installation folder. How can I get this to work? :(

  14. #14
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728
    Try setting the working folder:

    File.Open("%AppFolder%\\unpack.bat", SessionVar.Expand("%AppFolder%"));
    --[[ Indigo Rose Software Developer ]]

Similar Threads

  1. New Features in Setup Factory 7.0
    By Ted Sullivan in forum Setup Factory 7.0
    Replies: 0
    Last Post: 08-12-2004, 12:13 PM
  2. HOWTO: Add DirectX 8.1 Support to your Setup Factory 6.0 Installation
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-30-2002, 01:55 PM
  3. HOWTO: Distribute an AutoPlay Application with Setup Factory 6.0
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-25-2002, 02:33 PM
  4. FAQ: Setup Factory 5.0 Frequently Asked Questions
    By Support in forum Setup Factory 5.0
    Replies: 0
    Last Post: 10-10-2002, 09:50 AM
  5. Setup Factory 6.0.1.0 Update Available
    By Brett in forum Setup Factory 6.0
    Replies: 0
    Last Post: 04-26-2002, 03:51 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