Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Attempt to fix TPM detection
  • Loading branch information
rcmaehl committed Jun 28, 2021
1 parent 06b340b commit 858dd22
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions WhyNotWin11.au3
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,14 @@ Func Main()
GUICtrlSetData($hCheck[9][2], Round(DriveSpaceTotal("C:\")/1024, 0) & " GB C:\" & @CRLF & $iDrives & " " & _Translate("Drive(s) Meet Requirements"))

Select
Case Not IsAdmin() And _GetTPMInfo(0) = True
GUICtrlSetData($hCheck[10][0], "OK")
GUICtrlSetBkColor($hCheck[10][0], 0x4CC355)
GUICtrlSetData($hCheck[10][2], "TPM 2.0 " & _Translate("Detected"))
Case Not IsAdmin() And _GetTPMInfo <> True
GUICtrlSetData($hCheck[10][0], "X")
GUICtrlSetBkColor($hCheck[10][0], 0xFA113D)
GUICtrlSetData($hCheck[10][2], _Translate("TPM Missing / Disabled"))
Case _GetTPMInfo(0) = False
ContinueCase
Case _GetTPMInfo(1) = False
Expand Down

0 comments on commit 858dd22

Please sign in to comment.