Пример #1
0
 public static IInstaller GetInstaller(string file)
 {
     IInstaller r = null;
     if(file.EndsWith("msi"))
     {
         r = new MSIInstaller(file);
     }
     return r;
 }
Пример #2
0
        public static IInstaller GetInstaller(string file)
        {
            IInstaller r = null;

            if (file.EndsWith("msi"))
            {
                r = new MSIInstaller(file);
            }
            return(r);
        }
Пример #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);
                    }
                }
            }
        }
Пример #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);
                    }
                }
            }
        }