oleg-shilo / wixsharp

Framework for building a complete MSI or WiX source code by using script files written with C# syntax.
MIT License
1.1k stars 174 forks source link

Duplicate component IDs are added when shortcuts are added #1571

Closed Aaswin1996 closed 1 month ago

Aaswin1996 commented 3 months ago

image image

Adding shortcuts lead to duplicate folder ids .The compnents for these shortcuts are added with similar ids .

oleg-shilo commented 3 months ago

Thank you for reporting. I will investigate.

Aaswin1996 commented 3 months ago

Thank you for reporting. I will investigate.

Any workaround in the meantime @oleg-shilo ?

oleg-shilo commented 3 months ago

You can directly fix the IDs in the wxs.

See InjectXML sample.

image

oleg-shilo commented 3 months ago

Can you please share a "HelloWorld" style sample that demonstrates the problem? And in general, please share the code rather than an image. It makes it easier for me to replicate the problem.

Just adding the FileShortcuts alone does not trigger the problem.