Frank
Frank

Reputation: 831

How to set Property value in WIX

Usually, we can set this value as a text, while what I need is a directory name, which means I need set ProgramFilesFolder to this value. Any suggestion will be appreciated!

Upvotes: 1

Views: 2383

Answers (1)

Yan Sklyarenko
Yan Sklyarenko

Reputation: 32240

Take a closer look at the Directory table. Pay attention to Remarks section, especially to this sentence:

Note that when the directories are resolved during the CostFinalize action, the keys in the Directory table become properties set to directory paths.

This means that after CostFinalize action you can address any directory defined in your Directory table the way you do for properties.

Upvotes: 2

Related Questions