Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmaehl committed Mar 30, 2022
1 parent 5abd8fe commit 5d3730a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions WhyNotWin11.au3
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

Global $aFonts[5]
Global $bWinPE = False
Global $aColors[4] ; Convert to [4][8] for 2.0 themes
Global $sVersion
Global $sEdition = "Standard"
Expand Down Expand Up @@ -204,6 +205,10 @@ Func ProcessCMDLine()
MsgBox($MB_ICONWARNING, _Translate(@MUILang, "Not Supported"), _Translate(@MUILang, "You're running the latest build!"))
EndIf
EndIf

$bWinPE = RegRead("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\WinPE", "Version")
If @error Then $bWinPE = False

EndIf
#EndRegion

Expand Down

0 comments on commit 5d3730a

Please sign in to comment.