https://github.com/rensatsu/node-win-reg-restart
A Node.js extension for registering applications for restart on Windows
https://github.com/rensatsu/node-win-reg-restart
node-module nodejs nodejs-modules winapi windows-10
Last synced: 8 months ago
JSON representation
A Node.js extension for registering applications for restart on Windows
- Host: GitHub
- URL: https://github.com/rensatsu/node-win-reg-restart
- Owner: rensatsu
- License: mit
- Archived: true
- Created: 2021-08-14T00:09:24.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-01T12:52:12.000Z (over 4 years ago)
- Last Synced: 2025-01-16T08:16:33.451Z (over 1 year ago)
- Topics: node-module, nodejs, nodejs-modules, winapi, windows-10
- Language: C++
- Homepage: https://www.npmjs.com/package/@rensatsu/win-reg-restart
- Size: 397 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Register Application Restart
A Node.js module that adds methods for invoking the WinAPI
[`RegisterApplicationRestart`][reg-restart] and
[`UnregisterApplicationRestart`][unreg-restart] methods.
Due to limitations of these API methods, module may be incompatible
with some electron apps.
## Usage
Install module using npm:
```bash
npm i --save @rensatsu/win-reg-restart
```
Register an application to be restarted on Windows restart:
```javascript
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][repo-original] licensed
under [MIT License][license-original].
[reg-restart]: https://docs.microsoft.com/en-us/windows/desktop/api/winbase/nf-winbase-registerapplicationrestart
[unreg-restart]: https://docs.microsoft.com/en-us/windows/desktop/api/winbase/nf-winbase-unregisterapplicationrestart
[repo-original]: https://github.com/kdelorey/node-windows-register-restart
[license-original]: https://github.com/kdelorey/node-windows-register-restart/blob/f333b651503a9f8f4731870697fe8db4b0f3020f/LICENSE