wmic path detection (windows)
This commit is contained in:
parent
d110419c4f
commit
6fcf575ad5
@ -30,7 +30,8 @@ For major (breaking) changes - version 3 and 2 see end of page.
|
||||
|
||||
| Version | Date | Comment |
|
||||
| -------------- | -------------- | -------- |
|
||||
| 4.1.2 | 2019-03-23 | updated dics |
|
||||
| 4.1.3 | 2019-03-24 | wmic path detection (windows) |
|
||||
| 4.1.2 | 2019-03-23 | updated docs |
|
||||
| 4.1.1 | 2019-03-13 | updated typescript typings |
|
||||
| 4.1.0 | 2019-03-13 | `versions()` added pip, pip3 |
|
||||
| 4.0.16 | 2019-03-12 | Happy birthday - 5th aniversary |
|
||||
@ -108,7 +109,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
|
||||
| 3.42.2 | 2018-07-03 | `users()` optimized results if lack of permissions |
|
||||
| 3.42.1 | 2018-07-03 | `versions()` bugfix git version macOS |
|
||||
| 3.42.0 | 2018-06-01 | `processes()` added parent process PID |
|
||||
| 3.41.4 | 2018-05-28 | windows exec WMIC in try catch |
|
||||
| 3.41.4 | 2018-05-28 | windows exec WMIC path detection (windows) in try catch |
|
||||
| 3.41.3 | 2018-05-13 | improved SunOS support `getStaticData()`, `getDynamicData()` |
|
||||
| 3.41.2 | 2018-05-13 | bugfix `system()` and `flags()` Raspberry Pi |
|
||||
| 3.41.1 | 2018-05-11 | updated docs |
|
||||
@ -139,8 +140,8 @@ For major (breaking) changes - version 3 and 2 see end of page.
|
||||
| 3.33.13 | 2018-01-12 | bugfix `memLayout()` (Windows) |
|
||||
| 3.33.12 | 2017-12-25 | fixed typos |
|
||||
| 3.33.11 | 2017-12-17 | updated docs |
|
||||
| 3.33.10 | 2017-12-14 | bugfix WMIC blockDevice parse (Windows 7) |
|
||||
| 3.33.9 | 2017-12-14 | bugfix WMIC not found (Windows) |
|
||||
| 3.33.10 | 2017-12-14 | bugfix WMIC path detection (windows) blockDevice parse (Windows 7) |
|
||||
| 3.33.9 | 2017-12-14 | bugfix WMIC path detection (windows) not found (Windows) |
|
||||
| 3.33.8 | 2017-12-02 | bugfix diskLayout().size (OSX) |
|
||||
| 3.33.7 | 2017-11-28 | bugfix diskLayout().size |
|
||||
| 3.33.6 | 2017-11-16 | bugfix diskLayout().size |
|
||||
|
||||
@ -105,7 +105,6 @@ si.cpu()
|
||||
- Version 3.52.0: `cpu()` added physical cores, processors, socket type
|
||||
- Version 3.51.0: `processLoad()` added for windows
|
||||
- Version 3.50.0: `services()` added possibility to specify ALL services "*" for linux/win
|
||||
- Version 3.49.0: `uuid()` added - os specific uuid (per installation)
|
||||
- ...
|
||||
|
||||
You can find all changes here: [detailed changelog][changelog-url]
|
||||
|
||||
@ -80,10 +80,15 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">4.1.3</th>
|
||||
<td>2019-03-24</td>
|
||||
<td>wmic path detection (windows)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">4.1.2</th>
|
||||
<td>2019-03-23</td>
|
||||
<td>updated dics</td>
|
||||
<td>updated docs</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">4.1.1</th>
|
||||
|
||||
@ -170,7 +170,7 @@
|
||||
<img class="logo" src="assets/logo.png">
|
||||
<div class="title">systeminformation</div>
|
||||
<div class="subtitle"><span id="typed"></span></div>
|
||||
<div class="version">Current Version: <span id="version">4.1.2</span></div>
|
||||
<div class="version">Current Version: <span id="version">4.1.3</span></div>
|
||||
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
|
||||
</div>
|
||||
<div class="down">
|
||||
@ -201,7 +201,7 @@
|
||||
<div class="title">Downloads last month</div>
|
||||
</div>
|
||||
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
|
||||
<div class="numbers">139</div>
|
||||
<div class="numbers">141</div>
|
||||
<div class="title">Dependends</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
10
lib/util.js
10
lib/util.js
@ -221,9 +221,13 @@ function findObjectByKey(array, key, value) {
|
||||
|
||||
function getWmic() {
|
||||
if (os.type() === 'Windows_NT' && !wmic) {
|
||||
if (fs.existsSync(process.env.WINDIR + '\\system32\\wbem\\wmic.exe')) {
|
||||
wmic = process.env.WINDIR + '\\system32\\wbem\\wmic.exe';
|
||||
} else wmic = 'wmic';
|
||||
try {
|
||||
wmic = execSync('WHERE WMIC').toString().trim();
|
||||
} catch (e) {
|
||||
if (fs.existsSync(process.env.WINDIR + '\\system32\\wbem\\wmic.exe')) {
|
||||
wmic = process.env.WINDIR + '\\system32\\wbem\\wmic.exe';
|
||||
} else wmic = 'wmic';
|
||||
}
|
||||
}
|
||||
return wmic;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user