Re: [WiX-users] Multiple file extensions per ProgID
To answer my own question, the bit that was causing the problem was, of course, the duplicated Verb, not the duplicated Extension. The Verb is stored under the ProgId, not under the extension, despite the way things are laid out in Wix and therefore there can only be one Verb per ProgId. The following code achieves what I was hoping for: Directory Id=ProgramFilesFolder SourceName=program files ShortSourceName=PROGRA~1 Directory Id=APPLICATIONFOLDER Name=MyApp ShortName=MyAppShortName DiskId=1 Component Id=MainApplication Guid=MyGuid1 ... ProgId Id=MyApp.MyDocType Description=[ProductName] Document Icon=ID_MyGuid2 IconIndex=1 Extension Id=wpl Verb Id=Open Command=Open TargetFile=ID_MyGuid3 Argument=/dde / /Extension Extension Id=wow-playlist / /ProgId The following code causes MyApp.wxs(MyLineNo) : error LGHT0130 : The primary key 'regCEECC3C927D10BCB192BEE13F4F46715' is duplicated in table 'Registry'. Please remove one of the entries or rename a part of the primary key to avoid the collision. -- View this message in context: http://n2.nabble.com/Multiple-file-extensions-per-ProgID-tp2580359p2585695.html Sent from the wix-users mailing list archive at Nabble.com. -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Multiple file extensions per ProgID
The following code causes MyApp.wxs(MyLineNo) : error LGHT0130 : The primary key 'regCEECC3C927D10BCB192BEE13F4F46715' is duplicated in table 'Registry'. Please remove one of the entries or rename a part of the primary key to avoid the collision. Directory Id=ProgramFilesFolder SourceName=program files ShortSourceName=PROGRA~1 Directory Id=APPLICATIONFOLDER Name=MyApp ShortName=MyAppShortName DiskId=1 Component Id=MainApplication Guid=MyGuid1 ... ProgId Id=MyApp.MyDocType Description=[ProductName] Document Icon=ID_MyGuid2 IconIndex=1 Extension Id=wpl Verb Id=Open Command=Open TargetFile=ID_MyGuid3 Argument=/dde / /Extension Extension Id=wow-playlist Verb Id=Open Command=Open TargetFile=ID_MyGuid3 Argument=/dde / /Extension /ProgId Removing one of the Extension elements fixes this error. The application has two extensions since we need to support the old three letter extension that many users' files still use while new documents are created with a longer extension that does not conflict with Windows Media Player. The Wix documentation indicates that multiple Extension elements are supported. Am I doing anything wrong? TIA, Nathan -- View this message in context: http://n2.nabble.com/Multiple-file-extensions-per-ProgID-tp2580359p2580359.html Sent from the wix-users mailing list archive at Nabble.com. -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users