Exemple #1
0
        /// <summary>
        /// Loads an intermediate from a stream.
        /// </summary>
        /// <param name="assembly">Assembly with intermediate embedded in resource stream.</param>
        /// <param name="resourceName">Name of resource stream.</param>
        /// <param name="suppressVersionCheck">Suppress checking for wix.dll version mismatches.</param>
        /// <returns>Returns the loaded intermediate.</returns>
        public static Intermediate Load(Assembly assembly, string resourceName, bool suppressVersionCheck = false)
        {
            var creator = new SimpleSymbolDefinitionCreator();

            return(Intermediate.Load(assembly, resourceName, creator, suppressVersionCheck));
        }
Exemple #2
0
        /// <summary>
        /// Loads several intermediates from paths on disk using the same definitions.
        /// </summary>
        /// <param name="intermediateFiles">Paths to intermediate files saved on disk.</param>
        /// <returns>Returns the loaded intermediates</returns>
        public static IEnumerable <Intermediate> Load(IEnumerable <string> intermediateFiles)
        {
            var creator = new SimpleSymbolDefinitionCreator();

            return(Intermediate.Load(intermediateFiles, creator));
        }
Exemple #3
0
        /// <summary>
        /// Loads an intermediate from a path on disk.
        /// </summary>
        /// <param name="path">Path to intermediate file saved on disk.</param>
        /// <param name="suppressVersionCheck">Suppress checking for wix.dll version mismatches.</param>
        /// <returns>Returns the loaded intermediate.</returns>
        public static Intermediate Load(string path, bool suppressVersionCheck = false)
        {
            var creator = new SimpleSymbolDefinitionCreator();

            return(Intermediate.Load(path, creator, suppressVersionCheck));
        }
Exemple #4
0
        /// <summary>
        /// Loads an intermediate from a WixOutput object.
        /// </summary>
        /// <param name="wixOutput">WixOutput object.</param>
        /// <param name="suppressVersionCheck">Suppress checking for wix.dll version mismatches.</param>
        /// <returns>Returns the loaded intermediate.</returns>
        public static Intermediate Load(WixOutput wixOutput, bool suppressVersionCheck = false)
        {
            var creator = new SimpleSymbolDefinitionCreator();

            return(Intermediate.LoadIntermediate(wixOutput, creator, suppressVersionCheck));
        }