mirror of
https://github.com/modernw/App-Installer-For-Windows-8.x-Reset.git
synced 2026-04-11 17:57:19 +10:00
26 lines
821 B
JavaScript
26 lines
821 B
JavaScript
(function(global) {
|
|
global.autoCheckUpdate = false;
|
|
global.autoInstallUpdate = false;
|
|
if (Bridge.External.exec1 == true) return;
|
|
var args = cmdargs;
|
|
var optionarg = "";
|
|
if (args.length > 2) {
|
|
optionarg = args[2];
|
|
} else {
|
|
return;
|
|
}
|
|
if (
|
|
Bridge.NString.equals(optionarg, "/checkupdate") ||
|
|
Bridge.NString.equals(optionarg, "-checkupdate") ||
|
|
Bridge.NString.equals(optionarg, "checkupdate")
|
|
) global.autoCheckUpdate = true;
|
|
if (
|
|
Bridge.NString.equals(optionarg, "/autoupdate") ||
|
|
Bridge.NString.equals(optionarg, "-autoupdate") ||
|
|
Bridge.NString.equals(optionarg, "autoupdate")
|
|
) {
|
|
global.autoCheckUpdate = true;
|
|
global.autoInstallUpdate = true;
|
|
}
|
|
Bridge.External.exec1 = true;
|
|
})(this); |