Exemplo n.º 1
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)
 {
     using (var stream = File.OpenRead(path))
     {
         var uri     = new Uri(Path.GetFullPath(path));
         var creator = new SimpleTupleDefinitionCreator();
         return(Intermediate.LoadIntermediate(stream, uri, creator, suppressVersionCheck));
     }
 }
Exemplo n.º 2
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 SimpleTupleDefinitionCreator();

            return(Intermediate.Load(assembly, resourceName, creator, suppressVersionCheck));
        }
Exemplo n.º 3
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>
        /// <param name="suppressVersionCheck">Suppress checking for wix.dll version mismatches.</param>
        /// <returns>Returns the loaded intermediates</returns>
        public static IEnumerable <Intermediate> Load(IEnumerable <string> intermediateFiles, bool suppressVersionCheck = false)
        {
            var creator = new SimpleTupleDefinitionCreator();

            return(Intermediate.Load(intermediateFiles, creator));
        }