main
cs 32 lines 1.18 KB
Raw
1 // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2
3 namespace WixToolset.BuildTasks
4 {
5 using Microsoft.Build.Framework;
6 using WixToolset.BaseBuildTasks;
7
8 /// <summary>
9 /// An MSBuild task to run WiX to update cabinet signatures in a MSI.
10 /// </summary>
11 public sealed partial class InscribeMsiWithCabinetSignatures : WixExeBaseTask
12 {
13 [Required]
14 public ITaskItem DatabaseFile { get; set; }
15
16 [Required]
17 public ITaskItem IntermediateDirectory { get; set; }
18
19 public ITaskItem OutputFile { get; set; }
20
21 protected override void BuildCommandLine(WixCommandLineBuilder commandLineBuilder)
22 {
23 commandLineBuilder.AppendTextUnquoted("msi inscribe");
24
25 commandLineBuilder.AppendFileNameIfNotNull(this.DatabaseFile);
26 commandLineBuilder.AppendSwitchIfNotNull("-out ", this.OutputFile);
27 commandLineBuilder.AppendSwitchIfNotNull("-intermediatefolder ", this.IntermediateDirectory);
28
29 base.BuildCommandLine(commandLineBuilder);
30 }
31 }
32 }