|
|
@ -562,11 +562,7 @@ public static string GetString(uint strId) |
|
|
|
} |
|
|
|
|
|
|
|
# Check if Microsoft Edge as being a system component was removed by harmful tweakers |
|
|
|
if (Test-Path -Path "${env:ProgramFiles(x86)}\Microsoft\Edge\Application\msedge.exe") |
|
|
|
{ |
|
|
|
return |
|
|
|
} |
|
|
|
else |
|
|
|
if (-not (Test-Path -Path "${env:ProgramFiles(x86)}\Microsoft\Edge\Application\msedge.exe")) |
|
|
|
{ |
|
|
|
Write-Information -MessageData "" -InformationAction Continue |
|
|
|
# Extract the localized "Please wait..." string from shell32.dll |
|
|
@ -630,6 +626,9 @@ public static string GetString(uint strId) |
|
|
|
# Save all opened folders in order to restore them after File Explorer restart |
|
|
|
$Script:OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke() |
|
|
|
|
|
|
|
# Import PowerShell 5.1 modules |
|
|
|
Import-Module -Name Microsoft.PowerShell.Management, PackageManagement, Appx -UseWindowsPowerShell |
|
|
|
|
|
|
|
# Display a warning message about whether a user has customized the preset file |
|
|
|
if ($Warning) |
|
|
|
{ |
|
|
@ -14960,8 +14959,7 @@ public static void PostMessage() |
|
|
|
$ToastXml.LoadXml($ToastTemplate.OuterXml) |
|
|
|
|
|
|
|
$ToastMessage = [Windows.UI.Notifications.ToastNotification]::New($ToastXML) |
|
|
|
# PowerShell 7.3 doesn't support yet using own caller app toast notifications. Fixed in PowerShell 7.4.0-preview.1 |
|
|
|
[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier().Show($ToastMessage) |
|
|
|
[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier("Sophia").Show($ToastMessage) |
|
|
|
|
|
|
|
# Telegram channel |
|
|
|
# Extract the localized "Open" string from shell32.dll |
|
|
@ -14989,8 +14987,7 @@ public static void PostMessage() |
|
|
|
$ToastXml.LoadXml($ToastTemplate.OuterXml) |
|
|
|
|
|
|
|
$ToastMessage = [Windows.UI.Notifications.ToastNotification]::New($ToastXML) |
|
|
|
# PowerShell 7.3 doesn't support yet using own caller app toast notifications. Fixed in PowerShell 7.4.0-preview.1 |
|
|
|
[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier().Show($ToastMessage) |
|
|
|
[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier("Sophia").Show($ToastMessage) |
|
|
|
|
|
|
|
# Discord group |
|
|
|
# Extract the localized "Open" string from shell32.dll |
|
|
@ -15018,8 +15015,7 @@ public static void PostMessage() |
|
|
|
$ToastXml.LoadXml($ToastTemplate.OuterXml) |
|
|
|
|
|
|
|
$ToastMessage = [Windows.UI.Notifications.ToastNotification]::New($ToastXML) |
|
|
|
# PowerShell 7.3 doesn't support yet using own caller app toast notifications. Fixed in PowerShell 7.4.0-preview.1 |
|
|
|
[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier().Show($ToastMessage) |
|
|
|
[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier("Sophia").Show($ToastMessage) |
|
|
|
#endregion Toast notifications |
|
|
|
|
|
|
|
# Check for UWP apps updates |
|
|
|