From 681da11cfc9a266304b47b88843cb8a365015c63 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Wed, 27 Apr 2022 16:54:28 -0500 Subject: Add ability to disable file system redirection for File/DirectorySearch Fixes 5476 --- src/ext/Util/wixext/UtilCompiler.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/ext/Util/wixext/UtilCompiler.cs') diff --git a/src/ext/Util/wixext/UtilCompiler.cs b/src/ext/Util/wixext/UtilCompiler.cs index 323e0f6a..d770555f 100644 --- a/src/ext/Util/wixext/UtilCompiler.cs +++ b/src/ext/Util/wixext/UtilCompiler.cs @@ -999,6 +999,12 @@ namespace WixToolset.Util case "After": this.ParseCommonSearchAttributes(sourceLineNumbers, attrib, ref id, ref variable, ref condition, ref after); break; + case "DisableFileRedirection": + if (this.ParseHelper.GetAttributeYesNoValue(sourceLineNumbers, attrib) == YesNoType.Yes) + { + attributes |= WixFileSearchAttributes.DisableFileRedirection; + } + break; case "Path": path = this.ParseHelper.GetAttributeLongFilename(sourceLineNumbers, attrib, false, true); break; @@ -1104,6 +1110,12 @@ namespace WixToolset.Util case "After": this.ParseCommonSearchAttributes(sourceLineNumbers, attrib, ref id, ref variable, ref condition, ref after); break; + case "DisableFileRedirection": + if (this.ParseHelper.GetAttributeYesNoValue(sourceLineNumbers, attrib) == YesNoType.Yes) + { + attributes |= WixFileSearchAttributes.DisableFileRedirection; + } + break; case "Path": path = this.ParseHelper.GetAttributeLongFilename(sourceLineNumbers, attrib, false, true); break; -- cgit v1.2.3-55-g6feb