代码之家  ›  专栏  ›  技术社区  ›  Rohit

How to prevent Wix from removing registry entries on uninstall?

  •  9
  • Rohit  · 技术社区  · 16 年前
     <RegistryKey Id="MyServerRegInstallDir" Root="HKLM" Key="Software\MyApp\Server" Action="create">
         <RegistryValue Name="InstallDir" Type="string" Value="[INSTALLDIR]" />
         <RegistryValue Name="DataDirectory" Type="string" Value="[MYAPPDATADIR]" />
      </RegistryKey>
    

    在卸载时删除子密钥安装dir和DataDirectory。我该如何预防呢?

    理想的行动=“创造”必须做到这一点。

    1 回复  |  直到 15 年前
        1
  •  14
  •   selbie    16 年前

    在父组件上设置永久=“yes”属性。

    http://wix.sourceforge.net/manual-wix3/wix_xsd_component.htm

    Permanent    YesNoType      
    

    推荐文章