spek

Acoustic spectrum analyser https://github.com/alexkay/spek spek.cc
git clone http://git.hanabi.in/repos/spek.git
Log | Files | Refs | README

fix-msi.js (557B)


      1 var msiOpenDatabaseModeTransact = 1;
      2 var filespec = WScript.Arguments(0);
      3 var installer = new ActiveXObject("WindowsInstaller.Installer");
      4 var database = installer.OpenDatabase(filespec, msiOpenDatabaseModeTransact);
      5 var sql = "UPDATE `Control` SET `Control`.`Height` = '18', `Control`.`Width` = '170'," +
      6           " `Control`.`Y`='243', `Control`.`X`='10' " +
      7           "WHERE `Control`.`Dialog_`='ExitDialog' AND " +
      8           "  `Control`.`Control`='OptionalCheckBox'";
      9 var view = database.OpenView(sql);
     10 view.Execute();
     11 view.Close();
     12 database.Commit();