dskiles
dskiles

Reputation: 851

Can you assign a WiX Property to CommonAppDataFolder?

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

Answers (1)

Christopher Painter
Christopher Painter

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.

SetProperty Element

Upvotes: 2

Related Questions