public static IInstaller GetInstaller(string file) { IInstaller r = null; if(file.EndsWith("msi")) { r = new MSIInstaller(file); } return r; }
public static IInstaller GetInstaller(string file) { IInstaller r = null; if (file.EndsWith("msi")) { r = new MSIInstaller(file); } return(r); }
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); } } } }
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); } } } }