0.2.4 • Published 5 years ago
@rensatsu/win-reg-restart v0.2.4
Register Application Restart
A Node.js module that adds methods for invoking the WinAPI
RegisterApplicationRestart and
UnregisterApplicationRestart methods.
Due to limitations of these API methods, module may be incompatible with some electron apps.
Usage
Install module using npm:
npm i --save @rensatsu/win-reg-restartRegister an application to be restarted on Windows restart:
const winRegRestart = require("@rensatsu/win-reg-restart");
const result = winRegRestart.registerApplicationRestart("--minimized");
console.log({ result });Original code
Original project: node-windows-register-restart by kdelorey.
This is a modified fork of the repository located here licensed under MIT License.