Skip to content

Commit

Permalink
Issue #45: Can't install dll to windows/system32
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-shilo committed Mar 28, 2017
1 parent 8ed3a06 commit af31062
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/src/WixSharp/Compiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3225,7 +3225,7 @@ public static string[] GetMappedWixConstants(bool include64Specific)

static XElement AddDir(XElement parent, Dir wDir)
{
string name = wDir.Name;
string name = wDir.Name.Expand(); //name needs to be escaped
string id = "";

if (wDir.IsIdSet())
Expand All @@ -3241,7 +3241,6 @@ static XElement AddDir(XElement parent, Dir wDir)
Compiler.EnvironmentConstantsMapping.ContainsValue(wDir.Name.TrimStart('[').TrimEnd(']'))) // [ProgramFilesFolder]
{
id = wDir.Name.Expand();
name = wDir.Name.Expand(); //name needs to be escaped
}
else
{
Expand Down

0 comments on commit af31062

Please sign in to comment.