Browse Source

Avoid a potential crash in wmic.exe check

pull/543/head
WindowsAddict 4 months ago
parent
commit
79bc7b0242
  1. 2
      MAS/Separate-Files-Version/Activators/HWID_Activation.cmd
  2. 2
      MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd
  3. 2
      MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd
  4. 4
      MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd
  5. 2
      MAS/Separate-Files-Version/Change_Edition.cmd

2
MAS/Separate-Files-Version/Activators/HWID_Activation.cmd

@ -992,7 +992,7 @@ function ReinstallLicenses() { @@ -992,7 +992,7 @@ function ReinstallLicenses() {
set _wmic=0
for %%# in (wmic.exe) do @if not "%%~$PATH:#"=="" (
wmic path Win32_ComputerSystem get CreationClassName /value %nul2% | find /i "computersystem" %nul1% && set _wmic=1
cmd /c "wmic path Win32_ComputerSystem get CreationClassName /value" %nul2% | find /i "computersystem" %nul1% && set _wmic=1
)
exit /b

2
MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd

@ -1090,7 +1090,7 @@ function ReinstallLicenses() { @@ -1090,7 +1090,7 @@ function ReinstallLicenses() {
set _wmic=0
for %%# in (wmic.exe) do @if not "%%~$PATH:#"=="" (
wmic path Win32_ComputerSystem get CreationClassName /value %nul2% | find /i "computersystem" %nul1% && set _wmic=1
cmd /c "wmic path Win32_ComputerSystem get CreationClassName /value" %nul2% | find /i "computersystem" %nul1% && set _wmic=1
)
exit /b

2
MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd

@ -1458,7 +1458,7 @@ function ReinstallLicenses() { @@ -1458,7 +1458,7 @@ function ReinstallLicenses() {
set _wmic=0
for %%# in (wmic.exe) do @if not "%%~$PATH:#"=="" (
wmic path Win32_ComputerSystem get CreationClassName /value %nul2% | find /i "computersystem" %nul1% && set _wmic=1
cmd /c "wmic path Win32_ComputerSystem get CreationClassName /value" %nul2% | find /i "computersystem" %nul1% && set _wmic=1
)
exit /b

4
MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd

@ -1540,7 +1540,7 @@ set t_name=Run Once Task @@ -1540,7 +1540,7 @@ set t_name=Run Once Task
set _wmic=0
for %%# in (wmic.exe) do @if not "%%~$PATH:#"=="" (
wmic path Win32_ComputerSystem get CreationClassName /value 2>nul | find /i "computersystem" 1>nul && set _wmic=1
cmd /c "wmic path Win32_ComputerSystem get CreationClassName /value" 2>nul | find /i "computersystem" 1>nul && set _wmic=1
)
setlocal EnableDelayedExpansion
@ -2446,7 +2446,7 @@ function ReinstallLicenses() { @@ -2446,7 +2446,7 @@ function ReinstallLicenses() {
set _wmic=0
for %%# in (wmic.exe) do @if not "%%~$PATH:#"=="" (
wmic path Win32_ComputerSystem get CreationClassName /value %nul2% | find /i "computersystem" %nul1% && set _wmic=1
cmd /c "wmic path Win32_ComputerSystem get CreationClassName /value" %nul2% | find /i "computersystem" %nul1% && set _wmic=1
)
exit /b

2
MAS/Separate-Files-Version/Change_Edition.cmd

@ -850,7 +850,7 @@ exit /b @@ -850,7 +850,7 @@ exit /b
set _wmic=0
for %%# in (wmic.exe) do @if not "%%~$PATH:#"=="" (
wmic path Win32_ComputerSystem get CreationClassName /value %nul2% | find /i "computersystem" %nul1% && set _wmic=1
cmd /c "wmic path Win32_ComputerSystem get CreationClassName /value" %nul2% | find /i "computersystem" %nul1% && set _wmic=1
)
exit /b

Loading…
Cancel
Save