Windows Installer Editor Reference
311
Working With Source Paths
Example: Suppose you add an installation to source control, along with source files A.dll,
B.txt, and C.jpg. Later, you add the file D.gif to the installation. To get D.gif into source
control follow the procedure below.
To add files to an installation in source control
1. Select Source Control menu > Add.
The Add to Source Control dialog box appears. This dialog box shows files in the
installation that have not yet been added to source control.
2. On the Add to Source Control dialog box, mark the check boxes of the files to add to
source control and click OK. Comments, which are stored as an attribute of the file
in the SCCS, are optional. If necessary, scroll to the right to view the Type and File
Path columns.
The Copy Files to New Location dialog box appears if any files are not in the
directory tree of the installation file. Because all files that you add to source control
must be in the same directory tree as the installation file, this dialog box prompts
you to move the files to a new directory under the installation file directory.
3. Mark the check boxes of the files to copy to the same directory tree as the
installation file. To change the new location, click Change Dir and select another
directory within the same directory tree.
The New Location column indicates the directory to which files will be copied. (Scroll
right to see the New Location column.) If you later edit a file, you must edit the file
that is copied to the new location, because that is the file that is compiled into the
installation.
Note
To avoid moving files, cancel this operation, remove this project from source control,
and move the installation file into the same directory tree as its source files.
4. Click OK.
After the installation is added to your SCCS, use the options in the Source Control menu
to coordinate file transactions between your computer and the SCCS. Whenever you add
files to the installation, repeat the process above to add them to your SCCS.
See also:
Using Source Control
on page 308
Adding an Installation to Source Control
on page 309
Checking Files Into Source Control
You can use this feature only if you’ve added the current installation to your source code
control system (SCCS).
If you check a file in, then try to work on it, you are prompted to save it with a new
name because the file is locked for changes unless it is checked out first.
To check files into source control
1. Select Source Control menu > Check In.
The Check In dialog box appears, listing all files that have previously been checked
out.