Microsoft KB Archive/193368

{|
 * width="100%"|

PRB: Custom Path Ignored When Feature is Advertised

 * }

Q193368

-

The information in this article applies to:


 * Microsoft Windows Installer, versions 1.0, 1.1
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Professional

-

SYMPTOMS
If you select a custom installation path for a feature, it is not honored if the feature is set to Advertised. The custom path selected for the feature is only used if the feature is installed at that time. When you install an advertised feature that has a custom path selected as the destination directory, the feature will be installed in its default location.

Note also that setting the INSTALLLOCATION property on the command line while advertising will behave in exactly the same manner:

msiexec /i Test.msi "INSTALLLOCATION=c:\test ADVERTISE=ALL" NOTE: If the parent feature is installed to a custom path, all advertised children will also be installed to that custom path when they are installed.

CAUSE
Currently there is no mechanism for remembering directories tied to a feature if no component tied to that feature is installed.

RESOLUTION
If you need a custom installation path for a feature, install the feature instead of advertising the feature. This ensures that the feature is installed to the correct location.

STATUS
This behavior is by design.

Steps to Reproduce Behavior

 * 1) Run an .msi file.
 * 2) On the SelectionDialog, browse through a parent feature.
 * 3) Change the target directory so that it points to a custom location.
 * 4) Set the InstallState of that parent feature to Advertised.

RESULT: The custom path is no longer visible and the browse option is disabled.

Additional query words:

Keywords : kbsetup kbOSWin2000 kbMSI _IK

Issue type : kbprb

Technology : kbwin2000AdvServ kbwin2000AdvServSearch kbwin2000Serv kbwin2000ServSearch kbwin2000Search kbwin2000ProSearch kbwin2000Pro kbWinISearch kbWinAdvServSearch kbWinI100