added ability to automatically download newest chromium-testing and chromedriver

This commit is contained in:
2023-09-20 20:45:12 -04:00
parent ca7145fa82
commit 1962743565
4 changed files with 309 additions and 50 deletions

View File

@@ -385,23 +385,10 @@ OnMsgBoxUpdateAvailable() {
SaveCurrentChromeVersionToIniFile(){
; Msgbox % "ChromeFilepath: " ChromeFilepath
GetChromeVersionCommand = powershell (Get-Item '%ChromeFilepath%').VersionInfo.ProductVersion
Chromeversion := RunCMD(GetChromeVersionCommand)
if(InStr(ChromeVersion, "scripts is disabled on this system")){
ChromeVersion = Not Able to Grab Because: "scripts are disabled in powershell"
}
; Msgbox % "Chromeversion: " Chromeversion
if(InstalledChromeVersion = "")
InstalledChromeVersion := GetInstalledChromeVersion()
; Msgbox % "Chromeversion: " Chromeversion
if(ChromeFilepath = "")
return
; Chromeversion := StrSplit(Chromeversion, "`n")
; Chromeversion := Chromeversion[4]
IniWrite, %ChromeVersion%, Settings.ini, Misc, ChromeVersion
IniWrite, %InstalledChromeVersion%, Settings.ini, Misc, ChromeVersion
}