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

Gary M garym at oedata.com
Mon Apr 25 09:42:04 PDT 2016


Hmm Thanks.. I think the line break was gmail..

I have this working in another component without issue.. It seems this
component is a little different, but I don't know  why.

On Sun, Apr 24, 2016 at 11:50 PM, Farrukh Waheed <farrukh1 at gmail.com> wrote:

> Your code seems to be working fine, but  I've found a line break in
> following of your code:
>           <RegistryValue Type="string" Name="AccountName"     Value="[
> INFRA.ADMIN.NAME]"      KeyPath="no" />
>
> Here is the Component with your same code, but removing line break, and it
> is working fine:
>
>    <Component Id="RegKeys" Guid="E769D9F8-87BB-494D-B218-CBAD716845EF">
>         <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>
>       </Component>
>
> On 22 April 2016 at 20:25, Gary M <garym at oedata.com> wrote:
>
> > 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>
> >
> > ____________________________________________________________________
> > WiX Toolset Users Mailing List provided by FireGiant
> > http://www.firegiant.com/
> >
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>



More information about the wix-users mailing list