Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Primary key duplicated in table 'Shortcut' for Windows builds #21

Closed
martinstuder opened this issue Aug 26, 2013 · 5 comments
Closed

Primary key duplicated in table 'Shortcut' for Windows builds #21

martinstuder opened this issue Aug 26, 2013 · 5 comments
Labels

Comments

@martinstuder
Copy link
Contributor

Using version 0.6.0 I'm currently receiving the following error when trying to build a Windows MSI installer:

error LGHT0130 : The primary key 'shortcut_85903ec4_f15e_49bb_be96_bfe37a1a794b_Shortcut' is duplicated in table 'Shortcut'. Please remove one of the entries or rename a part of the primary key to avoid the collision.

Looking into the code at https://github.com/sbt/sbt-native-packager/blob/master/src/main/scala/com/typesafe/sbt/packager/windows/WixHelper.scala#L125-L143 it looks like the same id is used for multiple shortcuts.

@jsuereth
Copy link
Member

DOH! Thanks for the report. I'm a bit swmaped this early in the week, but I'll try to get something out by the end. As always, patches welcome! The windows stuff could use some clean up :)

@jsuereth
Copy link
Member

Oh, also, I don't think I can support multiple shortcuts at this point. If you look at the code that generates the XML, there's a few things that every shortcut added to windows needs. I need to fix this level of abstraction, as there's a tangly mess inside WiX that I was trying to avoid having users take care of. I'll work this as soon as I can. In any case, as I recall what I was doing in this area, It'll take me a bit to detangle the "what does WiX require" from "What a user really wants to specify" aspect.

@martinstuder
Copy link
Contributor Author

wow - thanks for the lightning fast feedback

@thedreadfort
Copy link

I'm also hitting this error now. @martinstuder @jsuereth did you come up with a solution?

@muuki88
Copy link
Contributor

muuki88 commented Nov 14, 2014

We had a pull request for this, which didn't worked out :/
Sadly we are really short handed of windows guys, so feel free to provide any knowledge/code/insides :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants