|
@ -3985,13 +3985,12 @@ function Cursors |
|
|
New-Item -Path "$env:SystemRoot\Cursors\W11_dark_v2.2" -ItemType Directory -Force |
|
|
New-Item -Path "$env:SystemRoot\Cursors\W11_dark_v2.2" -ItemType Directory -Force |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
$Parameters = @{ |
|
|
Add-Type -Assembly System.IO.Compression.FileSystem |
|
|
Path = "$DownloadsFolder\Cursors.zip" |
|
|
$ZIP = [IO.Compression.ZipFile]::OpenRead("$DownloadsFolder\Cursors.zip") |
|
|
DestinationPath = "$env:SystemRoot\Cursors\W11_dark_v2.2" |
|
|
$ZIP.Entries | Where-Object -FilterScript {$_.FullName -like "dark/*.*"} | ForEach-Object -Process { |
|
|
Force = $true |
|
|
[IO.Compression.ZipFileExtensions]::ExtractToFile($_, "$env:SystemRoot\Cursors\W11_dark_v2.2\$($_.Name)", $true) |
|
|
Verbose = $true |
|
|
|
|
|
} |
|
|
} |
|
|
Expand-Archive @Parameters |
|
|
$ZIP.Dispose() |
|
|
|
|
|
|
|
|
Remove-Item -Path "$DownloadsFolder\Cursors.zip" -Force |
|
|
Remove-Item -Path "$DownloadsFolder\Cursors.zip" -Force |
|
|
|
|
|
|
|
@ -4103,13 +4102,12 @@ function Cursors |
|
|
New-Item -Path "$env:SystemRoot\Cursors\W11_light_v2.2" -ItemType Directory -Force |
|
|
New-Item -Path "$env:SystemRoot\Cursors\W11_light_v2.2" -ItemType Directory -Force |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
$Parameters = @{ |
|
|
Add-Type -Assembly System.IO.Compression.FileSystem |
|
|
Path = "$DownloadsFolder\Cursors.zip" |
|
|
$ZIP = [IO.Compression.ZipFile]::OpenRead("$DownloadsFolder\Cursors.zip") |
|
|
DestinationPath = "$env:SystemRoot\Cursors\W11_light_v2.2" |
|
|
$ZIP.Entries | Where-Object -FilterScript {$_.FullName -like "light/*.*"} | ForEach-Object -Process { |
|
|
Force = $true |
|
|
[IO.Compression.ZipFileExtensions]::ExtractToFile($_, "$env:SystemRoot\Cursors\W11_light_v2.2\$($_.Name)", $true) |
|
|
Verbose = $true |
|
|
|
|
|
} |
|
|
} |
|
|
Expand-Archive @Parameters |
|
|
$ZIP.Dispose() |
|
|
|
|
|
|
|
|
Remove-Item -Path "$DownloadsFolder\Cursors.zip" -Force |
|
|
Remove-Item -Path "$DownloadsFolder\Cursors.zip" -Force |
|
|
|
|
|
|
|
@ -10763,10 +10761,10 @@ function HEIF |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
# https://github.com/farag2/Sophia-Script-for-Windows/tree/master/AppX |
|
|
# https://github.com/farag2/Sophia-Script-for-Windows/tree/master/Misc |
|
|
$DownloadsFolder = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{374DE290-123F-4565-9164-39C4925E467B}" |
|
|
$DownloadsFolder = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{374DE290-123F-4565-9164-39C4925E467B}" |
|
|
$Parameters = @{ |
|
|
$Parameters = @{ |
|
|
Uri = "https://github.com/farag2/Sophia-Script-for-Windows/raw/master/AppX/Microsoft.HEVCVideoExtension_2.0.51121.0_x64__8wekyb3d8bbwe.Appx" |
|
|
Uri = "https://github.com/farag2/Sophia-Script-for-Windows/raw/master/Misc/Microsoft.HEVCVideoExtension_2.0.51121.0_x64__8wekyb3d8bbwe.Appx" |
|
|
OutFile = "$DownloadsFolder\Microsoft.HEVCVideoExtension_2.0.51121.0_x64__8wekyb3d8bbwe.Appx" |
|
|
OutFile = "$DownloadsFolder\Microsoft.HEVCVideoExtension_2.0.51121.0_x64__8wekyb3d8bbwe.Appx" |
|
|
UseBasicParsing = $true |
|
|
UseBasicParsing = $true |
|
|
Verbose = $true |
|
|
Verbose = $true |
|
|