mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 06:54:58 +00:00
update registry.js
This commit is contained in:
parent
71d28d1922
commit
1d6db047db
|
@ -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\""
|
|
@ -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;
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
@echo off
|
||||
|
||||
cscript app.js unlockfile
|
||||
|
||||
echo done
|
|
@ -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");
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user