Update bootstrap.js

This commit is contained in:
Namhyeon Go 2022-04-20 12:33:07 +09:00 committed by GitHub
parent d18c51bf0f
commit 65181b84e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

14
bootstrap.js vendored
View File

@ -18,9 +18,9 @@ exports.main = function(args) {
PS.execCommand("dir | Unblock-File"); PS.execCommand("dir | Unblock-File");
// Allow CROS to ADO // Allow CROS to ADO
console.log("Adjusting CROS policy to ADO..."); //console.log("Adjusting CROS policy to ADO...");
REG.write(REG.HKCU, "SOFTWARE\\Policies\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Lockdown_Zones\\4", "1406", "00000000", REG.DWORD); //REG.write(REG.HKCU, "SOFTWARE\\Policies\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Lockdown_Zones\\4", "1406", "00000000", REG.DWORD);
REG.write(REG.HKLM, "SOFTWARE\\Policies\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Lockdown_Zones\\4", "1406", "00000000", REG.DWORD); //REG.write(REG.HKLM, "SOFTWARE\\Policies\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Lockdown_Zones\\4", "1406", "00000000", REG.DWORD);
// Register HTA file association // Register HTA file association
console.log("Registering HTA file association..."); console.log("Registering HTA file association...");
@ -46,7 +46,7 @@ exports.main = function(args) {
try { try {
var process = processList[i]; var process = processList[i];
if (process.Caption == "mshta.exe") { if (process.Caption == "mshta.exe") {
console.warn("Will be kill process ID: " + process.ProcessID); console.warn("Will be kill process ID:", process.ProcessID);
SYS.killProcess(process.ProcessID); SYS.killProcess(process.ProcessID);
sleep(1000); sleep(1000);
} }
@ -55,13 +55,13 @@ exports.main = function(args) {
} }
} }
// open web application // Opening HTML application
if (typeof(args) !== "undefined") { if (typeof args !== "undefined") {
SHELL.run(["app.hta"].concat(args)); SHELL.run(["app.hta"].concat(args));
} else { } else {
SHELL.run("app.hta"); SHELL.run("app.hta");
} }
// echo welcome // print welcome
console.log("welcome"); console.log("welcome");
}; };