예제 #1
0
 /// <summary>
 /// Builds a transform from two setup packages
 /// </summary>
 /// <param name="workingDirectory">WiX working directory</param>
 /// <param name="target">The target file</param>
 /// <param name="update">The updated file</param>
 /// <param name="inputXML">If true, the inputs to Torch are XML</param>
 /// <param name="transform">The name of the transform</param>
 /// <param name="outputXML">If true, create an MST in wixout format</param>
 public static void BuildTransform(string workingDirectory, string target, string update, bool inputXML, string transform, bool outputXML)
 {
     Builder.BuildTransform(workingDirectory, target, update, inputXML, transform, outputXML, null);
 }
예제 #2
0
        /// <summary>
        /// Build a setup package (MSI) from the specified source file
        /// </summary>
        /// <param name="sourceFile">The .wxs file to compile</param>
        /// <param name="outputFile">The name of the output file</param>
        /// <returns>The path to the output file</returns>
        public static string BuildPackage(string sourceFile, string outputFile)
        {
            string workingDirectory = Environment.CurrentDirectory;

            return Builder.BuildPackage(workingDirectory, new string[] { sourceFile }, outputFile, true, null, null);
        }
예제 #3
0
 /// <summary>
 /// Build a patch
 /// </summary>
 /// <param name="workingDirectory">WiX working directory</param>
 /// <param name="targetSources">Target source files</param>
 /// <param name="upgradeSources">Upgrade source files</param>
 /// <param name="patchSources">Patch source file</param>
 /// <param name="patchFileName">Name of output file</param>
 /// <param name="baseline">The name of the baseline</param>
 public static void BuildPatch(string workingDirectory, string[] targetSources, string[] upgradeSources, string[] patchSources, string patchFileName, string baseline)
 {
     Builder.BuildPatch(workingDirectory, targetSources, upgradeSources, patchSources, patchFileName, baseline, null);
 }
예제 #4
0
 /// <summary>
 /// Build a setup package from the specified sources
 /// </summary>
 /// <param name="workingDirectory">The working directory from where Candle and Light are run</param>
 /// <param name="sourceFile">The .wxs file to compile</param>
 /// <param name="outputFile">The name of the output file</param>
 /// <param name="otherCandleArgs">Additional arguments to pass to Candle.exe</param>
 /// <param name="otherLightArgs">Additional arguments to pass to Light.exe</param>
 /// <returns>The path to the output file</returns>
 public static string BuildPackage(string workingDirectory, string sourceFile, string outputFile, string otherCandleArgs, string otherLightArgs)
 {
     return Builder.BuildPackage(workingDirectory, new string[] { sourceFile }, outputFile, otherCandleArgs, otherLightArgs);
 }