@rensatsu/win-reg-restart
TypeScript icon, indicating that this package has built-in type declarations

0.2.4 • Public • Published

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-restart

Register 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.

Package Sidebar

Install

npm i @rensatsu/win-reg-restart

Weekly Downloads

1

Version

0.2.4

License

MIT

Unpacked Size

10.8 kB

Total Files

9

Last publish

Collaborators

  • rensatsu