[wix-users] How to get rid of "duplicated in table 'Registry" ?

Gary M garym at oedata.com
Fri Apr 22 08:25:58 PDT 2016


I'm trying to add multiple values under a single registry key. Candle seems
to be creating duplicate primary keys for each value under the key causing
an error during linking.

Is there a way to fix this issue without creating a new registry key for
each value ?

Offending code:

        <RegistryKey
          Root="HKLM"
          Key="Software\[Manufacturer]\Infrastructure\Admin\GroupName"
          Action="createAndRemoveOnUninstall"
          ForceDeleteOnUninstall='yes'
        >
          <RegistryValue Type="string" Name="GroupName"
Value="[INFRA.ADMIN.GRP]"       KeyPath="no" />
          <RegistryValue Type="string" Name="GroupDesc"
Value="[INFRA.ADMIN.GRP.DESC]"  KeyPath="no" />
          <RegistryValue Type="string" Name="AccountName"     Value="[
INFRA.ADMIN.NAME]"      KeyPath="no" />
          <RegistryValue Type="string" Name="AccountFullName"
Value="[INFRA.ADMIN.NAME.FULL]" KeyPath="no" />
          <RegistryValue Type="string" Name="AccountDesc"
Value="[INFRA.ADMIN.DESC]"      KeyPath="no" />
        </RegistryKey>


More information about the wix-users mailing list