Changing the Source Directory Dynamically During Compile
Windows Installer Editor Reference
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
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:
Frequently change the location of source files.
Frequently move the installation to other computers.
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.
Example: Enter SourceFiles in the Name field and enter C:\Development in the
Value field. The directory path you enter here can be changed by command-
line options during compile.
To point source directories to the value of the property
1.
Select Tools menu > Convert Source Paths.
The Convert Source Paths dialog box appears.
on page 306
Working With Source Paths
309
Need help?
Do you have a question about the WINDOWS INSTALLER EDITOR 7.0 SP2 - REFERENCE FOR WISE INSTALLATION EXPRESS V1.0 and is the answer not in the manual?
Questions and answers