[英]Unable to remove registy keys during uninstall in WIX Installer
在卸載MSI期間不會刪除注冊表項值。
下面是將值添加到注冊表的代碼示例。 我正在為組件使用NeverOverwrite =“ yes” Permanent =“ yes”選項,因為在升級過程中不應覆蓋注冊表值。
<Component Id="DFService_Registry" Guid="B4F1008F-1CF2-4170-94A5-2466AB15E145" Win64="yes" Directory="DFServicesDir" NeverOverwrite ="yes" Permanent="yes">
<Condition><![CDATA[INSTALL_DFSERVICES=1 AND (NOT OLDER_VERSION_FOUND)]]></Condition>
<!--Win64="yes"-->
<RegistryKey Root="HKLM" Key='SOFTWARE\VALUEMOMENTUM\DEALFOUNDRY\DealFoundryServices' Action="createAndRemoveOnUninstall">
<RegistryValue Type="string" Name="DfServicesInstalled" Value="Yes">
<![CDATA[NOT OLDER_VERSION_FOUND]]>
</RegistryValue>
<RegistryValue Type="string" Name="DfServicesWebApplicationName" Value="[DFSERVICES_WEBAPPLICATIONNAME]">
<![CDATA[NOT OLDER_VERSION_FOUND]]>
</RegistryValue>
<RegistryValue Type="string" Name="DfServicesPortNumber" Value="[DFSERVICES_PORTNUMBER]">
<![CDATA[NOT OLDER_VERSION_FOUND]]>
</RegistryValue>
<RegistryValue Type="string" Name="DfServicesInstallDir" Value="[INSTALLDFSERVICES_DIR]">
<![CDATA[NOT OLDER_VERSION_FOUND]]>
</RegistryValue>
</RegistryKey>
</Component>
請幫我。
設置為永久=“ yes”時,在卸載過程中不會刪除注冊表項。 使用永久性=“否”。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.