2727
2828Global $sVersion
2929Global $bIsPriv = _IsDestinationRestricted()
30- Global Enum $bNoApps , $bNoBing , $bNoChat , $bNoFeed , $bNoImgs , $bNoMSN , $bNoNews , $bNoPDFs , $bNoPilot , $bNoSpotlight , $bNoTray , $bNoUpdates , $sFeed , $sFeedPath , $sImages , $sImagePath , $sNews , $sPDFApp , $sSearch , $sSearchPath , $sStartMenu , $bStartup , $sWeather , $sWeatherPath
30+ Global Enum $bNoApps , $bNoBing , $bNoChat , $bNoFeed , $bNoImgs , $bNoMSN , $bNoNews , $bNoPDFs , $bNoPilot , $bNoSpotlight , $bNoTray , $bNoUpdates , $sFeed , $sFeedPath , $sImages , $sImagePath , $sNews , $sPDFApp , $sSearch , $sSearchPath , $sSMRefesh , $ sStartMenu , $bStartup , $sWeather , $sWeatherPath
3131
3232If @Compiled Then
3333 $sVersion = FileGetVersion (@ScriptFullPath )
@@ -80,6 +80,7 @@ Func RunInstall(ByRef $aConfig, ByRef $aSettings, $bSilent = False)
8080 _SetSettingValue(" PDFApp" , $aSettings [$sPDFApp ] , $sLocation )
8181 _SetSettingValue(" Search" , $aSettings [$sSearch ] , $sLocation )
8282 _SetSettingValue(" SearchPath" , $aSettings [$sSearchPath ] , $sLocation )
83+ _SetSettingValue(" SMRefresh" , $aSettings [$sSMRefesh ] , $sLocation )
8384 _SetSettingValue(" Weather" , $aSettings [$sWeather ] , $sLocation )
8485 _SetSettingValue(" WeatherPath" , $aSettings [$sWeatherPath ], $sLocation )
8586
@@ -294,7 +295,9 @@ Func RunSetup($iType = 0, $bSilent = False, $iPage = 0, $hSetupFile = @ScriptDir
294295
295296 Local Enum $iInstall , $iUpdate , $iSettings
296297
297- Local $aSettings [24 ] = [False , False , False , False , False , False , False , False , False , False , False , False , " " , " " , " " , " " , " " , " " , " " , " " , " Full" , True , " " , " " ]
298+ Local $aSettings [25 ] = [False , False , False , False , False , False , False , False , False , False , False , False , " " , " " , " " , " " , " " , " " , " " , " " , 100 , " Full" , True , " " , " " ]
299+
300+ If $iType == True Then $iType = $iUpdate
298301
299302 If $iPage < 0 Then
300303 $iPage = Abs ($iPage )
@@ -316,6 +319,7 @@ Func RunSetup($iType = 0, $bSilent = False, $iPage = 0, $hSetupFile = @ScriptDir
316319 $aSettings [$bNoSpotlight ] = _GetSettingValue(" NoSpotlight" )
317320 $aSettings [$bNoTray ] = _GetSettingValue(" NoTray" )
318321 $aSettings [$bNoUpdates ] = _GetSettingValue(" NoUpdates" )
322+ $aSettings [$sSMRefesh ] = _GetSettingValue(" SMRefresh" )
319323 If $aSettings [$bNoBing ] Then
320324 $aSettings [$sSearch ] = _GetSettingValue(" Search" )
321325 $aSettings [$sSearchPath ] = _GetSettingValue(" SearchPath" )
@@ -371,6 +375,7 @@ Func RunSetup($iType = 0, $bSilent = False, $iPage = 0, $hSetupFile = @ScriptDir
371375 $aSettings [$sPDFApp ] = _GetSettingValue(" PDFApp" , " String" , $aConfig [$hFile ])
372376 $aSettings [$sSearch ] = _GetSettingValue(" Search" , " String" , $aConfig [$hFile ])
373377 $aSettings [$sSearchPath ] = _GetSettingValue(" SearchPath" , " String" , $aConfig [$hFile ])
378+ $aSettings [$sSMRefesh ] = _GetSettingValue(" SMRefresh" , " Int" , $aConfig [$hFile ])
374379 $aSettings [$sStartMenu ] = _GetSettingValue(" StartMenu" , " String" , $aConfig [$hFile ])
375380 $aSettings [$bStartup ] = _GetSettingValue(" Startup" , " Bool" , $aConfig [$hFile ])
376381 $aSettings [$sWeather ] = _GetSettingValue(" Weather" , " String" , $aConfig [$hFile ])
@@ -508,7 +513,7 @@ Func RunSetup($iType = 0, $bSilent = False, $iPage = 0, $hSetupFile = @ScriptDir
508513 Case $iInstall
509514 GUICtrlSetData (- 1 , _Translate($aMUI [1 ], " Please read the following License. You must accept the terms of the license before continuing with the installation." ))
510515 Case Else
511- GUICtrlSetData (- 1 , _Translate($aMUI [1 ], " You should never see this. Please file a bug report." ))
516+ GUICtrlSetData (- 1 , _Translate($aMUI [1 ], " You should DEFINITELY never see this. Please file a bug report." ))
512517 _Log($hLogs [$PEBIAT ], " [WARNING] Caught Invalid UI Mode: " & $iType & @CRLF )
513518 EndSwitch
514519
@@ -546,7 +551,7 @@ Func RunSetup($iType = 0, $bSilent = False, $iPage = 0, $hSetupFile = @ScriptDir
546551 Case Else
547552 GUICtrlCreateLabel (_Translate($aMUI [1 ], " Install" ) & " MSEdgeRedirect " & $sVersion , 20 , 10 , 420 , 30 )
548553 GUICtrlSetFont (- 1 , 20 , $FW_BOLD , $GUI_FONTNORMAL , " " , $CLEARTYPE_QUALITY )
549- GUICtrlCreateLabel (_Translate($aMUI [1 ], " You should never see this. Please file a bug report." ), 20 , 40 , 420 , 40 )
554+ GUICtrlCreateLabel (_Translate($aMUI [1 ], " You should DEFINITELY never see this. Please file a bug report." ), 20 , 40 , 420 , 40 )
550555 GUICtrlSetFont (- 1 , 10 , $FW_NORMAL , $GUI_FONTNORMAL , " " , $CLEARTYPE_QUALITY )
551556 EndSwitch
552557
@@ -608,15 +613,15 @@ Func RunSetup($iType = 0, $bSilent = False, $iPage = 0, $hSetupFile = @ScriptDir
608613 Case $iInstall
609614 GUICtrlSetData (- 1 , " Install MSEdgeRedirect " & $sVersion )
610615 Case Else
611- GUICtrlSetData (- 1 , _Translate($aMUI [1 ], " You should never see this. Please file a bug report." ))
616+ GUICtrlSetData (- 1 , _Translate($aMUI [1 ], " You should DEFINITELY never see this. Please file a bug report." ))
612617 EndSwitch
613618
614- GUICtrlCreateGroup (" Edge Branch(es) To Redirect" , 20 , 40 , 420 , 50 )
615- $hChannels [0 ] = GUICtrlCreateCheckbox (" Stable" , 40 , 60 , 76 , 20 )
616- $hChannels [1 ] = GUICtrlCreateCheckbox (" Beta" , 116 , 60 , 76 , 20 )
617- $hChannels [2 ] = GUICtrlCreateCheckbox (" Dev" , 192 , 60 , 76 , 20 )
618- $hChannels [3 ] = GUICtrlCreateCheckbox (" Canary" , 268 , 60 , 76 , 20 )
619- $hChannels [4 ] = GUICtrlCreateCheckbox (" Stub (Auto)" , 344 , 60 , 76 , 20 )
619+ GUICtrlCreateGroup (" Edge Branch(es) To Redirect" , 20 , 50 , 420 , 50 )
620+ $hChannels [0 ] = GUICtrlCreateCheckbox (" Stable" , 40 , 70 , 76 , 20 )
621+ $hChannels [1 ] = GUICtrlCreateCheckbox (" Beta" , 116 , 70 , 76 , 20 )
622+ $hChannels [2 ] = GUICtrlCreateCheckbox (" Dev" , 192 , 70 , 76 , 20 )
623+ $hChannels [3 ] = GUICtrlCreateCheckbox (" Canary" , 268 , 70 , 76 , 20 )
624+ $hChannels [4 ] = GUICtrlCreateCheckbox (" Stub (Auto)" , 344 , 70 , 76 , 20 )
620625 GUICtrlSetState (- 1 , $GUI_DISABLE )
621626
622627 If $iType Then
@@ -642,14 +647,21 @@ Func RunSetup($iType = 0, $bSilent = False, $iPage = 0, $hSetupFile = @ScriptDir
642647 ; ;;
643648 EndSelect
644649
645- GUICtrlCreateGroup (" Service Mode Options" , 20 , 140 , 420 , 50 )
646- Local $hNoIcon = GUICtrlCreateCheckbox (" Hide Service Mode from Tray" , 50 , 160 , 180 , 20 )
647- Local $hStartup = GUICtrlCreateCheckbox (" Start Service Mode With Windows" , 240 , 160 , 180 , 20 )
650+ GUICtrlCreateGroup (" Service Mode Options" , 20 , 100 , 420 , 50 )
651+ GUICtrlCreateLabel (" Refresh (ms):" , 40 , 120 , 70 , 20 , $SS_CENTERIMAGE )
652+ Local $hRefresh = GUICtrlCreateInput (" 100" , 110 , 120 , 50 , 20 , $ES_NUMBER + $ES_RIGHT )
653+ GUICtrlCreateUpdown ($hRefresh )
654+ GUICtrlSetLimit (- 1 , 2000 , 100 )
655+ Local $hNoIcon = GUICtrlCreateCheckbox (" Hide Tray Icon" , 170 , 120 , 120 , 20 )
656+ GUICtrlSetState (- 1 , $aSettings [$bNoTray ])
657+ Local $hStartup = GUICtrlCreateCheckbox (" Start w/ Windows" , 300 , 120 , 120 , 20 )
658+ GUICtrlSetState (- 1 , $aSettings [$bStartup ])
648659
649660 Select
650661 Case $bIsAdmin
651662 ContinueCase
652663 Case $aInstall [0 ] And $aInstall [1 ] = " HKLM"
664+ GUICtrlSetState ($hRefresh , $GUI_DISABLE )
653665 GUICtrlSetState ($hStartup , $GUI_DISABLE )
654666 GUICtrlSetState ($hNoIcon , $GUI_DISABLE )
655667 Case $iType = $iUpdate
@@ -754,7 +766,7 @@ Func RunSetup($iType = 0, $bSilent = False, $iPage = 0, $hSetupFile = @ScriptDir
754766 Case $iInstall
755767 GUICtrlSetData (- 1 , " Installed Successfully" )
756768 Case Else
757- GUICtrlSetData (- 1 , _Translate($aMUI [1 ], " You should never see this. Please file a bug report." ))
769+ GUICtrlSetData (- 1 , _Translate($aMUI [1 ], " You should DEFINITELY never see this. Please file a bug report." ))
758770 EndSwitch
759771
760772 Local $hLaunch = GUICtrlCreateCheckbox (" Launch Service Mode Now" , 20 , 200 , 190 , 20 )
@@ -982,6 +994,7 @@ Func RunSetup($iType = 0, $bSilent = False, $iPage = 0, $hSetupFile = @ScriptDir
982994 $aSettings [$sPDFApp ] = $sHandler
983995 $aSettings [$sSearch ] = GUICtrlRead ($hEngine )
984996 $aSettings [$sSearchPath ] = $sEngine
997+ $aSettings [$sSMRefesh ] = GUICtrlRead ($hRefresh )
985998 $aSettings [$bStartup ] = _IsChecked($hStartup )
986999 $aSettings [$sWeather ] = GUICtrlRead ($hWeather )
9871000 $aSettings [$sWeatherPath ] = $sWeatherEng
0 commit comments