Announcement

Collapse
No announcement yet.

Build fails when specifying several extensions with same ProgId in File Associations

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Build fails when specifying several extensions with same ProgId in File Associations

    Using version MSI-Factory 2.2 (but was the same with the previous one).

    1 - Create any MSI-Factory project to install a small (even single file) application.
    2 - Display the properties of the exec file, Registration tab.
    3 - Edit the File Associations
    4 - Add a first extension, for example ext1
    5 - Create a new Associated ProgID, for example MyProg.image
    6 - Add a verb, keep the default values for simplicity
    7 - Add a second extension, for example ext2
    8 - Select MyProg.image as Associated ProgId
    9 - Add a verb, keep the default values for simplicity
    10 - Close dialog windows and build.
    Build fails. Last line in log window are:

    Linking compiled files together as 'H:\_NAIX-Install\TCGAIR-V4.1.00.6\_Msi\Essai.msi'
    Windows Installer XML Toolset Linker version 3.9.1208.0
    Copyright (c) Outercurve Foundation. All rights reserved.

    H:\_NAIX-Install\TCGAIR-V4.1.00.6\Install\Tmp\Essai.wxs(44) : error LGHT0130 : The primary key 'regE07D1BF2F1AC1CAC429C51BBC10FCC72' is duplicated in table 'Registry'. Please remove one of the entries or rename a part of the primary key to avoid the collision.

    Error 5001: light.exe returned 130
    Deleting temporary files

    Build FAILED! Error: 5001 - Link failed (light.exe returned an error code). Usually means project contains errors or is missing information.


    The build does not fail if you declare a different ProdID for each extension you want.

  • #2
    Hello,

    Don't create a ProgID and do not associate the ProgID with the extension. Then rebuild and check if you still get the error.
    From what I see, if you use a ProgID, you need to specify different verbs - such as "open" and "print" or "edit".

    Click image for larger version

Name:	SCRN-2018-01-03-01.png
Views:	140
Size:	26.1 KB
ID:	299413

    Ulrich

    Comment

    Working...
    X