Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 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");
     }
 }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        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");
            }
        }