Exemplo n.º 1
0
 public static IInstaller GetInstaller(string file)
 {
     IInstaller r = null;
     if(file.EndsWith("msi"))
     {
         r = new MSIInstaller(file);
     }
     return r;
 }
Exemplo n.º 2
0
        public static IInstaller GetInstaller(string file)
        {
            IInstaller r = null;

            if (file.EndsWith("msi"))
            {
                r = new MSIInstaller(file);
            }
            return(r);
        }
Exemplo n.º 3
0
        public static void Main(String[] args)
        {
            MSIInstaller msi        = new MSIInstaller(@"C:\Matt\Projects\vs.msi");
            var          properties = from p in msi.Properties
                                      select p;

            using (FileStream fs = new FileStream(msi.File.Name + ".log", FileMode.Create, FileAccess.Write))
            {
                using (StreamWriter sw = new StreamWriter(fs))
                {
                    foreach (var property in properties)
                    {
                        sw.WriteLine("{0} = {1}", property.Property, property.Value);
                    }
                }
            }
        }
Exemplo n.º 4
0
        public static void Main(String[] args)
        {
            MSIInstaller msi = new MSIInstaller(@"C:\Matt\Projects\vs.msi");
            var properties = from p in msi.Properties
                select p;

            using(FileStream fs = new FileStream(msi.File.Name + ".log", FileMode.Create, FileAccess.Write))
            {
                using(StreamWriter sw = new StreamWriter(fs))
                {
                    foreach (var property in properties)
                    {
                        sw.WriteLine("{0} = {1}", property.Property, property.Value);
                    }
                }
            }
        }