nwixtoolset
Version:
Node module wrapper around the WIX Toolset executables.
83 lines (82 loc) • 2.98 kB
TypeScript
import { RunResult } from "./run";
import { CommonWIXOptions } from "./util";
/**
* Performs a diff to generate a transform (.wixmst or .mst) for XML outputs (.wixout or .wixpdb) or .msi files.
*
* @param targetInput The target input to process.
* @param updatedInput The updated input to process.
* @param [options] Options for the compiler.
*/
export declare function torch(targetInput: string, updatedInput: string, options?: TorchOptions): Promise<RunResult>;
/** Options for the Torch executable. */
export interface TorchOptions extends CommonWIXOptions {
/** Generates an admin image (generates source file information in the transform) (default with adminExtract). */
admin?: boolean;
/** Generates an admin image with extraction of binaries (combination of 'admin' and 'extract'). */
adminExtract?: string;
/** Do not delete temporary files (useful for debugging). */
notidy?: boolean;
/** Specify output file (default: write to current directory). */
out?: string;
/** Preserve unmodified content in the output. */
preserve?: boolean;
/** Show pedantic messages. */
pedantic?: boolean;
/** Suppress error when applying transform. */
suppressError?: TorchErrorFlag;
/** Use default validation flags for the transform type. */
transformValidation?: TorchTransformFlag;
/** Validation flags for the transform. */
validation?: TorchValidationFlag;
/** Extract binaries to the specified path. */
extract?: string;
/** Input WiX format instead of MSI format (.wixout or .wixpdb). */
inputWix?: boolean;
/** Output wixout instead of MST format (set by default if inputWix is present). */
outputWix?: boolean;
/** Overrides the temporary directory used for cab extraction, binary extraction, ... */
overridesTemp?: string;
}
export declare type TorchErrorFlag =
/** Ignore errors when adding an existing row. */
"a" |
/** Ignore errors when deleting an existing row. */
"b" |
/** Ignore errors when adding an existing table. */
"c" |
/** Ignore errors when deleting an existing table. */
"d" |
/** Ignore errors when modifying a missing row. */
"e" |
/** Ignore errors when changing the code page. */
"f";
export declare type TorchTransformFlag =
/** UpgradeCode must match. */
"g" |
/** Language must match. */
"l" |
/** Product ID must match. */
"r" |
/** Check major version only. */
"s" |
/** Check major and minor versions. */
"t" |
/** Check major, minor, and upgrade versions. */
"u" |
/** Upgrade version < target version. */
"v" |
/** Upgrade version <= target version. */
"w" |
/** Upgrade version = target version. */
"x" |
/** Upgrade version > target version. */
"y" |
/** Upgrade version >= target version */
"z";
export declare type TorchValidationFlag =
/** Default flags for a language transform. */
"language" |
/** Default flags for an instance transform. */
"instance" |
/** Default flags for a patch transform. */
"patch";