remove photon from apps list to fix #17

This commit is contained in:
zoicware
2025-07-25 12:30:13 -04:00
committed by GitHub
parent 524eec3402
commit 9f95ae99ed

View File

@@ -230,7 +230,7 @@ if (!(test-path $packageRemovalPath)) {
#needed for separate powershell sessions #needed for separate powershell sessions
$aipackages = @( $aipackages = @(
'MicrosoftWindows.Client.Photon' # 'MicrosoftWindows.Client.Photon'
'MicrosoftWindows.Client.AIX' 'MicrosoftWindows.Client.AIX'
'MicrosoftWindows.Client.CoPilot' 'MicrosoftWindows.Client.CoPilot'
'Microsoft.Windows.Ai.Copilot.Provider' 'Microsoft.Windows.Ai.Copilot.Provider'
@@ -267,7 +267,6 @@ $aipackages = @(
$code = @' $code = @'
$aipackages = @( $aipackages = @(
'MicrosoftWindows.Client.Photon'
'MicrosoftWindows.Client.AIX' 'MicrosoftWindows.Client.AIX'
'MicrosoftWindows.Client.CoPilot' 'MicrosoftWindows.Client.CoPilot'
'Microsoft.Windows.Ai.Copilot.Provider' 'Microsoft.Windows.Ai.Copilot.Provider'
@@ -447,17 +446,18 @@ foreach ($package in $aipackages) {
foreach ($Path in $packagesPath) { foreach ($Path in $packagesPath) {
#only remove dlls from photon to prevent startmenu from breaking #only remove dlls from photon to prevent startmenu from breaking
if ($path -like '*Photon*') { # if ($path -like '*Photon*') {
$command = "`$dlls = (Get-ChildItem -Path $Path -Filter *.dll).FullName; foreach(`$dll in `$dlls){Remove-item ""`$dll"" -force}" # $command = "`$dlls = (Get-ChildItem -Path $Path -Filter *.dll).FullName; foreach(`$dll in `$dlls){Remove-item ""`$dll"" -force}"
Run-Trusted -command $command -psversion $psversion # Run-Trusted -command $command -psversion $psversion
Start-Sleep 1 # Start-Sleep 1
} # }
else { # else {
$command = "Remove-item ""$Path"" -force -recurse" $command = "Remove-item ""$Path"" -force -recurse"
Run-Trusted -command $command -psversion $psversion Run-Trusted -command $command -psversion $psversion
Start-Sleep 1 Start-Sleep 1
# }
} }
}
#remove machine learning dlls #remove machine learning dlls
$paths = @( $paths = @(