Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2006
    Posts
    4

    Problem with run-time referencing a folder

    I would like to SF7 copy all files being during run-time in a particular, source folder. I have tried using external folder reference feature, but it looks like SF7 remembers all files in the referenced folder during adding operation. And during a run-time it only tries to copy “remembered” files. Any ideas how to achieve my goal?

  2. #2
    Join Date
    Jan 2002
    Location
    Nashville TN
    Posts
    328
    Have you tried File.Copy???

  3. #3
    Join Date
    Feb 2006
    Posts
    4
    Have you tried File.Copy???
    First I would like to make sure that there is no way to do this without scripting (because of problems (?) with showing required space, progress, etc.). Maybe there is some way to "update" the (native SF) file list based on the run-time situation?

  4. #4
    Join Date
    Jan 2002
    Location
    Nashville TN
    Posts
    328
    These files are they already on the users system??? Or are you supplying them and if so how? I think you might be stuck with either using File.Copy or external folder, you are right the pro and con is file size vs remembering the files. Now you might use %SpaceRequired%, you could do a File.Search and check the files size of each file, adding it to a the %SpaceRequired% varable. This will take some time to process but should do the trick, then use the File.Copy. to copy your files.

  5. #5
    Join Date
    Feb 2006
    Posts
    4
    These files are they already on the users system??? Or are you supplying them and if so how?
    The files are distributed along with the installer (in a separate sub-dir).

    I think you might be stuck with either using File.Copy or external folder, you are right the pro and con is file size vs remembering the files.
    External folder does not suit my needs because SF remembers the files supplied during creating the setup. I would like to add files after generating a setup.exe.

    Now you might use %SpaceRequired%, you could do a File.Search and check the files size of each file, adding it to a %SpaceRequired% varable. This will take some time to process but should do the trick, then use the File.Copy. to copy your files.
    Yes I was thinking about similar solution, but I think that SF uses _SpaceRequired rather than %SpaceRequired%. It looks like that I need to do some scripting which will copy files "beyond the native setup files" and updates _SpaceRequired accordingly. Anyway – thanks for help.

  6. #6
    Join Date
    Mar 2005
    Location
    WA 'wait a while' - Australia
    Posts
    872
    you could use the File.Install action in place of a File.Copy action

    --gives you more options

    might also be worth a look at:

    result = SetupData.GetFileList();

    and other related actions..
    Last edited by Eagle; 02-14-2006 at 07:11 PM.

  7. #7
    Join Date
    Feb 2006
    Posts
    4
    Thanks for a tip. But SetupData.GetFileList() is not enough for me (it gives only files which has been known during making a setup; I need to copy files which has been added after creating setup.exe). I made it using pure scripting (File.Find(...), etc.) - it was not as hard as I thought

Similar Threads

  1. cookies
    By goukilord10 in forum AutoPlay Media Studio 5.0
    Replies: 6
    Last Post: 05-20-2005, 04:08 PM
  2. Run Once a day ONLY Problem
    By morci in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 03-04-2004, 06:53 PM
  3. access 2000 run time
    By jennersc in forum AutoPlay Media Studio 4.0
    Replies: 0
    Last Post: 07-31-2003, 12:09 PM
  4. INFO: Tips for Debugging Action Lists in AutoPlay Media Studio 4.0
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-03-2002, 08:38 AM
  5. 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

Posting Permissions

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