Exception A row with key [...] was already registered in ... - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

BobM
Posts: 11
Joined: Tue Aug 22, 2006 9:05 am

Exception A row with key [...] was already registered in ...

After adding a number of files to my installation in the "Application Folder", I selected them and dragged them to the "Program Files\Common Files\NewsBoss" folder. Next time I loaded the project, I got an exception stating that "A row with key [id Common Files\NewsBoss\dtdbcs~1.dll] was already registered in the table".

Below is the faulty part of the progect file. As you wiil see the "File=dtdbcs~1.dll" appears twice.

Manually correcting the 1 to 3 corrected the problem.

<ROW File="dtdbcsnlm611.dll" Component_="dtdbcsnlm611.dll" FileName="dtdbcs~1.dll|dtdbcsnlm611.dll" Attributes="0" SourcePath="E:\NBDevVC\bin\Release\dtdbcsnlm611.dll" SelfReg="true" Sequence="179"/>
<ROW File="dtdbcsnlm712.dll" Component_="dtdbcsnlm712.dll" FileName="dtdbcs~2.dll|dtdbcsnlm712.dll" Attributes="0" SourcePath="E:\NBDevVC\bin\Release\dtdbcsnlm712.dll" SelfReg="true" Sequence="180"/>
<ROW File="dtdbcswin611.dll" Component_="dtdbcswin611.dll" FileName="dtdbcs~1.dll|dtdbcswin611.dll" Attributes="0" SourcePath="E:\NBDevVC\bin\Release\dtdbcswin611.dll" SelfReg="true" Sequence="182"/>
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

This is a older bug of Advanced Installer that has been fixed beginning with version 3.5. So please tell me with what version of AI was that project created?

The workaround for this bug is to edit the AIP manually and rename the "FileName" filed for duplicate rows (in this case you can rename the "dtdbcs~1.dll" for the third row with something like this: "dtdbcs~3.dll").

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
BobM
Posts: 11
Joined: Tue Aug 22, 2006 9:05 am

Version 4.2 which I downloaded two days ago.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

It seams to be a bug when files (with same short name) are dragged between folders. The fix will be available in 4.3 version which is scheduled for release this week. Thank you for bringing this to our attention.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”