【发布时间】:2019-06-14 02:22:47
【问题描述】:
我们的应用程序在运行时将一些设置写入注册表到 HKCU 配置单元中。我想在卸载期间删除此设置。这是代码:
<Fragment>
<DirectoryRef Id="INSTALLLOCATION" DiskId="1" FileSource="$(var.SourceDirProject)\">
<Component Id="DeleteHkcuManufacturerHive" Guid="GUID">
<Condition>REMOVE="ALL" AND NOT UPGRADINGPRODUCTCODE</Condition>
<CreateFolder/>
<RemoveRegistryKey Action="removeOnUninstall"
Id="HKCUkey" Root="HKCU" Key="Software\$(var.Manufacturer)"/>
</Component>
</DirectoryRef>
</Fragment>
ICE57:组件“DeleteHkcuManufacturerHive”具有每用户和每机器数据以及每机器 KeyPath。
为什么我得到 ICE57?安装是按用户进行的。提前致谢。
UPD:每台机器的元素在哪里?可能是 INSTALLLOCATION=Program Files\ManufacturerDirectory?
【问题讨论】: