Copying Files on Install

You can copy files from the installation media (CD/DVD) to the end user's machine when they install your library by doing the following:

  1. Place all files in a folder named "copy"
  2. Place the copy folder with your files on the installation media off the root of the install (where you locate setup.exe)
  3. Configure the copyfile.ini file to reference the files you want to copy
  4. Place the copyfile.ini file on the installation media off the root of the install (as a sibling to the copy folder)

The process of copying files from the installation media to your end user's machine, as well as the settings in the copyfile.ini file are the same for an Intranet Publisher, Offline Publisher, or Solo Client installation.

CopyFile.ini File Settings

To configure the copyfile.ini file and copy the appropriate files from the copy folder on the installation media to your end user's machine, you must follow this layout:

[]
file1.txt=
file2.txt=

[file1.txt]
TargetDir=c:\documents

[file2.dll]
TargetDir=%TARGETDIR%\bin
Registered=yes

The copyfile.ini file has these options:

Table 1.  Options for the copyfile.ini File
Item Description
fileN.txt Specifies the name (and extension) of the file you want to copy to your end user's machine during installation. The file1.txt and file2.txt are merely placeholders. You will need to replace these values with the actually names and extensions of the files you want to copy. You can include as many file names as needed.
TargetDir Specifies the target directory to which the install copies the file(s) on your end user's machine. You can either hard code the path to a program or you can use any of the install shield replacement tags to dynamically resolve the correct directory.

You can copy each file to a different location on your end user's machine using these variables.
Registered Specify yes if you want the copied file to be self registered. The default is no.