WIX: Can I install the upgrade guide at the time of installation using the command line?

I want to install upgrade guid at runtime like: -

<Upgrade Id="[UPGRADEID]" />

      

and then install it during installation like

msiexec / i ... \ WiXWebInstaller.msi UPGRADEID = "62718b57-574D-4A9A-A266-5B5EC2C02210"

+3


source to share


1 answer


Well, no, for the following reasons:

  • Try to compile the project the way you are trying to, and you will see the following error: The value of the Upgrade / @ Id attribute, [UPGRADEGUID], is not a legal value.

  • Second, see the description on Update Table on MSDN. The Upgrade element populates the Upgrade information for a specific upgrade code in the Upgrade table. The ID in the code snippet refers to the UpgradeCode column in the Upgrade table.



Looking at the description of this column , you can see that this column is of the GUID data type. This means that you will need to use the actual GUID for the Id value. If the data type was Formatted , you could use the code snippet you pasted.

Hope it helps.

+2


source







All Articles