From 3e8b7eb4cb739be1881c621999616bc5bbbb0bdb Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Sun, 11 Apr 2021 14:41:50 -0700 Subject: Support non-vital certificate installs --- src/wixext/IIsCompiler.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/wixext') diff --git a/src/wixext/IIsCompiler.cs b/src/wixext/IIsCompiler.cs index 952a4a67..cb573ad1 100644 --- a/src/wixext/IIsCompiler.cs +++ b/src/wixext/IIsCompiler.cs @@ -140,7 +140,7 @@ namespace WixToolset.Iis { var sourceLineNumbers = this.ParseHelper.GetSourceLineNumbers(element); Identifier id = null; - int attributes = 0; + int attributes = 8; // SCA_CERT_ATTRIBUTE_VITAL string binaryRef = null; string certificatePath = null; string name = null; @@ -244,6 +244,16 @@ namespace WixToolset.Iis } } break; + case "Vital": + if (YesNoType.Yes == this.ParseHelper.GetAttributeYesNoValue(sourceLineNumbers, attrib)) + { + attributes |= 8; // SCA_CERT_ATTRIBUTE_VITAL + } + else + { + attributes &= ~8; // SCA_CERT_ATTRIBUTE_VITAL + } + break; default: this.ParseHelper.UnexpectedAttribute(element, attrib); break; -- cgit v1.2.3-55-g6feb