diff --git a/src/main/scala/com/typesafe/sbt/packager/windows/WixHelper.scala b/src/main/scala/com/typesafe/sbt/packager/windows/WixHelper.scala index 89f29ea1c..4a15bfa51 100644 --- a/src/main/scala/com/typesafe/sbt/packager/windows/WixHelper.scala +++ b/src/main/scala/com/typesafe/sbt/packager/windows/WixHelper.scala @@ -130,16 +130,18 @@ object WixHelper { // Also, we need some mechanism to ensure the start menu folder is removed in the event // that we remove all menu items. case AddShortCuts(targets, workingDir) => - val id = cleanStringForId("shortcut_" + makeGUID).takeRight(67) // Room for "_SC" + val id = cleanStringForId("shortcut_" + makeGUID).takeRight(70 - targets.size.toString().size - 3) // Room for "_SC"+incremental number val xml = { + var i = 0 for (target <- targets) yield { + i = i + 1 val name = simpleName(target) val desc = "Edit configuration file: " + name val cleanName = name.replaceAll("[\\.-\\\\//]+", "_") - + } }