Reputation: 851
I would like to set an overrideable property for a WiX property to the current location of CommonAppDataFolder. So far I have tried the following:
<Property Id="GHOSTSCRIPT" Value="[CommonAppDataFolder]"/>
as well as
<Property Id="GHOSTSCRIPT" Value="CommonAppDataFolder"/>
Neither one resolves correctly. Is there a way to do this?
Upvotes: 0
Views: 603
Reputation: 55581
The Property element writes a row to the Windows Installer Property table. The value column is type "text" not type "formatted" so the [PROPNAME] doesn't work.
The SetProperty element schedules a Property Custom Action (Type 51) in the needed sequence and it supports what you are trying to do.
Upvotes: 2