Skip to content

Commit

Permalink
Merge pull request #1164 from DigitalFlow/bugfix/SpacesInWiX
Browse files Browse the repository at this point in the history
Fixed bug in WiXDir function, that would set plain directory name as id
  • Loading branch information
forki committed Mar 3, 2016
2 parents 04cbee9 + 676f983 commit 0388027
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/FakeLib/WiXHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -577,11 +577,11 @@ let rec wixDir fileFilter asSubDir (directoryInfo : DirectoryInfo) =
if files = "" then ""
else
split '\n' files
|> Seq.map(fun f -> sprintf "<Component Id=\"%s\" Guid=\"%s\">\r\n%s\r\n</Component>\r\n" (compName directoryInfo.Name) "*" f)
|> Seq.map(fun f -> sprintf "<Component Id=\"%s\" Guid=\"%s\">\r\n%s\r\n</Component>\r\n" (compName (directoryInfo.Name.GetHashCode().ToString("x8"))) "*" f)
|> toLines

if asSubDir then
sprintf "<Directory Id=\"%s\" Name=\"%s\">\r\n%s%s\r\n</Directory>\r\n" (dirName directoryInfo.Name)
sprintf "<Directory Id=\"%s\" Name=\"%s\">\r\n%s%s\r\n</Directory>\r\n" (dirName (directoryInfo.Name.GetHashCode().ToString("x8")))
directoryInfo.Name dirs compo
else sprintf "%s%s" dirs compo

Expand Down

0 comments on commit 0388027

Please sign in to comment.