Installing Files of the Same Name

InstallShield 2016

Project • This information applies to the following project types:

Basic MSI
InstallScript MSI
Merge Module

The Source Location setting for a component identifies a subfolder where the component’s files will be stored in the source disk images, if the component’s files are not compressed. The component’s files will be copied to this subfolder in your release image.

The Source Location setting does not require a value, and in most cases, it can be left blank. If you enter a value, it must be a valid Windows folder name.

One instance where the Source Location setting could be used is when you are creating an installation that contains more than one language. In this scenario, you can have multiple files with the same name. You can create a component for each language and configure the Source Location setting as needed for each one. When you use the Source Location setting, any file with the same name can be copied onto the disk in two different locations, without the risk of being overwritten.

For example, create two components called German and English. For the first component’s Source Location setting, enter GermanVersion. For the second component’s Source Location setting, enter EnglishVersion. Create two files called Test.txt, giving them slightly different contents. Assign each file to a component.

When you build your installation with uncompressed files, two separate folders on the disk images will be created, one called GermanVersion and one called EnglishVersion. Separate versions of Test.txt will be copied to each of these folders, but neither copy will be overwritten.

Note • The Source Location setting is not the same as the destination location. While it is conceivable that you might want to copy both versions of the file to the end user’s machine, it is more likely that you would want to filter the files by language.

See Also