public UpdateAppFileInfo(string filename) { var updateFile = UpdateFile.Open(filename); archiveEntries = updateFile.Select(e => new UpdateEntryViewModel(this, filename, e)) .ToList(); }
static void Main(string[] args) { var u = UpdateFile.Open(@args[0]); for (int i = 0; i < 100; i++) { u.Extract(i, @args[0] + "-" + i + ".fs"); } }
static void Main(string[] args) { var u = UpdateFile.Create(@"c:\temp\test.app"); var e = UpdateEntry.Create(); u.Add(e, @"c:\temp\v1.14.zip"); var crc = UpdateEntry.Create(); u.AddChecksum(crc); u = UpdateFile.Open(@"c:\temp\test.app"); u.Remove(0); u = UpdateFile.Open(@"c:\temp\test.app"); }