Skip to content

Commit

Permalink
Fix duplicate hashing
Browse files Browse the repository at this point in the history
  • Loading branch information
chrpai committed Nov 14, 2023
1 parent 18b1695 commit 3bfc3df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public IsWiXShortCut Create(string name, string directory, string subDirectory,
{
XElement shortcutElement = new XElement(ns + "Shortcut");
string scID = "sc" + Guid.NewGuid().ToString().ToUpper().Replace("-", string.Empty);
shortcutElement.SetAttributeValue("Id", "sc" + IsWiXHelpers.GetMd5Hash(directory + name));
shortcutElement.SetAttributeValue("Id", "sc" + IsWiXHelpers.GetMd5Hash(Path.Combine(directory, subDirectory,name)));
shortcutElement.SetAttributeValue("Name", name);
shortcutElement.SetAttributeValue("Directory", directory);
if (!string.IsNullOrEmpty(subDirectory))
Expand Down

0 comments on commit 3bfc3df

Please sign in to comment.