Skip to content

Commit

Permalink
Minor Messagebox updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmaehl committed Nov 9, 2023
1 parent 0aae348 commit 673e80b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions MSEdgeRedirect_Wrapper.au3
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Func RunInstall(ByRef $aConfig, ByRef $aSettings, $bSilent = False)
If Not FileCopy(@ScriptFullPath, $sDrive & "\Program Files\MSEdgeRedirect\MSEdgeRedirect.exe", $FC_CREATEPATH+$FC_OVERWRITE) Then
FileWrite($hLogs[$AppFailures], _NowCalc() & " - [CRITICAL] Unable to copy application to " & $sDrive & "'\Program Files\MSEdgeRedirect\MSEdgeRedirect.exe'" & @CRLF)
If Not $bSilent Then
MsgBox($MB_ICONERROR+$MB_OK, _
MsgBox($MB_ICONERROR + $MB_OK, _
"[CRITICAL]", _
"Unable to copy application to " & $sDrive & "'\Program Files\MSEdgeRedirect\MSEdgeRedirect.exe'")
EndIf
Expand All @@ -77,7 +77,7 @@ Func RunInstall(ByRef $aConfig, ByRef $aSettings, $bSilent = False)
If Not FileCopy(@ScriptFullPath, @LocalAppDataDir & "\MSEdgeRedirect\MSEdgeRedirect.exe", $FC_CREATEPATH+$FC_OVERWRITE) Then
FileWrite($hLogs[$AppFailures], _NowCalc() & " - [CRITICAL] Unable to copy application to '" & @LocalAppDataDir & "\MSEdgeRedirect\MSEdgeRedirect.exe'" & @CRLF)
If Not $bSilent Then
MsgBox($MB_ICONERROR+$MB_OK, _
MsgBox($MB_ICONERROR + $MB_OK, _
"[CRITICAL]", _
"Unable to copy application to '" & @LocalAppDataDir & "\MSEdgeRedirect\MSEdgeRedirect.exe'")
EndIf
Expand Down Expand Up @@ -382,7 +382,6 @@ Func RunSetup($bUpdate = False, $bSilent = False, $iPage = 0, $hSetupFile = @Scr
If @OSVersion = 'WIN_10' or 'WIN_11' Then DllCall(@SystemDir & "\User32.dll", "bool", "SetProcessDpiAwarenessContext", "HWND", "DPI_AWARENESS_CONTEXT" - 1)

Local $hInstallGUI = GUICreate("MSEdgeRedirect " & $sVersion & " Setup", 640, 480)

GUICtrlCreateLabel("", 0, 0, 180, 420)
GUICtrlSetBkColor(-1, 0x00A4EF)

Expand Down

0 comments on commit 673e80b

Please sign in to comment.