1.1.6 • Published 7 months ago

installed-win-apps v1.1.6

Weekly downloads
2
License
ISC
Repository
github
Last release
7 months ago

installed-win-apps

returns the paths of all installed apps on Windows

Update 1.1.6: Fixed: output incorrect targets when running 32bit node on 64 bit Windows

Update 1.1.4: Added: output lnk files only and do not extract targets. It's much faster way to check if an app is installed.

Update 1.1.3: Bug fixed: not working when script path includes spaces. (a bug with npm win-lnk-parser)

Update 1.1.1: You can filter installed paths by passing a keyword as argument

Update 1.0.8: Fixed a bug with win-codepage module as it won't work on non-English Windows

Why: I could not use the existing modules to get the path of certain programs like WPS

How: Read start menu folders recursively for shortcut files (.lnk) and get the path information.

Who am I: Developer of GT4T gt4t.net, a file translator app that translates Office, Markdown, PDF, HTML files in batches. No file upload needed.

installation

npm i installed-win-apps

Usage

    const installedPaths = require ('installed-win-apps');

    installedPaths.getAllPaths().then (paths=>{
        console.log(paths)   //paths is an array that contains the paths of all installed apps. e.g. [{lnk: "file file path.lnk", target: "target exe path.exe"}]
    })

    //Check if Microsoft Word is installed; returns an array if found and false if not found;
    installedPaths.getAllPaths("Microsoft Word").then (paths=>{
        console.log(paths)   //paths is an array that contains the paths of all installed apps with name containing "Microsoft Word". e.g. [{lnk: "file file path.lnk", target: "target exe path.exe"}]
    })


    installedPaths.getAllPaths("no such an app!").then (paths=>{
        console.log(paths)   //false
    })
    
    installedPaths.getAllPaths("Microsoft Word", true).then (paths=>{
        // Second parameter true means prints out lnk files only and do not extract target for faster performance 
        console.log(paths)   //paths is an array that contains the paths of all installed apps with name containing "Microsoft Word". e.g. [{lnk: "file file path.lnk", target: ""}]
    })

Functions

async getAllPaths(keyword = "", lnkOnly=false)

Caveats

  • Implementation only currently supports Windows systems
1.1.6

7 months ago

1.1.5

7 months ago

1.1.1

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.0.12

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.2

4 years ago

1.0.5

4 years ago

1.0.0

4 years ago