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

Improve disk checks - Second try #488

Closed
wants to merge 36 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
e8a83e4
Update .gitignore for <ISN AutoIT Studio>
htcfreek Jul 7, 2021
3a28392
Small improvements
htcfreek Jul 7, 2021
96c017b
Update/replace <GetDiskInfoFromWmi> from <https://github.com/htcfreek…
htcfreek Jul 7, 2021
22e988d
Remove old functions and mark parts to update
htcfreek Jul 7, 2021
b0f7c23
Add new function <_GetDiskProperties>
htcfreek Jul 7, 2021
60a7bc8
Add new <GPTCheck> function
htcfreek Jul 7, 2021
5a112b0
Fix function <GPTCheck>
htcfreek Jul 7, 2021
e578335
Add new <SpaceCheck>
htcfreek Jul 7, 2021
a33ccfc
Tidy source
htcfreek Jul 7, 2021
8044e39
Fixes and improving progress
htcfreek Jul 7, 2021
6439d9d
Small fixes and improvements
htcfreek Jul 8, 2021
c87658e
Merge branch <Main> from <rcmaehl/WhyNotWin11>
htcfreek Jul 8, 2021
ae1ede2
Fix merge conflict
htcfreek Jul 8, 2021
1a0c96f
Fix typos
htcfreek Jul 8, 2021
678b562
Fix function <GetDiskProperties>
htcfreek Jul 8, 2021
771e9c8
Improve check message
htcfreek Jul 8, 2021
3f4c374
Add missing word <Warning> to lang files (#440)
htcfreek Jul 8, 2021
9546595
update lang files
htcfreek Jul 8, 2021
ca32c02
Fix typo in .gitignore
htcfreek Jul 8, 2021
6fb9241
Fix lang files after update
htcfreek Jul 8, 2021
a10cc0c
Update disk checks; Tidy source
htcfreek Jul 8, 2021
8821c72
small fixes
htcfreek Jul 8, 2021
1c0b4df
Remove added word <Warning> (See conversation on #440)
htcfreek Jul 8, 2021
5bc1ccc
Fix incorrect lang files.
htcfreek Jul 9, 2021
678e685
Merge branch <Main> from <rcmaehl/WhyNotWin11>
htcfreek Jul 9, 2021
838eafb
Fix Typo
htcfreek Jul 9, 2021
8fc267b
Tidy source
htcfreek Jul 9, 2021
b1af270
Clean up lang files
htcfreek Jul 9, 2021
220d422
Merge branch <Main> from <rcmeahl/WhyNotWin11>
htcfreek Jul 10, 2021
f591834
Fix merge mistakes and improve loading bar
htcfreek Jul 10, 2021
c1bba70
Tidy source
htcfreek Jul 10, 2021
8b73195
Merge branch 'main' into Feature/improveDiskCheckTwo
rcmaehl Jul 11, 2021
15fd318
Fix to many wmi calls are done.
htcfreek Jul 11, 2021
e87ed86
Merge branch 'main' into Feature/improveDiskCheckTwo
htcfreek Jul 11, 2021
c74fa13
Fix layout
htcfreek Jul 11, 2021
b0bd0c9
fix build warnings
htcfreek Jul 11, 2021
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
small fixes
  • Loading branch information
htcfreek committed Jul 8, 2021
commit 8821c726c08d3ee17641f1da2deebeca664f2a63
26 changes: 13 additions & 13 deletions WhyNotWin11.au3
Original file line number Diff line number Diff line change
Expand Up @@ -225,18 +225,18 @@ Func Main()
Local Enum $FontSmall, $FontMedium, $FontLarge, $FontExtraLarge
Local Const $DPI_RATIO = _GDIPlus_GraphicsGetDPIRatio()[0]

;~ #Region Init WMI data
;~ ProgressOn("WhyNotWin11", "Loading ...")
;~ ProgressSet(0, "_GetCPUInfo()")
;~ _GetCPUInfo()
;~ ProgressSet(20, "_GetDiskProperties()")
;~ _GetDiskProperties()
;~ ProgressSet(40, "_GetGPUInfo()")
;~ _GetGPUInfo()
;~ ProgressSet(60, "_GetTPMInfo()")
;~ _GetTPMInfo()
;~ ProgressSet(80, "Loading Gui...")
;~ #EndRegion Init WMI data
#Region Init WMI data
ProgressOn("WhyNotWin11", "Loading ...")
ProgressSet(0, "_GetCPUInfo()")
_GetCPUInfo()
ProgressSet(20, "_GetDiskProperties()")
_GetDiskProperties()
ProgressSet(40, "_GetGPUInfo()")
_GetGPUInfo()
ProgressSet(60, "_GetTPMInfo()")
_GetTPMInfo()
ProgressSet(80, "Loading Gui...")
#EndRegion Init WMI data

Local $hGUI = GUICreate("WhyNotWin11", 800, 600, -1, -1, BitOR($WS_POPUP, $WS_BORDER))
GUISetBkColor(_HighContrast(0xF8F8F8))
Expand Down Expand Up @@ -369,7 +369,7 @@ Func Main()
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
4 changes: 1 addition & 3 deletions includes/_Checks.au3
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,13 @@ Func _GPTCheck($iFlag)
; Return count of all int. disks
Return UBound($aDisks)
Case 3
; Return array with all disk inf format Number|Type|Result
; Return array with all disk in the format Number|Type|Result
For $i = 0 To UBound($aDisks) - 1
Local $sDiskRow = $aDisks[$i][0] & "|" & $aDisks[$i][9] & "|" & (($aDisks[$i][9] = "GPT") ? "True" : "False")
_ArrayAdd($aReturnDiskArray, $sDiskRow)
Next
Return $aReturnDiskArray
EndSwitch
; Check DiskInitType

EndFunc ;==>_GPTCheck

Func _MemCheck()
Expand Down