isitinstalled
v0.1.2
Published
Checks Windows systems for a program installed, returns True or False
Downloads
26
Maintainers
Readme
isItInstalled
isItInstalled is a promise Windows software check. Returns True or False.
Install
$ npm install isitinstalled
API
isItInstalled([String])
String - Software name.
Why?
This module was designed to be used with ElectronJS, If your desktop application has a Software dependacy you can use this to check if they software is installed.
Simple Example
const isItInstalled = require("isitinstalled");
isItInstalled("Vs Code").then(result => {
if (result) {
console.log("true");
} else {
console.warn("false");
}
});
Electron Example
const isItInstalled = require("isitinstalled");
isItInstalled("Vs Code")
.then(result => {
if (result) {
mainWindow.loadURL(`index.html`);
} else {
mainWindow.loadURL(`error.html`);
}
})
.catch(err => {
mainWindow.loadURL(`500.html`);
});
You can use this example to load a different window based on the results.