有没有办法在wix中获取目录的实际路径?

Is there a way to get directory's actual path in wix?

我想将 属性 绑定到目录的 ID 路径。有没有办法从目录 ID 或以某种方式获取目录的实际路径?

WiX 中的目录元素 Id 属性变为 Directory Table Directory column in the build Windows Installer MSI database. During installation, directory resolution is performed by the CostFinalize Action. After this point you can Using a Directory Property in a Path

The directories in the Directory table specify the layout of an installation. When the Windows Installer resolves these directories during the CostFinalize action, the keys in the Directory table become properties set to directory paths. The installer also always sets a number of standard System Folder Properties to system folder paths.

例如,在 RegistryValue 元素中,您可以提供值 [INSTALLLOCATION]