Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2007
    Posts
    2

    How to copy 4 folders contained on the installation CD ?

    Dear all,
    I have the following question/problem:

    I have created an installation using SF7, it works really fine.

    Now I´m going to distribute this installation "setup.exe" on a CD to all my employees, BUT, each CD is personalized with 4 folders containing different files on each CD folder.

    This is my scenario:

    "SETUP.EXE" installs my program on "C:\AAA" (on all my employees computers)
    but now the 4 folders of each cd has to be copied also in "C:\AAA".

    I don´t know if my explanation is clear, but it´s a bit hard to explain, in short:

    How to make a setup program that after the installation is done it´s able to copy 4 folders from the inst. CD to the application folder?


    I´ll be very gratefull if you can help me !.

    Best Regards

    Sweden30

    NOTE: I need to do this because the files contained on each of those 4 folders are different for every single employee.

  2. #2
    Join Date
    Jun 2005
    Posts
    470
    File.Copy action can copy multiple files at once

    Code:
    --create a folder on the target system to put the files into
    trgDir = SessionVar.Expand("%AppFolder%") .. "\\dir1";
    Folder.Create (trgDir);
    
    --files to copy, assumes they are in a folder named dir1 under the CD root
    srcFiles = SessionVar.Expand("%SourceDrive%") .. "\\dir1\\*.*";
    
    File.Copy(srcFiles, trgDir, true, true, false, true, nil);
    repeat the above 4 times to copy everything

  3. #3
    Join Date
    Sep 2007
    Posts
    2
    Thank you very much PWW,
    I will try it rightnow.

    Best regards

    Sweden30

    Quote Originally Posted by pww View Post
    File.Copy action can copy multiple files at once

    Code:
    --create a folder on the target system to put the files into
    trgDir = SessionVar.Expand("%AppFolder%") .. "\\dir1";
    Folder.Create (trgDir);
    
    --files to copy, assumes they are in a folder named dir1 under the CD root
    srcFiles = SessionVar.Expand("%SourceDrive%") .. "\\dir1\\*.*";
    
    File.Copy(srcFiles, trgDir, true, true, false, true, nil);
    repeat the above 4 times to copy everything

Similar Threads

  1. Setup Factory and VS 2005
    By vazir786 in forum Setup Factory 7.0
    Replies: 4
    Last Post: 01-13-2006, 08:47 PM
  2. Copy EVERYTHING please
    By Bruce in forum AutoPlay Media Studio 5.0
    Replies: 7
    Last Post: 08-25-2005, 12:05 AM
  3. Error in creating folders during installation
    By Alok K Goyal in forum Setup Factory 7.0
    Replies: 2
    Last Post: 06-01-2005, 11:46 AM
  4. 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
  5. INFO: Finding Shell Folders in the Registry
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-10-2002, 03:52 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