May seem like a trivial question but I cant get it to work.
QUESTION: Can u set a WIX property from a Custom Action into a WIX variable?
This is what I have tried:
<?define VAR = "ProductName"?>
<Product Id="*" Name="$(var.VAR)" Language="1033" Version="1.0.0.0" UpgradeCode="$(var.UpgradeCode)">
<Property Id="VAR">ProductName</Property>
<CustomAction Id='GetProductName' BinaryKey='GetProductName' DllEntry='GetProductName' Execute='immediate' Return='check' />
<CustomAction Id="CustomAction1" Return="check" Execute="immediate" Property="VAR" Value="[PRODUCTNAME]" />
<InstallUISequence>
<Custom Action='GetProductName' After='AppSearch' />
<Custom Action='CustomAction1' After='GetProductName' />
</InstallUISequence>
PRODUCTNAME is the property i have set from my custom action.
Thanks