Skip to content

philliplakis/isitinstalled

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Windows Check for Software Installed with NodeJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published