isitinstalled

0.1.2 • Public • Published

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.

Package Sidebar

Install

npm i isitinstalled

Weekly Downloads

8

Version

0.1.2

License

MIT

Unpacked Size

4.14 kB

Total Files

7

Last publish

Collaborators

  • philliplakis