/// <summary> /// Builds a command line from options in this task. /// </summary> protected override void BuildCommandLine(WixCommandLineBuilder commandLineBuilder) { base.BuildCommandLine(commandLineBuilder); commandLineBuilder.AppendIfTrue("-notidy", this.LeaveTemporaryFiles); commandLineBuilder.AppendIfTrue("-xo", this.OutputAsXml); commandLineBuilder.AppendIfTrue("-xi", this.InputIsXml); commandLineBuilder.AppendIfTrue("-p", this.PreserveUnmodifiedContent); commandLineBuilder.AppendTextIfNotNull(this.AdditionalOptions); commandLineBuilder.AppendFileNameIfNotNull(this.BaselineFile); commandLineBuilder.AppendFileNameIfNotNull(this.UpdateFile); commandLineBuilder.AppendSwitchIfNotNull("-out ", this.OutputFile); commandLineBuilder.AppendIfTrue("-a", this.adminImage); commandLineBuilder.AppendSwitchIfNotNull("-x ", this.BinaryExtractionPath); commandLineBuilder.AppendSwitchIfNotNull("-serr ", this.SuppressTransformErrorFlags); commandLineBuilder.AppendSwitchIfNotNull("-t ", this.TransformValidationType); commandLineBuilder.AppendSwitchIfNotNull("-val ", this.TransformValidationFlags); }
/// <summary> /// Generate the command line arguments to write to the response file from the properties. /// </summary> /// <returns>Command line string.</returns> protected override string GenerateResponseFileCommands() { WixCommandLineBuilder commandLineBuilder = new WixCommandLineBuilder(); commandLineBuilder.AppendSwitch(this.OperationName); commandLineBuilder.AppendFileNameIfNotNull(this.Project); commandLineBuilder.AppendSwitchIfNotNull("-configuration ", this.Configuration); commandLineBuilder.AppendSwitchIfNotNull("-directoryid ", this.DirectoryIds); commandLineBuilder.AppendSwitchIfNotNull("-generate ", this.GenerateType); commandLineBuilder.AppendSwitchIfNotNull("-platform ", this.Platform); commandLineBuilder.AppendArrayIfNotNull("-pog ", this.ProjectOutputGroups); commandLineBuilder.AppendSwitchIfNotNull("-projectname ", this.ProjectName); commandLineBuilder.AppendIfTrue("-wixvar", this.GenerateWixVariables); base.BuildCommandLine(commandLineBuilder); return(commandLineBuilder.ToString()); }
/// <summary> /// Builds a command line from options in this task. /// </summary> protected override void BuildCommandLine(WixCommandLineBuilder commandLineBuilder) { base.BuildCommandLine(commandLineBuilder); commandLineBuilder.AppendSwitchIfNotNull("-im ", this.DatabaseFile); if (null != this.OriginalBundleFile) { commandLineBuilder.AppendSwitchIfNotNull("-ab ", this.BundleFile); commandLineBuilder.AppendFileNameIfNotNull(this.OriginalBundleFile); } else { commandLineBuilder.AppendSwitchIfNotNull("-ib ", this.BundleFile); } commandLineBuilder.AppendSwitchIfNotNull("-out ", this.OutputFile); commandLineBuilder.AppendTextIfNotNull(this.AdditionalOptions); }
/// <summary> /// Generate the command line arguments to write to the response file from the properties. /// </summary> /// <returns>Command line string.</returns> protected override string GenerateResponseFileCommands() { WixCommandLineBuilder commandLineBuilder = new WixCommandLineBuilder(); commandLineBuilder.AppendSwitch(this.OperationName); commandLineBuilder.AppendFileNameIfNotNull(this.File); commandLineBuilder.AppendSwitchIfNotNull("-cg ", this.ComponentGroupName); commandLineBuilder.AppendSwitchIfNotNull("-dr ", this.DirectoryRefId); commandLineBuilder.AppendIfTrue("-scom", this.SuppressCom); commandLineBuilder.AppendIfTrue("-srd", this.SuppressRootDirectory); commandLineBuilder.AppendIfTrue("-sreg", this.SuppressRegistry); commandLineBuilder.AppendSwitchIfNotNull("-template ", this.Template); commandLineBuilder.AppendSwitchIfNotNull("-var ", this.PreprocessorVariable); base.BuildCommandLine(commandLineBuilder); return(commandLineBuilder.ToString()); }
/// <summary> /// Builds a command line from options in this task. /// </summary> protected override void BuildCommandLine(WixCommandLineBuilder commandLineBuilder) { // Always put the output first so it is easy to find in the log. commandLineBuilder.AppendSwitchIfNotNull("-out ", this.OutputFile); commandLineBuilder.AppendSwitchIfNotNull("-pdbout ", this.PdbOutputFile); base.BuildCommandLine(commandLineBuilder); this.AppendBindInputPaths(commandLineBuilder, this.BindInputPathsForTarget, "-bt "); this.AppendBindInputPaths(commandLineBuilder, this.BindInputPathsForUpdated, "-bu "); commandLineBuilder.AppendFileNameIfNotNull(this.InputFile); commandLineBuilder.AppendSwitchIfNotNull("-cc ", this.CabinetCachePath); commandLineBuilder.AppendIfTrue("-delta", this.BinaryDeltaPatch); commandLineBuilder.AppendExtensions(this.Extensions, this.ExtensionDirectory, this.ReferencePaths); commandLineBuilder.AppendIfTrue("-fv", this.SetMsiAssemblyNameFileVersion); commandLineBuilder.AppendIfTrue("-notidy", this.LeaveTemporaryFiles); commandLineBuilder.AppendIfTrue("-reusecab", this.ReuseCabinetCache); commandLineBuilder.AppendIfTrue("-sa", this.SuppressAssemblies); commandLineBuilder.AppendIfTrue("-sf", this.SuppressFiles); commandLineBuilder.AppendIfTrue("-sh", this.SuppressFileHashAndInfo); commandLineBuilder.AppendIfTrue("-spdb", this.SuppressPdbOutput); foreach (ITaskItem transform in this.Transforms) { string transformPath = transform.ItemSpec; string baselineId = transform.GetMetadata("OverrideBaselineId"); if (String.IsNullOrEmpty(baselineId)) { baselineId = this.DefaultBaselineId; } commandLineBuilder.AppendTextIfNotNull(String.Format("-t {0} {1}", baselineId, transformPath)); } commandLineBuilder.AppendTextIfNotNull(this.AdditionalOptions); }
/// <summary> /// Builds a command line from options in this task. /// </summary> protected override void BuildCommandLine(WixCommandLineBuilder commandLineBuilder) { // Always put the output first so it is easy to find in the log. commandLineBuilder.AppendSwitchIfNotNull("-out ", this.OutputFile); commandLineBuilder.AppendSwitchIfNotNull("-pdbout ", this.PdbOutputFile); base.BuildCommandLine(commandLineBuilder); this.AppendBindInputPaths(commandLineBuilder, this.BindInputPathsForTarget, "-bt "); this.AppendBindInputPaths(commandLineBuilder, this.BindInputPathsForUpdated, "-bu "); commandLineBuilder.AppendFileNameIfNotNull(this.InputFile); commandLineBuilder.AppendSwitchIfNotNull("-cc ", this.CabinetCachePath); commandLineBuilder.AppendIfTrue("-delta", this.BinaryDeltaPatch); commandLineBuilder.AppendExtensions(this.Extensions, this.ExtensionDirectory, this.ReferencePaths); commandLineBuilder.AppendIfTrue("-fv", this.SetMsiAssemblyNameFileVersion); commandLineBuilder.AppendIfTrue("-notidy", this.LeaveTemporaryFiles); commandLineBuilder.AppendIfTrue("-reusecab", this.ReuseCabinetCache); commandLineBuilder.AppendIfTrue("-sa", this.SuppressAssemblies); commandLineBuilder.AppendIfTrue("-sf", this.SuppressFiles); commandLineBuilder.AppendIfTrue("-sh", this.SuppressFileHashAndInfo); commandLineBuilder.AppendIfTrue("-spdb", this.SuppressPdbOutput); foreach (ITaskItem transform in this.Transforms) { string transformPath = transform.ItemSpec; string baselineId = transform.GetMetadata("OverrideBaselineId"); if (String.IsNullOrEmpty(baselineId)) { baselineId = this.DefaultBaselineId; } commandLineBuilder.AppendTextIfNotNull(String.Format("-t {0} {1}", baselineId, transformPath)); } commandLineBuilder.AppendTextIfNotNull(this.AdditionalOptions); }
/// <summary> /// Generate the command line arguments to write to the response file from the properties. /// </summary> /// <returns>Command line string.</returns> protected override string GenerateResponseFileCommands() { WixCommandLineBuilder commandLineBuilder = new WixCommandLineBuilder(); commandLineBuilder.AppendSwitch(this.OperationName); commandLineBuilder.AppendFileNameIfNotNull(this.Directory); commandLineBuilder.AppendSwitchIfNotNull("-cg ", this.ComponentGroupName); commandLineBuilder.AppendSwitchIfNotNull("-dr ", this.DirectoryRefId); commandLineBuilder.AppendIfTrue("-ke", this.KeepEmptyDirectories); commandLineBuilder.AppendIfTrue("-scom", this.SuppressCom); commandLineBuilder.AppendIfTrue("-sreg", this.SuppressRegistry); commandLineBuilder.AppendIfTrue("-srd", this.SuppressRootDirectory); commandLineBuilder.AppendSwitchIfNotNull("-template ", this.Template); commandLineBuilder.AppendSwitchIfNotNull("-var ", this.PreprocessorVariable); base.BuildCommandLine(commandLineBuilder); return commandLineBuilder.ToString(); }
/// <summary> /// Generate the command line arguments to write to the response file from the properties. /// </summary> /// <returns>Command line string.</returns> protected override string GenerateResponseFileCommands() { WixCommandLineBuilder commandLineBuilder = new WixCommandLineBuilder(); commandLineBuilder.AppendSwitch(this.OperationName); commandLineBuilder.AppendFileNameIfNotNull(this.Project); commandLineBuilder.AppendSwitchIfNotNull("-configuration ", this.Configuration); commandLineBuilder.AppendSwitchIfNotNull("-directoryid ", this.DirectoryIds); commandLineBuilder.AppendSwitchIfNotNull("-generate ", this.GenerateType); commandLineBuilder.AppendSwitchIfNotNull("-platform ", this.Platform); commandLineBuilder.AppendArrayIfNotNull("-pog ", this.ProjectOutputGroups); commandLineBuilder.AppendSwitchIfNotNull("-projectname ", this.ProjectName); commandLineBuilder.AppendIfTrue("-wixvar", this.GenerateWixVariables); base.BuildCommandLine(commandLineBuilder); return commandLineBuilder.ToString(); }
/// <summary> /// Builds a command line from options in this task. /// </summary> protected override void BuildCommandLine(WixCommandLineBuilder commandLineBuilder) { base.BuildCommandLine(commandLineBuilder); commandLineBuilder.AppendIfTrue("-notidy", this.LeaveTemporaryFiles); commandLineBuilder.AppendIfTrue("-xo", this.OutputAsXml); commandLineBuilder.AppendIfTrue("-xi", this.InputIsXml); commandLineBuilder.AppendIfTrue("-p", this.PreserveUnmodifiedContent); commandLineBuilder.AppendTextIfNotNull(this.AdditionalOptions); commandLineBuilder.AppendFileNameIfNotNull(this.BaselineFile); commandLineBuilder.AppendFileNameIfNotNull(this.UpdateFile); commandLineBuilder.AppendSwitchIfNotNull("-out ", this.OutputFile); commandLineBuilder.AppendIfTrue("-a", this.adminImage); commandLineBuilder.AppendSwitchIfNotNull("-x ", this.BinaryExtractionPath); commandLineBuilder.AppendSwitchIfNotNull("-serr ", this.SuppressTransformErrorFlags); commandLineBuilder.AppendSwitchIfNotNull("-t ", this.TransformValidationType); commandLineBuilder.AppendSwitchIfNotNull("-val ", this.TransformValidationFlags); }
/// <summary> /// Builds a command line from options in this task. /// </summary> protected override void BuildCommandLine(WixCommandLineBuilder commandLineBuilder) { base.BuildCommandLine(commandLineBuilder); commandLineBuilder.AppendSwitchIfNotNull("-im ", this.DatabaseFile); if (null != this.OriginalBundleFile) { commandLineBuilder.AppendSwitchIfNotNull("-ab ", this.BundleFile); commandLineBuilder.AppendFileNameIfNotNull(this.OriginalBundleFile); } else { commandLineBuilder.AppendSwitchIfNotNull("-ib ", this.BundleFile); } commandLineBuilder.AppendSwitchIfNotNull("-out ", this.OutputFile); commandLineBuilder.AppendTextIfNotNull(this.AdditionalOptions); }