Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2004
    Posts
    3

    copying file from cd

    Hi - I am trialing Setup Factory and am stuck on how to have a file copied from a cd where the setup.exe will be run from.
    More specifically, the exe will be autorun from a cd and on the cd there is an additional file which needs to be copied to the Windows directory before the install begins.
    I tried entering a copy command in the Before Install action section using no path - just the file name - thinking that setup would copy the file from its current location but it didnt work.
    And adding the file to the source files is not an option.
    Any help would be most appreciated - this seems like a great program.

    regards.

    kerri

  2. #2
    Join Date
    Jul 2001
    Location
    Indigo Rose Software
    Posts
    1,834
    Hi Kerri,

    Your best bet is to use an "Install File" action that can be found in the "Files" category of the actions list. However the Copy Files action would work too if you wanted to use that.

    When referencing that file, you will need to use one of the built-in variables that will expand to the correct drive letter of the CD-ROM. If both the install executable and the file you want installed are in the root of the CD, you can use the variable %SrcDrv%. For example:

    %SrcDrv%\myfile.txt

    There is also one available for the directory where the install is run, that being %SrcDir%. You could use either of these in this situation.

    Hope that helps.
    Darryl
    Indigo Rose Corporation

    Product Guides: AMS80 | SUF9 | TU30 | VP30 |MSIFACT |DeltaMAX

  3. #3
    Join Date
    Jan 2004
    Posts
    3
    Hi, yes both the setup.exe and the file are in the same place - root of the cd. I will try your suggestion when i get home and let you know but do I need to do this in the CD-ROM tab? which I am not too clear about. thanks for your help!
    kerri

  4. #4
    Join Date
    Jul 2001
    Location
    Indigo Rose Software
    Posts
    1,834
    Hi Kerri,

    In this case, you do not need to add the file to the CD-ROM tab in Setup Factory. The CD-ROM tab is used to install files that exist outside of the installation executable archive, however they are installed along with the other files.

    Since in your case, you need that file to be installed before any other files are installed, you are better off using the Install File action so you can perform the file install at any point before the other files are actually installed.

    Hope that helps.
    Darryl
    Indigo Rose Corporation

    Product Guides: AMS80 | SUF9 | TU30 | VP30 |MSIFACT |DeltaMAX

  5. #5
    Join Date
    Jan 2004
    Posts
    3
    It worked! thanks! I used %SrcDrv%\myfile.exe
    and used Install action as you mentioned.
    However, being new at this, I don't see the difference between COPY and INSTALL. I tried both actions, and they both did the same - put the file in the destination folder I specified.
    But whatever, problem solved and thanks again!
    kerri

  6. #6
    Join Date
    Jul 2001
    Location
    Indigo Rose Software
    Posts
    1,834
    Basically the difference between the two actions is that the Install File action provides the overwrite options, the create backup ability and to specify the file as a shared file. The copy files action doesn't contain this type of control.

    Hope that answers your question.
    Darryl
    Indigo Rose Corporation

    Product Guides: AMS80 | SUF9 | TU30 | VP30 |MSIFACT |DeltaMAX

Posting Permissions

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