Windows Installer Editor Reference
362
Working With Source Paths
encountering errors. Instead of a path such as Y:\Application.ini, a file has a fully
qualified path such as \\Server\Development\Application\Application.ini.
To convert to UNC-based source file paths
1. Select Tools menu > Convert Source Paths.
In Visual Studio: Project menu > Convert Source Paths.
The Convert Source Paths dialog box appears.
2. Click Change All Paths to UNC.
This button is only available if at least one of the paths in the installation is from a
mapped network drive.
The Change Source Directories to column displays the new paths. Only the source
paths that are from mapped drives are changed to UNC.
3. To convert all directories you add subsequently to UNC paths, select UNC Paths
from Path Type.
4. Click OK.
A one-time conversion of all the network paths in the installation is performed. Paths to
files that are on local drives are not converted. However, if the local drive is shared, it is
converted to the shared drive name.
See also:
Source Paths in an Installation
on page 359
Changing the Source Directory Dynamically During Compile
¾
Not available in the Visual Studio integrated editor.
You can define a source directory as a property, so you can easily reassign the location
of source files when you compile a .WSI or .MSI. Use this feature if you:
z
Frequently change the location of source files.
z
Frequently move the installation to other computers.
z
Need to point to a different source directory each time you compile.
Use the procedures below to change the source directory dynamically during compile.
To create a property to hold the source directory value
1. Select Setup Editor > Product tab and click the Properties icon in the left pane.
2. In the right pane, select New > Property from the right-click menu.
The Property Details dialog box appears.
3. Complete the dialog box and click OK:
Name
Enter a new property name.
Value
Enter the directory path that currently contains the source files.