public void LoadMsi(WixSettings settings) { decompiler.ContinueOnError = !settings.QuitOnError; decompiler.SkipUI = settings.SkipUI; decompiler.SkipVSI = settings.SkipVSI; decompiler.ProcessUIOnly = settings.ProcessUIOnly; decompiler.SkipSequenceTables = settings.SkipSequenceTables; decompiler.SkipSummaryInfo = settings.SkipSummaryInfo; decompiler.Unicode = settings.Unicode; decompiler.ExportBinaries = settings.ExportBinaries; decompiler.IsMergeModule = settings.IsMergeModule; decompiler.KeepEmptyTables = settings.KeepEmptyTables; string temporary = Path.GetFileNameWithoutExtension(settings.FileName) + ".wix"; decompiler.Decompile(settings.FileName, temporary); LoadWix(temporary); }
public void Load(WixSettings settings) { if (settings== null) throw new ArgumentNullException("fileName"); string ext = Path.GetExtension(settings.FileName); switch (ext) { case ".msi": LoadMsi(settings); return; case ".wix": LoadWix(settings.FileName); return; default: throw new Exception("Unknown file extension"); } }
public void Load(WixSettings settings) { if (settings == null) { throw new ArgumentNullException("fileName"); } string ext = Path.GetExtension(settings.FileName); switch (ext) { case ".msi": LoadMsi(settings); return; case ".wix": LoadWix(settings.FileName); return; default: throw new Exception("Unknown file extension"); } }