Tuesday, November 19, 2013

Duplicating files using InstallShield

If you work with .NET applications, you may already be familiar with the need to duplicate .config files into multiple directories.

Fortunately, if you have the need to duplicate files (such as .config files), you can do that pretty easily using InstallShield.

On the down side, InstallShield does not provide a direct User Interface in Installation Designer to accomplish this, but rather, you must manually edit the DuplicateFile table in DirectEditor.

  1. Open up Direct Editor
  2. Click on the DuplicateFile table
  3. Click on the New button to add a new record to the DuplicateFile table
  4. At a minimum, enter the FileKey, Component and File values for the record.  The DestName and DestFolder fields are optional if you want to rename the file or transfer the file to a different folder that does not currently belong to an existing component within InstallShield.

Now when your InstallShield package runs, it will read the values out of the DuplicateFile table and appropriately duplicate the files on the file system for you!

1 comment:

  1. In this condition I used DuplicateFilesDeleter effectively. This software will let you get a huge amount of space for your use by deleting the files that were at multiple locations.