error log message updates

main
Yuriy 6 months ago
parent cf56ae8136
commit 96a8fb9566

@ -338,7 +338,6 @@ CheckForChromeUpdates(ChromeFilepath := ""){
GetInstalledChromeFilepath(){ GetInstalledChromeFilepath(){
; ChromeFilepath is global variable ; ChromeFilepath is global variable
if(ChromeFilepath = ""){ if(ChromeFilepath = ""){
ChromePortableFilepath = %A_ScriptDir%\Lib\chrome-win64\chrome.exe ChromePortableFilepath = %A_ScriptDir%\Lib\chrome-win64\chrome.exe
@ -355,15 +354,7 @@ GetInstalledChromeFilepath(){
SaveOrPostProgress(Message:=Message,PostType:="ErrorLoggingTextFile,DiscordErrorLogging") SaveOrPostProgress(Message:=Message,PostType:="ErrorLoggingTextFile,DiscordErrorLogging")
} }
else { else {
MsgBox 0x10, Chromium Portable not Found, Chromium Portable not found. `nPlease make sure it's located at one of the following paths and then try again.`n`n%ChromePortableFilepath% `nOR`n%ChromePortableFilepath2% MsgBox 0x10, Chrome Not Found, Chrome for Testing not found.`nIf this is your first time running on this computer, please click the "Chrome Up-To-Date" button to download the latest chrome binaries.
; Leave this in for now, but i don't think we will be going to using the system Chrome in the future.
; if(FileExist("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"))
; ChromeFilepath = C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
; if(FileExist("C:\Program Files\Google\Chrome\Application\chrome.exe"))
; ChromeFilepath = C:\Program Files\Google\Chrome\Application\chrome.exe
} }
} }
ToolTip ToolTip

@ -8,17 +8,17 @@ CheckForUpdates:
; GitReleasesAPIURL ; GitReleasesAPIURL
; ChromeFilepath ; ChromeFilepath
Message = Checking for Updates ; Message = Checking for Updates
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging") ; SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
if(CheckForUpdates(GitReleasesAPIURL)){ if(CheckForUpdates(GitReleasesAPIURL)){
GuiControl,,UpdateAvailable, Update Available! GuiControl,,UpdateAvailable, %ScriptAbbreviatedName% Update Available!
} }
if(CheckForChromeUpdates(ChromeFilepath)){ if(CheckForChromeUpdates(ChromeFilepath)){
GuiControl,,ChromeUpdateAvailable, Chrome Update Available! GuiControl,,ChromeUpdateAvailable, Chrome Update Available!
ChromeUpdateAvailable := 1 ; ChromeUpdateAvailable := 1
} }
ToolTip ToolTip
Return Return
@ -29,6 +29,14 @@ Return
UpdateChrome: UpdateChrome:
; if chroem doesn't exist, download it
if(ChromeFilepath = ""){
Status := DownloadLatestChromium()
if(Status)
GuiControl,,ChromeUpdateAvailable, Chrome Up-To-Date
Return
}
if(CheckForChromeUpdates = "") if(CheckForChromeUpdates = "")
Status := CheckForChromeUpdates(ChromeFilepath) Status := CheckForChromeUpdates(ChromeFilepath)
@ -46,7 +54,7 @@ if(!status){
Status := DownloadLatestChromium() Status := DownloadLatestChromium()
if(Status) if(Status)
GuiControl,,ChromeUpdateAvailable, Chrome Up-to-Date GuiControl,,ChromeUpdateAvailable, Chrome Up-To-Date
Return Return
/* /*

Loading…
Cancel
Save