wix如何升级

发布时间 2023-06-21 16:07:12作者: 喜爱糖葫芦

提问

wix如何升级

回答

变更Version
UpgradeCode不变
Id设置为*

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
	<Product Id="*" Name="Swagger2Md" Language="1033" Version="7.6.2" Manufacturer="wuhailong" UpgradeCode="294bb15f-1eec-4879-af17-6edf8a1b85c3">
		<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />

		<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
		<MediaTemplate EmbedCab="yes" />
		<Feature Id="ProductFeature" Title="ChangeLog.CommunityToolkitSetup" Level="1">
			<ComponentRef Id="cmp6EF627293EF4AF636DEC5CDAA99F1004" />
			<ComponentRef Id="cmp2ECFFF70FD04C46A49C0C77DC9AA17FB" />
...