update registry.js

This commit is contained in:
Namhyeon Go 2020-07-19 06:52:13 +09:00
parent 71d28d1922
commit 1d6db047db
6 changed files with 28 additions and 18 deletions

View File

@ -1,12 +1,12 @@
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\welsonjs]
@="URL:welsonjs"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\welsonjs\shell]
[HKEY_CLASSES_ROOT\welsonjs\shell\open]
[HKEY_CLASSES_ROOT\welsonjs\shell\open\command]
@="cscript \"%PROGRAMFILES%\\welsonjs\\app.js\" uriloader \"%1\""
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\welsonjs]
@="URL:welsonjs"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\welsonjs\shell]
[HKEY_CLASSES_ROOT\welsonjs\shell\open]
[HKEY_CLASSES_ROOT\welsonjs\shell\open\command]
@="cscript \"%PROGRAMFILES%\\welsonjs\\app.js\" uriloader \"%1\""

View File

@ -112,4 +112,14 @@ scope.create = function(hiveKey, path, key, computer) {
return createRet.returnValue == 0;
}
return scope;
scope.import = function(scriptName) {
var arguments = [];
arguments.push("reg");
arguments.push("import");
arguments.push(scriptName + ".reg");
return SHELL.exec(arguments.join(' '));
};
return scope;

View File

@ -1,5 +1,7 @@
@echo off
cscript app.js unlockfile
start app.hta &
echo done

View File

@ -1,5 +0,0 @@
@echo off
cscript app.js unlockfile
echo done

View File

@ -1,9 +1,12 @@
var PS = require("lib/powershell");
//var REGISTRY = require("lib/registry");
return {
main: function() {
console.log("Starting unlock files...");
PS.execCommand("dir | Unblock-File");
//REGISTRY.import("app\\assets\\reg\\Add_URI_Scheme");
//REGISTRY.import("app\\assets\\reg\\Allow_ADO_CORS");
console.log("done");
}
};