Browse Source

Closes #453

pull/455/head
Dmitry Nefedov 1 year ago
parent
commit
c4c8e41a0d
  1. 3
      src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1
  2. 3
      src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

3
src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1

@ -14314,9 +14314,6 @@ public static void PostMessage()
# Determines whether the app can be seen in Settings where the user can turn notifications on or off
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\AppUserModelId\Sophia -Name ShowInSettings -Value 0 -PropertyType DWord -Force
[Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] | Out-Null
[Windows.Data.Xml.Dom.XmlDocument, Windows.Data.Xml.Dom.XmlDocument, ContentType = WindowsRuntime] | Out-Null
# Apply policies found in registry to re-build database database due to gpedit.msc relies in its' own database
if ((Test-Path -Path "$env:TEMP\Computer.txt") -or (Test-Path -Path "$env:TEMP\User.txt"))
{

3
src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

@ -13692,9 +13692,6 @@ public static void PostMessage()
# Determines whether the app can be seen in Settings where the user can turn notifications on or off
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\AppUserModelId\Sophia -Name ShowInSettings -Value 0 -PropertyType DWord -Force
[Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] | Out-Null
[Windows.Data.Xml.Dom.XmlDocument, Windows.Data.Xml.Dom.XmlDocument, ContentType = WindowsRuntime] | Out-Null
# Apply policies found in registry to re-build database database due to gpedit.msc relies in its' own database
if ((Test-Path -Path "$env:TEMP\Computer.txt") -or (Test-Path -Path "$env:TEMP\User.txt"))
{

Loading…
Cancel
Save