mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-15 06:01:04 +00:00
update registry.js
This commit is contained in:
parent
71d28d1922
commit
1d6db047db
|
@ -112,4 +112,14 @@ scope.create = function(hiveKey, path, key, computer) {
|
||||||
return createRet.returnValue == 0;
|
return createRet.returnValue == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
scope.import = function(scriptName) {
|
||||||
|
var arguments = [];
|
||||||
|
|
||||||
|
arguments.push("reg");
|
||||||
|
arguments.push("import");
|
||||||
|
arguments.push(scriptName + ".reg");
|
||||||
|
|
||||||
|
return SHELL.exec(arguments.join(' '));
|
||||||
|
};
|
||||||
|
|
||||||
return scope;
|
return scope;
|
|
@ -1,5 +1,7 @@
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
cscript app.js unlockfile
|
||||||
|
|
||||||
start app.hta &
|
start app.hta &
|
||||||
|
|
||||||
echo done
|
echo done
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
@echo off
|
|
||||||
|
|
||||||
cscript app.js unlockfile
|
|
||||||
|
|
||||||
echo done
|
|
|
@ -1,9 +1,12 @@
|
||||||
var PS = require("lib/powershell");
|
var PS = require("lib/powershell");
|
||||||
|
//var REGISTRY = require("lib/registry");
|
||||||
|
|
||||||
return {
|
return {
|
||||||
main: function() {
|
main: function() {
|
||||||
console.log("Starting unlock files...");
|
console.log("Starting unlock files...");
|
||||||
PS.execCommand("dir | Unblock-File");
|
PS.execCommand("dir | Unblock-File");
|
||||||
|
//REGISTRY.import("app\\assets\\reg\\Add_URI_Scheme");
|
||||||
|
//REGISTRY.import("app\\assets\\reg\\Allow_ADO_CORS");
|
||||||
console.log("done");
|
console.log("done");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user