mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-03-11 16:35:13 +00:00
Update bootstrap.js
This commit is contained in:
parent
e8a9a9ad05
commit
c3e33e0b65
9
bootstrap.js
vendored
9
bootstrap.js
vendored
|
@ -9,6 +9,9 @@ var REG = require("lib/registry");
|
|||
var SYS = require("lib/system");
|
||||
var SHELL = require("lib/shell");
|
||||
|
||||
// set application name
|
||||
var APPLICATION_NAME = "welsonjs";
|
||||
|
||||
return {
|
||||
main: function() {
|
||||
// unlock file
|
||||
|
@ -22,9 +25,9 @@ return {
|
|||
|
||||
// register URI scheme
|
||||
console.log("Registering URI scheme...");
|
||||
REG.write(REG.HKCR, "welsonjs", "", "URL:welsonjs", REG.STRING);
|
||||
REG.write(REG.HKCR, "welsonjs", "URL Protocol", "", REG.STRING);
|
||||
REG.write(REG.HKCR, "welsonjs\\shell\\open\\command", "", "cscript " + SYS.getCurrentScriptDirectory() + "\\app.js uriloader \"%1\"", REG.STRING);
|
||||
REG.write(REG.HKCR, APPLICATION_NAME, "", "URL:welsonjs", REG.STRING);
|
||||
REG.write(REG.HKCR, APPLICATION_NAME, "URL Protocol", "", REG.STRING);
|
||||
REG.write(REG.HKCR, APPLICATION_NAME + "\\shell\\open\\command", "", "cscript " + SYS.getCurrentScriptDirectory() + "\\app.js uriloader \"%1\"", REG.STRING);
|
||||
|
||||
// open HTA file
|
||||
console.log("Trying open GUI...");
|
||||
|
|
Loading…
Reference in New Issue
Block a user