Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from rcmaehl:main #9

Open
wants to merge 703 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
703 commits
Select commit Hold shift + click to select a range
86cd980
Update Hebrew translation (#547)
dinuto Aug 5, 2021
9a76c08
#106
rcmaehl Aug 6, 2021
ef88df2
Merge branch 'main' of https://github.com/rcmaehl/WhyNotWin11 into main
rcmaehl Aug 6, 2021
f6db402
Potential fix for 1600AF
rcmaehl Aug 6, 2021
a76fdad
EL-GR - Update - Using GitHub Editor (#555)
Mant08 Aug 6, 2021
a321d9d
#551
rcmaehl Aug 6, 2021
4952ca9
Merge branch 'main' of https://github.com/rcmaehl/WhyNotWin11 into main
rcmaehl Aug 6, 2021
7db7948
Added translation for Chinese Traditional (Hong Kong) (#557)
ShingZhanho Aug 7, 2021
e57a518
add 0C04 to the application
micwoj92 Aug 7, 2021
40af882
more Japanese translation (#556)
yuki-gh Aug 7, 2021
ee0719e
Bump version
micwoj92 Aug 7, 2021
d2b8003
#106
rcmaehl Aug 8, 2021
3713169
#106
rcmaehl Aug 9, 2021
612cc5d
Update 0407.lang (#558)
speedy-pc Aug 12, 2021
bfd8f14
Improve CPU Speed Check
rcmaehl Aug 12, 2021
0868808
Merge branch 'main' of https://github.com/rcmaehl/WhyNotWin11 into main
rcmaehl Aug 12, 2021
3dce715
Unnatural sentence modification (#561)
concertypin Aug 15, 2021
b6cff7a
metadata
micwoj92 Aug 15, 2021
348325b
Update Romanian translation to 2.3.2 (#562)
bog1200 Aug 18, 2021
d31f049
Bump version, update switches
rcmaehl Aug 18, 2021
92b0359
Add Update Switch
rcmaehl Aug 19, 2021
c365884
Add update switch
rcmaehl Aug 23, 2021
4745d49
Potential patch for #569
rcmaehl Aug 23, 2021
170b8b0
Indonesian Translation Improvements (#565)
WilloIzCitron Aug 24, 2021
b3d7b87
metadata correction
micwoj92 Aug 24, 2021
effd452
Another Improvement on Indonesian Translations (#573)
WilloIzCitron Aug 25, 2021
4c9000c
Add newly supported Intel CPUs (#577)
Aug 27, 2021
50e55e5
Fix Updater, Update Strings
rcmaehl Aug 27, 2021
263acc2
Remove "Unsure"
rcmaehl Aug 27, 2021
6bf310a
Run Tidy
rcmaehl Aug 27, 2021
29385b2
Stop tidy on commit
rcmaehl Aug 27, 2021
623a204
Update README.md
rcmaehl Aug 27, 2021
b74e212
Add missing intel processors
micwoj92 Aug 28, 2021
8b59ae7
Update Polish translation (0415.lang) (#582)
BxOxSxS Aug 28, 2021
935fdd7
Fix some i9 processors being labelled as i7
micwoj92 Aug 29, 2021
d569ab4
Add more missing intel processors
micwoj92 Aug 29, 2021
4fe4fa9
Add another missing cpu
micwoj92 Aug 29, 2021
e147449
Partial revert of 50e55e5a2f8c3d0c19f1234485990775ecf3e961
rcmaehl Aug 30, 2021
d0e724d
Update AMD Processors, Bump Version
rcmaehl Aug 30, 2021
a63ad37
Remove data wipe mention from Polish translation
micwoj92 Aug 31, 2021
a9f8c7a
Fix #592
micwoj92 Aug 31, 2021
8ce2c7a
Add i7-8809G
micwoj92 Sep 1, 2021
492d380
#595
rcmaehl Sep 2, 2021
29c4dc5
#594
rcmaehl Sep 2, 2021
ca7dca0
#594
rcmaehl Sep 2, 2021
3b5587c
#594 Fix Timeout
rcmaehl Sep 2, 2021
7eda51d
#594
rcmaehl Sep 2, 2021
e7c64bc
Update 0407.lang (#601)
speedy-pc Sep 6, 2021
6d1d17c
Fix #600
rcmaehl Sep 7, 2021
225f499
Add /force flag
rcmaehl Sep 7, 2021
2b1e8ac
Update README.md
rcmaehl Sep 14, 2021
bc29d4a
spelling correction (#603)
keunyop Sep 17, 2021
0c2c689
bump
micwoj92 Sep 17, 2021
c7bd02c
Update SupportedProcessorsIntel.txt
rcmaehl Sep 20, 2021
508900a
Merge branch 'main' of https://github.com/rcmaehl/WhyNotWin11 into main
rcmaehl Sep 20, 2021
c967239
Update .gitignore
rcmaehl Sep 22, 2021
cabb143
#594
rcmaehl Sep 22, 2021
2288500
Fix updater
rcmaehl Sep 22, 2021
d70a894
Checks, DirectX, and Errors
rcmaehl Sep 23, 2021
de792bc
Added some strings to match with 0000.lang (#605)
NekoSam395 Sep 25, 2021
e56000f
Bump version
micwoj92 Sep 25, 2021
5250689
Improve DX12 check
rcmaehl Sep 27, 2021
41b5528
Fix Display of #50
rcmaehl Sep 29, 2021
6e78604
#609
rcmaehl Sep 29, 2021
98e3726
Minor cleanup
rcmaehl Sep 29, 2021
1cc74fc
#607
rcmaehl Sep 29, 2021
a3d9a51
Remove Linux easter egg (#610)
micwoj92 Sep 29, 2021
49cb8fa
Revert "#607"
rcmaehl Sep 30, 2021
03143c6
Fixed and added some greek translations. (#611)
GalaxyGamingBoy Oct 3, 2021
5df7d87
Add Results Summary
rcmaehl Oct 5, 2021
ac74f4f
Revert test change
rcmaehl Oct 5, 2021
d7579b8
Revert "Minor cleanup"
rcmaehl Oct 6, 2021
a269a2a
Bump Version, Update Templates
rcmaehl Oct 6, 2021
7b97617
#195
rcmaehl Oct 6, 2021
469f734
Fix #621
rcmaehl Oct 6, 2021
a302c91
Update 0407.lang (#620)
speedy-pc Oct 7, 2021
2f562a1
Some Code Cleanup
rcmaehl Oct 9, 2021
e58e165
Merge branch 'main' of https://github.com/rcmaehl/WhyNotWin11
rcmaehl Oct 9, 2021
2fed126
Update README.md
rcmaehl Oct 10, 2021
a2bf927
Fix 1600AF support
rcmaehl Oct 11, 2021
b77b567
Merge branch 'main' of https://github.com/rcmaehl/WhyNotWin11
rcmaehl Oct 11, 2021
df15951
#619
rcmaehl Oct 12, 2021
270e0cc
Update Boot Method Check
rcmaehl Oct 14, 2021
9bee8f8
Update SupportedProcessorsIntel.txt (#626)
PriitUring Oct 14, 2021
262d9cd
Update Estonian - 0425.lang (#625)
PriitUring Oct 14, 2021
3d0a750
Update Traditional Chinese translation (#627)
5idereal Oct 15, 2021
6786ae4
Bump version
micwoj92 Oct 15, 2021
e6269e2
Start on #400 #488
rcmaehl Oct 15, 2021
426d0bb
Improve Responsiveness, Enable Settings
rcmaehl Oct 17, 2021
daf5eef
Start on Settings Menu
rcmaehl Oct 17, 2021
c75a1e5
[French] Update language files to version 2.4.2.1 (#628)
PierreGrillet Oct 17, 2021
566dac0
Update Language Metadata
rcmaehl Oct 18, 2021
7bece53
#195
rcmaehl Oct 18, 2021
1e57332
Don't Restart if Language in use
rcmaehl Oct 18, 2021
c5f2a02
Fix Language Switching
rcmaehl Oct 18, 2021
17a1781
#629
rcmaehl Oct 19, 2021
17655d3
Fix DirectX check on Translate
rcmaehl Oct 19, 2021
5c265bd
Update SupportedProcessorsAMD.txt (#630)
PriitUring Oct 19, 2021
6591031
Update SupportedProcessorsAMD.txt (#631)
PriitUring Oct 19, 2021
2fa9701
Update SupportedProcessorsIntelWithNetburst.txt (#632)
PriitUring Oct 19, 2021
1c47000
Update SupportedProcessorsIntel.txt (#633)
PriitUring Oct 19, 2021
458b0af
Fix Translation Credit, Improve Language switcher
rcmaehl Nov 7, 2021
3827d8e
Add hotlinks, Cursors, Theme list
rcmaehl Nov 7, 2021
0f2daab
Start on #634
rcmaehl Nov 7, 2021
b636d3f
#634
rcmaehl Nov 7, 2021
f135543
Revert "#634"
rcmaehl Nov 7, 2021
90255b1
#634, NoSocials
rcmaehl Nov 8, 2021
af7fa5c
#634, NoPopUp
rcmaehl Nov 8, 2021
e2ded25
#634, NoUpdate
rcmaehl Nov 8, 2021
d6252eb
#634, SetAppName
rcmaehl Nov 8, 2021
c4b02e3
Finish Guides
rcmaehl Nov 13, 2021
c5cb349
#634, NoAppName, NoProgress
rcmaehl Nov 13, 2021
7443acd
#634, NoInfoBox
rcmaehl Nov 14, 2021
c3426d9
#634, Hide All Settings
rcmaehl Nov 14, 2021
1befae5
#634, Hide Info Box, Hide Guides
rcmaehl Nov 14, 2021
3c8b386
Fix BitAND()s
rcmaehl Nov 14, 2021
9761d98
Theming Switcher
rcmaehl Nov 14, 2021
10b5f1e
Update SupportedProcessorsIntel.txt (#641)
PriitUring Nov 15, 2021
d7535fa
Fix DPI usage
rcmaehl Nov 29, 2021
b89aabe
Fix compiler yelling
rcmaehl Nov 29, 2021
4a50e11
Update SupportedProcessorsAMD.txt (#643)
PriitUring Dec 6, 2021
f092874
Update SupportedProcessorsIntel.txt (#644)
PriitUring Dec 6, 2021
464b9cc
Mention wine #642
micwoj92 Dec 6, 2021
84b1f9a
Bump Version, Release 2.4.3
rcmaehl Dec 13, 2021
e558913
Merge branch 'main' of https://github.com/rcmaehl/WhyNotWin11
rcmaehl Dec 13, 2021
16123e4
Update space check
rcmaehl Dec 13, 2021
8274b4f
Fix Settings Menu
rcmaehl Dec 13, 2021
c457482
Fix #645
rcmaehl Dec 13, 2021
d927fee
Bump Version
rcmaehl Dec 13, 2021
d602794
Update README.md
rcmaehl Dec 13, 2021
7f458f7
Partial Revert "Fix DPI usage"
rcmaehl Dec 27, 2021
7b603ed
Renew Security.txt
rcmaehl Jan 2, 2022
7570d57
Update Indonesian Translation (#652)
WilloIzCitron Jan 10, 2022
4a175af
Metadata
micwoj92 Jan 10, 2022
f6500e9
Update processors lists
rcmaehl Jan 11, 2022
fe0c8c9
#654
rcmaehl Jan 24, 2022
f384277
Make Guides buttons can be translated + 0000.lang (#658)
WilloIzCitron Feb 27, 2022
0ddace1
Update README.md (#659)
WilloIzCitron Mar 1, 2022
b9f3c35
Update Romanian translation to 2.4.3.1 (#660)
bog1200 Mar 5, 2022
68c2df2
Update 0407.lang (#661)
speedy-pc Mar 6, 2022
91bf2b3
update Discord and GitHub Logo (#663)
WilloIzCitron Mar 14, 2022
c9dd10d
Update SupportedProcessorsIntel.txt (#664)
WilloIzCitron Mar 14, 2022
ca449e0
Update Upload Atrifact to v3 (#665)
WilloIzCitron Mar 14, 2022
e3dbf3e
Bump Version (#667)
WilloIzCitron Mar 20, 2022
e914962
Replace tabs with spaces
rcmaehl Mar 22, 2022
d17fdfe
Update Actions to v3 (#668)
PriitUring Mar 23, 2022
edb84dd
Attempt to fix #669 and other match issues
rcmaehl Mar 26, 2022
637c7d4
Support AutoIt v.3.3.16.0
rcmaehl Mar 30, 2022
b8d9a91
Update Version Number Handling
rcmaehl Mar 30, 2022
1ae695c
Bump Version
rcmaehl Mar 30, 2022
f5ed0b6
Revert Change
rcmaehl Mar 30, 2022
5abd8fe
Workaround #647
rcmaehl Mar 30, 2022
5d3730a
#656
rcmaehl Mar 30, 2022
f8dc35f
#656
rcmaehl Mar 30, 2022
f275817
More #656
rcmaehl Mar 30, 2022
a5b1356
fix(#653): use isArray and update gitignore (#670)
WilloIzCitron Apr 4, 2022
20debd5
feat(#634): Continuing Group Policies (#671)
WilloIzCitron Apr 8, 2022
6d21f0b
Bump the cache
micwoj92 Apr 8, 2022
64b2b83
New! Pull Request Template (#673)
WilloIzCitron Apr 26, 2022
ffec687
Update Traditional Chinese translation (#672)
5idereal Apr 27, 2022
bfc8946
Update SupportedProcessorsAMD.txt (#675)
PriitUring May 24, 2022
86598d0
EL-GR Translation: Update (#677)
Mant08 May 24, 2022
57cffa3
Update 0416.lang (#679)
eduardoaddad May 26, 2022
04b2e38
Start on #681
rcmaehl Jun 29, 2022
6818fd5
Merge branch 'main' of https://github.com/rcmaehl/WhyNotWin11
rcmaehl Jun 29, 2022
15fe4ab
More #681
rcmaehl Jun 29, 2022
4aa1e2f
#681
rcmaehl Jun 29, 2022
45e19f1
Update README.md
rcmaehl Jun 29, 2022
245a823
Fix missing space
rcmaehl Jun 29, 2022
3e976dc
Add #681 error checking
rcmaehl Jun 29, 2022
ecce492
Bump Version
rcmaehl Jun 29, 2022
fb96c01
Create winget-submission
rcmaehl Jun 29, 2022
2059869
Fix call
rcmaehl Jun 29, 2022
5957fb3
Update README.md
rcmaehl Jun 29, 2022
31b2b2e
Update README.md
rcmaehl Jun 29, 2022
eb5dc3e
Rename winget-submission to winget-submission,yml
rcmaehl Jun 29, 2022
0e096aa
Rename winget-submission,yml to winget-submission.yml
rcmaehl Jun 29, 2022
f338b37
Fix #682
rcmaehl Jun 29, 2022
c196151
Merge branch 'main' of https://github.com/rcmaehl/WhyNotWin11
rcmaehl Jun 29, 2022
12dfab3
Add Ability to Translate Newer Strings
rcmaehl Jun 29, 2022
e485e84
Update 0000.lang (#685)
eduardoaddad Jun 30, 2022
2194950
Update pt-br language (#686)
eduardoaddad Jun 30, 2022
15537d7
Some high end laptops can't be upgraded, some low end laptops can (#687)
thepwrtank18 Jul 1, 2022
e9d8512
Start on #688
rcmaehl Jul 2, 2022
f2f9ab8
Add #688
rcmaehl Jul 2, 2022
a1d87b3
Grammar
rcmaehl Jul 2, 2022
5cd5254
Bump Version
rcmaehl Jul 5, 2022
08e8bb8
Visual Changes
rcmaehl Jul 7, 2022
2d4a3b7
Update README.md
rcmaehl Jul 7, 2022
642640a
Add more message details.
rcmaehl Jul 7, 2022
9a98b8a
Merge branch 'main' of https://github.com/rcmaehl/WhyNotWin11
rcmaehl Jul 7, 2022
8011bf9
[Indonesian] updating and corections (#691)
WilloIzCitron Jul 12, 2022
cc569f3
metadata
micwoj92 Jul 12, 2022
aafa639
New Graphics Enchantments (#692)
WilloIzCitron Jul 23, 2022
deba004
Fix Icon
rcmaehl Aug 3, 2022
32d06c2
Add _GetMotherboardInfo()
rcmaehl Aug 11, 2022
ce0ec8f
Add Motherboard Info
rcmaehl Aug 11, 2022
8e3a06e
Bump Version
rcmaehl Aug 11, 2022
70ef536
Improve Check Indicators
rcmaehl Aug 27, 2022
8afe250
Fix missing text
rcmaehl Aug 27, 2022
9aed7a0
Fix New Result Dialogs
rcmaehl Aug 27, 2022
e710af5
Update README.md
rcmaehl Aug 27, 2022
a7b7546
Update GetDiskInfo to latest version
micwoj92 Aug 28, 2022
f6098d1
Fix #697
rcmaehl Aug 28, 2022
c667c74
Merge branch 'main' of https://github.com/rcmaehl/WhyNotWin11
rcmaehl Aug 28, 2022
d6c483c
Bump Version
rcmaehl Aug 28, 2022
c506d2f
Fix Uncompiled Icon
rcmaehl Aug 28, 2022
bc1abea
Update 0416.lang (#700)
maisondasilva Sep 2, 2022
d026a2b
metadata
micwoj92 Sep 2, 2022
33bc1d5
Actually fix icon
rcmaehl Sep 4, 2022
f6302bb
Add Family/Model Checking
rcmaehl Sep 10, 2022
596c432
Fix Family/Model Checking
rcmaehl Sep 10, 2022
1ef480d
Actually Actually Fix Check
rcmaehl Sep 10, 2022
96e473d
Wait no
rcmaehl Sep 10, 2022
1037eca
Update 0407.lang (#702)
speedy-pc Oct 3, 2022
8db84c0
Update WhyNotWin11.au3 (#703)
speedy-pc Oct 3, 2022
47fc7fa
Update SupportedProcessorsAMD.txt (#704)
PriitUring Oct 19, 2022
a3c91be
Update SupportedProcessorsIntel.txt (#705)
PriitUring Oct 19, 2022
3a5361c
Update Estonian translation (#707)
PriitUring Oct 21, 2022
29d418f
Update 0416.lang (#708)
maisondasilva Nov 1, 2022
1675663
Spelling fix (#709)
isaak654 Nov 15, 2022
2d9b97c
Update 0407.lang (#710)
speedy-pc Nov 19, 2022
8bd63ca
Renew Security.txt
rcmaehl Jan 20, 2023
a0a3eee
Fix build status
rcmaehl Jan 20, 2023
c10bd9a
Russian language update (#711)
AHOHNMYC Jan 20, 2023
5706678
Fixed translation errors (#714)
dieguesmosken Jan 30, 2023
c75df24
2.5.0.4 (#715)
rcmaehl Feb 4, 2023
67d7e20
Update Dutch translations (#721)
arjanvlek May 14, 2023
7a78320
Fix for wrong file name download
micwoj92 May 14, 2023
4d4a872
spaces
micwoj92 May 14, 2023
97ca518
2.5.0.5 (#723)
rcmaehl Jun 1, 2023
f7b7597
Update icon (#724)
rcmaehl Jun 1, 2023
d10e527
Update SupportedProcessorsIntel.txt (#729)
LarsHMa Jul 5, 2023
111fe99
Update SupportedProcessorsIntel.txt (#730)
michaelmsonne Aug 22, 2023
8fab2dd
Update 0407.lang (#732)
speedy-pc Oct 6, 2023
4ce439e
Update SupportedProcessorsIntel.txt (#735)
xCSxXenon Dec 29, 2023
11bd035
2.6.0.0 (#737)
rcmaehl Jan 17, 2024
6e78072
2.6.0.0 - retry? (#738)
rcmaehl Jan 17, 2024
4ddfae6
Improved Slovenian and Hungarian translations (#739)
ExtremePro11299 Jan 30, 2024
616083c
Update README.md
rcmaehl Apr 12, 2024
4eaefa6
EL-GR Language: Format update and correction - Finalizing (#744)
Mant08 Apr 23, 2024
cc9704f
Update Italian language (#746)
bovirus Apr 25, 2024
645a71f
remove review process
micwoj92 Apr 25, 2024
37fe2b9
Update security.txt (#750)
rcmaehl Apr 30, 2024
b4330af
Release 2.6.1.0 (#753)
rcmaehl Jul 7, 2024
48c20c8
Update Italian language (#754)
bovirus Jul 9, 2024
2e00124
Update German 2.6.1.0 (#756)
speedy-pc Jul 9, 2024
9d7709f
Release 2.6.1.1 (#762)
rcmaehl Oct 10, 2024
196a5b8
Update Chinese - Simplified 2.6.1.1 (#763)
Coconutat Oct 11, 2024
e5ad941
Renew security.txt
rcmaehl Dec 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add working command line switches
Fix return values on occasion
Adjusted RAM Return values
Adjusted TPM Return values
Converted TPM to use existing check
  • Loading branch information
rcmaehl committed Aug 8, 2021
commit d2b8003163306e934e5f292bc9c829ef84dcfda6
131 changes: 93 additions & 38 deletions WhyNotWin11.au3
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Func ProcessCMDLine()
@TAB & "/format" & @TAB & "Export Results in an Available format, can be used" & @CRLF & _
@TAB & " " & @TAB & "without the /silent flag for both GUI and file" & @CRLF & _
@TAB & " " & @TAB & "output. Requires a filename if used." & @CRLF & _
@TAB & "formats" & @TAB & "TXT" & @CRLF & _
@TAB & "formats" & @TAB & "TXT, CSV" & @CRLF & _
@TAB & "/silent" & @TAB & "Don't Display the GUI. Compatible Systems will Exit" & @CRLF & _
@TAB & " " & @TAB & "with ERROR_SUCCESS." & @CRLF & _
@CRLF & _
Expand Down Expand Up @@ -144,16 +144,26 @@ Func ProcessCMDLine()

If Not $bSilent Then ProgressOn("WhyNotWin11", _Translate(@MUILang, "Loading WMIC"))

$aResults = RunChecks()
$aResults = RunChecks($bSilent)

ProgressSet(80, "Done")

If Not $bSilent Then Main($aResults, $aOutput)
ParseResults($aResults, $aOutput)
If Not $bSilent Then
Main($aResults, $aOutput)
Else
FinalizeResults($aResults)
EndIf
If $aOutput[0] = True Then OutputResults($aResults, $aOutput)
For $iLoop = 0 To 10 Step 1
If $aResults[$iLoop][0] = False Or $aResults[$iLoop][0] < 1 Then Exit 1
Next
Exit 0

EndFunc ;==>ProcessCMDLine

Func RunChecks()
Func RunChecks($bSilent)

#forceref $bSilent

Local $aResults[11][3]

Expand Down Expand Up @@ -218,7 +228,7 @@ Func Main(ByRef $aResults, ByRef $aOutput)

#cs ; 2.0 Theming Enums
Local Enum $iGeneral = 0, $iText, $iIcons, $iStatus

Local Enum $iBackground = 0, $iSidebar, $iFooter, $iResults
Local Enum $iDefault = 0, $iName, $iVersion, $iHeader, $iSubHead, $iLinks, $iChecks, $iResults
Local Enum $iGithub = 0, $iDonate, $iDiscord, $iLTT, $iWork, $iSettings
Expand Down Expand Up @@ -361,7 +371,7 @@ Func Main(ByRef $aResults, ByRef $aOutput)
Local $hBannerText = GUICtrlCreateLabel("", 130, 560, 90, 40, $SS_CENTER + $SS_CENTERIMAGE)
GUICtrlSetFont(-1, $aFonts[$FontSmall] * $DPI_RATIO, $FW_NORMAL, $GUI_FONTUNDER)
GUICtrlSetBkColor(-1, _HighContrast(0xE6E6E6))

Local $sBannerURL = _SetBannerText($hBannerText, $hBanner)
#ce Maybe Readd Later

Expand Down Expand Up @@ -540,7 +550,7 @@ Func Main(ByRef $aResults, ByRef $aOutput)
#Region ; _MemCheck()
If $aResults[7][0] Then
_GUICtrlSetState($hCheck[7][0], $iPass)
GUICtrlSetData($hCheck[7][2], $aResults[7][0] & " GB")
GUICtrlSetData($hCheck[7][2], $aResults[7][1] & " GB")
Else
GUICtrlSetData($hCheck[7][2], $aResults[7][1] & " GB")
_GUICtrlSetState($hCheck[7][0], $iFail)
Expand Down Expand Up @@ -571,37 +581,31 @@ Func Main(ByRef $aResults, ByRef $aOutput)
#EndRegion

#Region : TPM Check
Select
Case _GetTPMInfo(0) = False
ContinueCase
Case _GetTPMInfo(1) = False
_GUICtrlSetState($hCheck[10][0], $iFail)
GUICtrlSetData($hCheck[10][2], _Translate($iMUI, "TPM Missing / Disabled"))
Case Not Number(StringSplit(_GetTPMInfo(2), ", ", $STR_NOCOUNT)[0]) >= 1.2
_GUICtrlSetState($hCheck[10][0], $iFail)
GUICtrlSetData($hCheck[10][2], "TPM " & Number(StringSplit(_GetTPMInfo(2), ", ", $STR_NOCOUNT)[0]) & " " & _Translate($iMUI, "Not Supported"))
Case _GetTPMInfo(0) = True And _GetTPMInfo(0) = True And Number(StringSplit(_GetTPMInfo(2), ", ", $STR_NOCOUNT)[0]) >= 2.0
_GUICtrlSetState($hCheck[10][0], $iPass)
GUICtrlSetData($hCheck[10][2], "TPM " & Number(StringSplit(_GetTPMInfo(2), ", ", $STR_NOCOUNT)[0]) & " " & _Translate($iMUI, "Detected"))
Case _GetTPMInfo(0) = True And _GetTPMInfo(0) = True And Number(StringSplit(_GetTPMInfo(2), ", ", $STR_NOCOUNT)[0]) >= 1.2
;_GUICtrlSetWarn($hCheck[10][0], "OK")
_GUICtrlSetState($hCheck[10][0], $iFail)
GUICtrlSetData($hCheck[10][2], "TPM " & Number(StringSplit(_GetTPMInfo(2), ", ", $STR_NOCOUNT)[0]) & " " & _Translate($iMUI, "Detected"))
Case Else
_GUICtrlSetState($hCheck[10][0], $iFail)
GUICtrlSetData($hCheck[10][2], _GetTPMInfo(0) & " " & _GetTPMInfo(1) & " " & Number(StringSplit(_GetTPMInfo(2), ", ", $STR_NOCOUNT)[0]))
EndSelect
If $aResults[10][0] Then
_GUICtrlSetState($hCheck[10][0], $iPass)
GUICtrlSetData($hCheck[10][2], "TPM " & $aResults[10][1] & " " & _Translate($iMUI, "Detected"))
Else
_GUICtrlSetState($hCheck[10][0], $iFail)
Switch $aResults[10][1]
Case 0
GUICtrlSetData($hCheck[10][2], _Translate($iMUI, "TPM Missing / Disabled"))
Case 1
GUICtrlSetData($hCheck[10][2], "TPM " & Number(StringSplit(_GetTPMInfo(2), ", ", $STR_NOCOUNT)[0]) & " " & _Translate($iMUI, "Not Supported"))
Case 2
GUICtrlSetData($hCheck[10][2], "TPM " & Number(StringSplit(_GetTPMInfo(2), ", ", $STR_NOCOUNT)[0]) & " " & _Translate($iMUI, "Not Supported"))
EndSwitch
EndIf
#EndRegion

#EndRegion

#Region Advanced Checks Tab
#cs
Local $hAdv = GUICtrlCreateTabItem("Advanced Checks")

Local $hAdvCheck[11][3]
Local $hAdvLabel[11] = ["Camera", "Display Depth", "Display Resolution", "Display Size", "Internet Access", "S Mode", "", "", "", "", ""]

_GDIPlus_Startup()
For $iRow = 0 To 10 Step 1
$hAdvCheck[$iRow][0] = GUICtrlCreateLabel("?", 113, 110 + $iRow * 40, 40, 40, $SS_CENTER + $SS_SUNKEN + $SS_CENTERIMAGE)
Expand All @@ -625,7 +629,7 @@ Func Main(ByRef $aResults, ByRef $aOutput)
;GUICtrlSetTip(-1, $aInfo[$iRow + 10], "", $TIP_NOICON, $TIP_CENTER)
Next
_GDIPlus_Shutdown()

If _InternetCheck() Then
_GUICtrlSetState($hAdvCheck[4][0], $iPass)
GUICtrlSetData($hAdvCheck[4][2], _Translate($iMUI, "Detected"))
Expand Down Expand Up @@ -797,41 +801,92 @@ Func _GetLatestRelease($sCurrent)
EndFunc ;==>_GetLatestRelease

; #FUNCTION# ====================================================================================================================
; Name ..........: ParseResults
; Name ..........: FinalizeResults
; Description ...: Finalizes Checks that take extended periods to execute
; Syntax ........: FinalizeResults(Byref $aResults)
; Parameters ....: $aResults - an array of results
; Return values .: None
; Author ........: rcmaehl
; Modified ......: 08/08/2021
; Remarks .......:
; Related .......:
; Link ..........:
; Example .......: No
; ===============================================================================================================================
Func FinalizeResults(ByRef $aResults)

Local $aDirectX = $aResults[5][0]

While 1
Select
Case IsArray($aDirectX) And (Not ProcessExists($aDirectX[1])) And FileExists($aDirectX[0])
_GetDirectXCheck($aDirectX)
$aDirectX = Null
Case $aDirectX = Null
Return
EndSelect
WEnd

EndFunc ;==>FinalizeResults

; #FUNCTION# ====================================================================================================================
; Name ..........: OutputResults
; Description ...: Parses an Array of Check Results and formats it to a file based on file setting
; Syntax ........: ParseResults($aResults)
; Syntax ........: OutputResults($aResults)
; Parameters ....: $aResults - an array of results
; Return values .: None
; Author ........: rcmaehl
; Modified ......: 07/09/2021
; Modified ......: 08/08/2021
; Remarks .......:
; Related .......:
; Link ..........:
; Example .......: No
; ===============================================================================================================================
Func ParseResults($aResults, $aOutput)
Func OutputResults(ByRef $aResults, $aOutput)

Local $sFile, $hFile

Local $aLabel[11] = ["Architecture", "Boot Method", "CPU Compatibility", "CPU Core Count", "CPU Frequency", "DirectX + WDDM2", "Disk Partition Type", "RAM Installed", "Secure Boot", "Storage Available", "TPM Version"]

Switch $aOutput[1]
Case "txt"
Local $sFile
If StringInStr($aOutput[2], ":") Then
$sFile = $aOutput[2]
Else
$sFile = @ScriptDir & "\" & $aOutput[2]
EndIf
Local $hFile = FileOpen($sFile, $FO_CREATEPATH + $FO_OVERWRITE)
$hFile = FileOpen($sFile, $FO_CREATEPATH + $FO_OVERWRITE)
FileWrite($hFile, "Results for " & @ComputerName & @CRLF)
For $iLoop = 0 To 10 Step 1
FileWrite($hFile, $aLabel[$iLoop] & @TAB & $aResults[$iLoop][0] & @TAB & $aResults[$iLoop][1] & @TAB & $aResults[$iLoop][2] & @CRLF)
Next
FileClose($hFile)
Case "csv"
If StringInStr($aOutput[2], ":") Then
$sFile = $aOutput[2]
Else
$sFile = @ScriptDir & "\" & $aOutput[2]
EndIf
If Not FileExists($sFile) Then
$hFile = FileOpen($sFile, $FO_CREATEPATH + $FO_OVERWRITE)
FileWrite($hFile, "Hostname")
For $iLoop = 0 To 10 Step 1
FileWrite($hFile, "," & $aLabel[$iLoop])
Next
FileWrite($hFile, @CRLF)
Else
$hFile = FileOpen($sFile, $FO_APPEND)
EndIf
FileWrite($hFile, @ComputerName)
For $iLoop = 0 To 10 Step 1
FileWrite($hFile, "," & $aResults[$iLoop][0])
Next
FileClose($hFile)
Case Else
;;;
EndSwitch

EndFunc ;==>ParseResults
EndFunc ;==>OutputResults

; #FUNCTION# ====================================================================================================================
; Name ..........: _SetBannerText
Expand Down
30 changes: 15 additions & 15 deletions includes/_Checks.au3
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ Func _ArchCheck()
Case @CPUArch = "X64" And @OSArch = "X64"
Return True
Case @CPUArch = "X64" And @OSArch = "X86"
SetError(1, 0, False)
Return SetError(1, 0, False)
Case Else
SetError(2, 0, False)
Return SetError(2, 0, False)
EndSelect
EndFunc ;==>_ArchCheck

Expand All @@ -24,7 +24,7 @@ Func _BootCheck()
Case "Legacy"
Return False
Case Else
SetError(1, $sFirmware, False)
Return SetError(1, $sFirmware, False)
EndSwitch
EndFunc ;==>_BootCheck

Expand All @@ -49,10 +49,10 @@ Func _CPUNameCheck($sCPU, $sVersion)
$sLine = FileReadLine(@LocalAppDataDir & $ListFile, $iLine)
Select
Case @error
SetError(2, 0, False)
Return SetError(2, 0, False)
ExitLoop
Case $iLine = $iLines
SetError(3, 0, False)
Return SetError(3, 0, False)
ExitLoop
Case StringInStr($sCPU, $sLine)
Return True
Expand Down Expand Up @@ -103,9 +103,9 @@ Func _GetDirectXCheck($aArray)
Case StringInStr($sDXFile, "FeatureLevels:12") Or StringInStr($sDXFile, "DDIVersion:12") And StringInStr($sDXFile, "DriverModel:WDDM2")
Return 1
Case Not StringInStr($sDXFile, "FeatureLevels:12") Or Not StringInStr($sDXFile, "DDIVersion:12") And StringInStr($sDXFile, "DriverModel:WDDM2")
SetError(1, 0, False)
Return SetError(1, 0, False)
Case StringInStr($sDXFile, "DDIVersion:12") And Not StringInStr($sDXFile, "DriverModel:WDDM2")
SetError(2, 0, False)
Return SetError(2, 0, False)
Case Else
Return False
EndSelect
Expand Down Expand Up @@ -152,7 +152,7 @@ Func _MemCheck()
EndIf

If $vMem >= 4 Then
Return $vMem
Return SetError($vMem, 0, True)
Else
Return SetError($vMem, 0, False)
EndIf
Expand Down Expand Up @@ -192,20 +192,20 @@ EndFunc ;==>_SpaceCheck
Func _TPMCheck()
Select
Case Not IsAdmin() And _GetTPMInfo(0) = True
Return True
Return SetError(Number(StringSplit(_GetTPMInfo(2), ", ", $STR_NOCOUNT)[0]), 0, True)
Case Not IsAdmin() And _GetTPMInfo(0) <> True
Return False
Return SetError(0, 0, False)
Case _GetTPMInfo(0) = False
ContinueCase
Case _GetTPMInfo(1) = False
Return False
Return SetError(0, 0, False)
Case Not Number(StringSplit(_GetTPMInfo(2), ", ", $STR_NOCOUNT)[0]) >= 1.2
SetError(1, 0, False) ; Under Version 1.2
Return SetError(1, 0, False) ; Under Version 1.2
Case _GetTPMInfo(0) = True And _GetTPMInfo(0) = True And Number(StringSplit(_GetTPMInfo(2), ", ", $STR_NOCOUNT)[0]) >= 2.0
Return True
Return SetError(Number(StringSplit(_GetTPMInfo(2), ", ", $STR_NOCOUNT)[0]), 0, True)
Case _GetTPMInfo(0) = True And _GetTPMInfo(0) = True And Number(StringSplit(_GetTPMInfo(2), ", ", $STR_NOCOUNT)[0]) >= 1.2
SetError(2, 0, False) ; Under Version 1.2 ????
Return SetError(2, 0, False) ; Under Version 1.2 ????
Case Else
Return False
Return SetError(0, 0, False)
EndSelect
EndFunc ;==>_TPMCheck