Browse Source

#453

pull/455/head
Dmitry Nefedov 1 year ago
parent
commit
e42b1a4653
  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,6 +14314,9 @@ 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
Add-Type -AssemblyName "$PSScriptRoot\..\bin\WinRT.Runtime.dll"
Add-Type -AssemblyName "$PSScriptRoot\..\bin\Microsoft.Windows.SDK.NET.dll"
# 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,6 +13692,9 @@ 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
Add-Type -AssemblyName "$PSScriptRoot\..\bin\WinRT.Runtime.dll"
Add-Type -AssemblyName "$PSScriptRoot\..\bin\Microsoft.Windows.SDK.NET.dll"
# 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