gpt4 book ai didi

wix - 安装程序不卸载文件

转载 作者:行者123 更新时间:2023-12-04 16:12:46 24 4
gpt4 key购买 nike

我有一个非常简单的设置项目:

  <Product Id="*" UpgradeCode="$(var.UpgradeCode)" Name="$(var.ProductLongName)" Language="1033"
Version="$(var.ProductVersion)" Manufacturer="$(var.Manufacturer)">

<Package InstallerVersion="200" Compressed="yes" />

<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />

<!-- Installation Parts -->
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="WindowsFolder">
<Component Id="ProductComponent" Guid="b3250107-4859-4d5f-857c-1756af65ec32">
<File Id='SomeFile' Name='SomeFile.scr'
Source='SomeFile.scr' Vital='yes' />
<!-- Other files -->
</Component>
</Directory>
</Directory>

<Feature Id="ProductFeature" Title="$(var.ProductShortName)" Level="1">
<ComponentRef Id="ProductComponent" />
<!-- Note: The following ComponentGroupRef is required to pull in generated authoring from project references. -->
<ComponentGroupRef Id="Product.Generated" />
</Feature>

<!-- Prerequisites -->
<PropertyRef Id="NETFRAMEWORK40CLIENT"/>

<Condition Message="This application requires .NET Framework 4.0. Please install the .NET Framework then run this installer again.">
<![CDATA[Installed OR NETFRAMEWORK40CLIENT]]>
</Condition>

</Product>

它安装正常,卸载似乎也完成了,但所有文件都保留了下来。它们不会被删除。
有什么想法吗?

最佳答案

因此,当我将组件 guid 更改为新生成的时,这个问题就消失了。不太明白为什么。很奇怪。

关于wix - 安装程序不卸载文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5603033/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com