That looks right to me. Error message isn't great when you don't get your dependent ProgIds right. <sigh/>
mi...@get2net.dk wrote: > Hi, > > I have a question regarding the proper use of the ProgId element under > a TypeLib/Class element (COM Registration) and specifically related to > version-independent and version-dependent ProgId's. > > I've previously had my definition like: > > <TypeLib Id="{GUID}" Description="MyApp 1.0 Type Library" Language="0" > MajorVersion="2" MinorVersion="0"> > <Class Id="{GUID}" Context="LocalServer32" Description="MyApp 1.0 > ClassID" > ThreadingModel="apartment" Version="1.0" Programmable="yes"> > <ProgId Id="MyApp.Application" Description="MyApp2.0 Application"/> > <ProgId Id="MyApp.Application.1" Description="MyApp 1.0 Application"/> > <ProgId Id="MyApp.Application.2" Description="MyApp 2.0 Application"/> > </Class> > ... > </TypeLib> > > But for some reason in the latest WiX 3.0 builds this fails with LGHT030 > duplicate key in registry. > > My question is really how the ProdId's should be defined so that they are > correctly registrered. In the documentation for ProgId it is mentioned that > version-independent ProgId must be the first defined. > > For now I've fixed it as the following, but I'm not sure this is the right > way to do it: > > <TypeLib Id="{GUID}" Description="MyApp 1.0 Type Library" Language="0" > MajorVersion="2" MinorVersion="0"> > <Class Id="{GUID}" Context="LocalServer32" Description="MyApp 1.0 > ClassID" > ThreadingModel="apartment" Version="1.0" Programmable="yes"> > <ProgId Id="MyApp.Application" Description="MyApp2.0 Application"> > <ProgId Id="MyApp.Application.1" Description="MyApp 1.0 Application"/> > <ProgId Id="MyApp.Application.2" Description="MyApp 2.0 Application"/> > </ProgId> > </Class> > ... > </TypeLib> > > Can anybody help - e.g with a link to a good example. > > Thanks in advance for all replies, > /Michael S. > > ------------------------------------------------------------------------------ > The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your > production scanning environment may not be a perfect world - but thanks to > Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 > Series Scanner you'll get full speed at 300 dpi even with all image > processing features enabled. http://p.sf.net/sfu/kodak-com > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users