Browse Source

Fixed missing old cursor pack

master
Dmitry Nefedov 3 weeks ago
parent
commit
ba9f361fbc
  1. BIN
      Misc/dark.zip
  2. BIN
      Misc/dark_new.zip
  3. BIN
      Misc/light.zip
  4. BIN
      Misc/light_new.zip
  5. 16
      src/Sophia_Script_for_Windows_10/Module/Sophia.psm1
  6. 16
      src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1
  7. 16
      src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1
  8. 16
      src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1
  9. 16
      src/Sophia_Script_for_Windows_11/Module/Sophia.psm1
  10. 16
      src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1
  11. 16
      src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

BIN
Misc/dark.zip

Binary file not shown.

BIN
Misc/dark_new.zip

Binary file not shown.

BIN
Misc/light.zip

Binary file not shown.

BIN
Misc/light_new.zip

Binary file not shown.

16
src/Sophia_Script_for_Windows_10/Module/Sophia.psm1

@ -4879,8 +4879,8 @@ function Cursors
$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/Misc/dark.zip" Uri = "https://github.com/farag2/Sophia-Script-for-Windows/raw/master/Misc/dark_new.zip"
OutFile = "$DownloadsFolder\dark.zip" OutFile = "$DownloadsFolder\dark_new.zip"
UseBasicParsing = $true UseBasicParsing = $true
Verbose = $true Verbose = $true
} }
@ -4892,7 +4892,7 @@ function Cursors
} }
# Extract archive # Extract archive
& "$env:SystemRoot\System32\tar.exe" -xvf "$DownloadsFolder\dark.zip" -C "$env:SystemRoot\Cursors\W11 Cursor Dark Free" & "$env:SystemRoot\System32\tar.exe" -xvf "$DownloadsFolder\dark_new.zip" -C "$env:SystemRoot\Cursors\W11 Cursor Dark Free"
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursor Dark Free by Jepri Creations" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursor Dark Free by Jepri Creations" -Force
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11 Cursor Dark Free\appstarting.ani" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11 Cursor Dark Free\appstarting.ani" -Force
@ -4941,7 +4941,7 @@ function Cursors
Start-Sleep -Seconds 1 Start-Sleep -Seconds 1
Remove-Item -Path "$DownloadsFolder\dark.zip" -Force Remove-Item -Path "$DownloadsFolder\dark_new.zip" -Force
} }
catch [System.Net.WebException] catch [System.Net.WebException]
{ {
@ -4965,8 +4965,8 @@ function Cursors
$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/Misc/light.zip" Uri = "https://github.com/farag2/Sophia-Script-for-Windows/raw/master/Misc/light_new.zip"
OutFile = "$DownloadsFolder\light.zip" OutFile = "$DownloadsFolder\light_new.zip"
UseBasicParsing = $true UseBasicParsing = $true
Verbose = $true Verbose = $true
} }
@ -4978,7 +4978,7 @@ function Cursors
} }
# Extract archive # Extract archive
& "$env:SystemRoot\System32\tar.exe" -xvf "$DownloadsFolder\light.zip" -C "$env:SystemRoot\Cursors\W11 Cursor Light Free" & "$env:SystemRoot\System32\tar.exe" -xvf "$DownloadsFolder\light_new.zip" -C "$env:SystemRoot\Cursors\W11 Cursor Light Free"
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursor Light Free by Jepri Creations" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursor Light Free by Jepri Creations" -Force
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11 Cursor Light Free\appstarting.ani" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11 Cursor Light Free\appstarting.ani" -Force
@ -5027,7 +5027,7 @@ function Cursors
Start-Sleep -Seconds 1 Start-Sleep -Seconds 1
Remove-Item -Path "$DownloadsFolder\light.zip" -Force Remove-Item -Path "$DownloadsFolder\light_new.zip" -Force
} }
catch [System.Net.WebException] catch [System.Net.WebException]
{ {

16
src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1

@ -3776,8 +3776,8 @@ function Cursors
$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/Misc/dark.zip" Uri = "https://github.com/farag2/Sophia-Script-for-Windows/raw/master/Misc/dark_new.zip"
OutFile = "$DownloadsFolder\dark.zip" OutFile = "$DownloadsFolder\dark_new.zip"
UseBasicParsing = $true UseBasicParsing = $true
Verbose = $true Verbose = $true
} }
@ -3789,7 +3789,7 @@ function Cursors
} }
# Extract archive # Extract archive
& "$env:SystemRoot\System32\tar.exe" -xvf "$DownloadsFolder\dark.zip" -C "$env:SystemRoot\Cursors\W11 Cursor Dark Free" & "$env:SystemRoot\System32\tar.exe" -xvf "$DownloadsFolder\dark_new.zip" -C "$env:SystemRoot\Cursors\W11 Cursor Dark Free"
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursor Dark Free by Jepri Creations" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursor Dark Free by Jepri Creations" -Force
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11 Cursor Dark Free\appstarting.ani" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11 Cursor Dark Free\appstarting.ani" -Force
@ -3838,7 +3838,7 @@ function Cursors
Start-Sleep -Seconds 1 Start-Sleep -Seconds 1
Remove-Item -Path "$DownloadsFolder\dark.zip" -Force Remove-Item -Path "$DownloadsFolder\dark_new.zip" -Force
} }
catch [System.Net.WebException] catch [System.Net.WebException]
{ {
@ -3862,8 +3862,8 @@ function Cursors
$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/Misc/light.zip" Uri = "https://github.com/farag2/Sophia-Script-for-Windows/raw/master/Misc/light_new.zip"
OutFile = "$DownloadsFolder\light.zip" OutFile = "$DownloadsFolder\light_new.zip"
UseBasicParsing = $true UseBasicParsing = $true
Verbose = $true Verbose = $true
} }
@ -3875,7 +3875,7 @@ function Cursors
} }
# Extract archive # Extract archive
& "$env:SystemRoot\System32\tar.exe" -xvf "$DownloadsFolder\light.zip" -C "$env:SystemRoot\Cursors\W11 Cursor Light Free" & "$env:SystemRoot\System32\tar.exe" -xvf "$DownloadsFolder\light_new.zip" -C "$env:SystemRoot\Cursors\W11 Cursor Light Free"
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursor Light Free by Jepri Creations" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursor Light Free by Jepri Creations" -Force
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11 Cursor Light Free\appstarting.ani" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11 Cursor Light Free\appstarting.ani" -Force
@ -3924,7 +3924,7 @@ function Cursors
Start-Sleep -Seconds 1 Start-Sleep -Seconds 1
Remove-Item -Path "$DownloadsFolder\light.zip" -Force Remove-Item -Path "$DownloadsFolder\light_new.zip" -Force
} }
catch [System.Net.WebException] catch [System.Net.WebException]
{ {

16
src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1

@ -4158,8 +4158,8 @@ function Cursors
$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/Misc/dark.zip" Uri = "https://github.com/farag2/Sophia-Script-for-Windows/raw/master/Misc/dark_new.zip"
OutFile = "$DownloadsFolder\dark.zip" OutFile = "$DownloadsFolder\dark_new.zip"
UseBasicParsing = $true UseBasicParsing = $true
Verbose = $true Verbose = $true
} }
@ -4171,7 +4171,7 @@ function Cursors
} }
# Extract archive # Extract archive
& "$env:SystemRoot\System32\tar.exe" -xvf "$DownloadsFolder\dark.zip" -C "$env:SystemRoot\Cursors\W11 Cursor Dark Free" & "$env:SystemRoot\System32\tar.exe" -xvf "$DownloadsFolder\dark_new.zip" -C "$env:SystemRoot\Cursors\W11 Cursor Dark Free"
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursor Dark Free by Jepri Creations" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursor Dark Free by Jepri Creations" -Force
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11 Cursor Dark Free\appstarting.ani" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11 Cursor Dark Free\appstarting.ani" -Force
@ -4220,7 +4220,7 @@ function Cursors
Start-Sleep -Seconds 1 Start-Sleep -Seconds 1
Remove-Item -Path "$DownloadsFolder\dark.zip" -Force Remove-Item -Path "$DownloadsFolder\dark_new.zip" -Force
} }
catch [System.Net.WebException] catch [System.Net.WebException]
{ {
@ -4244,8 +4244,8 @@ function Cursors
$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/Misc/light.zip" Uri = "https://github.com/farag2/Sophia-Script-for-Windows/raw/master/Misc/light_new.zip"
OutFile = "$DownloadsFolder\light.zip" OutFile = "$DownloadsFolder\light_new.zip"
UseBasicParsing = $true UseBasicParsing = $true
Verbose = $true Verbose = $true
} }
@ -4257,7 +4257,7 @@ function Cursors
} }
# Extract archive # Extract archive
& "$env:SystemRoot\System32\tar.exe" -xvf "$DownloadsFolder\light.zip" -C "$env:SystemRoot\Cursors\W11 Cursor Light Free" & "$env:SystemRoot\System32\tar.exe" -xvf "$DownloadsFolder\light_new.zip" -C "$env:SystemRoot\Cursors\W11 Cursor Light Free"
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursor Light Free by Jepri Creations" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursor Light Free by Jepri Creations" -Force
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11 Cursor Light Free\appstarting.ani" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11 Cursor Light Free\appstarting.ani" -Force
@ -4306,7 +4306,7 @@ function Cursors
Start-Sleep -Seconds 1 Start-Sleep -Seconds 1
Remove-Item -Path "$DownloadsFolder\light.zip" -Force Remove-Item -Path "$DownloadsFolder\light_new.zip" -Force
} }
catch [System.Net.WebException] catch [System.Net.WebException]
{ {

16
src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1

@ -4897,8 +4897,8 @@ function Cursors
$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/Misc/dark.zip" Uri = "https://github.com/farag2/Sophia-Script-for-Windows/raw/master/Misc/dark_new.zip"
OutFile = "$DownloadsFolder\dark.zip" OutFile = "$DownloadsFolder\dark_new.zip"
UseBasicParsing = $true UseBasicParsing = $true
Verbose = $true Verbose = $true
} }
@ -4910,7 +4910,7 @@ function Cursors
} }
# Extract archive # Extract archive
& "$env:SystemRoot\System32\tar.exe" -xvf "$DownloadsFolder\dark.zip" -C "$env:SystemRoot\Cursors\W11 Cursor Dark Free" & "$env:SystemRoot\System32\tar.exe" -xvf "$DownloadsFolder\dark_new.zip" -C "$env:SystemRoot\Cursors\W11 Cursor Dark Free"
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursor Dark Free by Jepri Creations" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursor Dark Free by Jepri Creations" -Force
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11 Cursor Dark Free\appstarting.ani" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11 Cursor Dark Free\appstarting.ani" -Force
@ -4959,7 +4959,7 @@ function Cursors
Start-Sleep -Seconds 1 Start-Sleep -Seconds 1
Remove-Item -Path "$DownloadsFolder\dark.zip" -Force Remove-Item -Path "$DownloadsFolder\dark_new.zip" -Force
} }
catch [System.Net.WebException] catch [System.Net.WebException]
{ {
@ -4983,8 +4983,8 @@ function Cursors
$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/Misc/light.zip" Uri = "https://github.com/farag2/Sophia-Script-for-Windows/raw/master/Misc/light_new.zip"
OutFile = "$DownloadsFolder\light.zip" OutFile = "$DownloadsFolder\light_new.zip"
UseBasicParsing = $true UseBasicParsing = $true
Verbose = $true Verbose = $true
} }
@ -4996,7 +4996,7 @@ function Cursors
} }
# Extract archive # Extract archive
& "$env:SystemRoot\System32\tar.exe" -xvf "$DownloadsFolder\light.zip" -C "$env:SystemRoot\Cursors\W11 Cursor Light Free" & "$env:SystemRoot\System32\tar.exe" -xvf "$DownloadsFolder\light_new.zip" -C "$env:SystemRoot\Cursors\W11 Cursor Light Free"
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursor Light Free by Jepri Creations" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursor Light Free by Jepri Creations" -Force
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11 Cursor Light Free\appstarting.ani" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11 Cursor Light Free\appstarting.ani" -Force
@ -5045,7 +5045,7 @@ function Cursors
Start-Sleep -Seconds 1 Start-Sleep -Seconds 1
Remove-Item -Path "$DownloadsFolder\light.zip" -Force Remove-Item -Path "$DownloadsFolder\light_new.zip" -Force
} }
catch [System.Net.WebException] catch [System.Net.WebException]
{ {

16
src/Sophia_Script_for_Windows_11/Module/Sophia.psm1

@ -4281,8 +4281,8 @@ function Cursors
$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/Misc/dark.zip" Uri = "https://github.com/farag2/Sophia-Script-for-Windows/raw/master/Misc/dark_new.zip"
OutFile = "$DownloadsFolder\dark.zip" OutFile = "$DownloadsFolder\dark_new.zip"
UseBasicParsing = $true UseBasicParsing = $true
Verbose = $true Verbose = $true
} }
@ -4294,7 +4294,7 @@ function Cursors
} }
# Extract archive # Extract archive
& "$env:SystemRoot\System32\tar.exe" -xvf "$DownloadsFolder\dark.zip" -C "$env:SystemRoot\Cursors\W11 Cursor Dark Free" & "$env:SystemRoot\System32\tar.exe" -xvf "$DownloadsFolder\dark_new.zip" -C "$env:SystemRoot\Cursors\W11 Cursor Dark Free"
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursor Dark Free by Jepri Creations" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursor Dark Free by Jepri Creations" -Force
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11 Cursor Dark Free\appstarting.ani" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11 Cursor Dark Free\appstarting.ani" -Force
@ -4343,7 +4343,7 @@ function Cursors
Start-Sleep -Seconds 1 Start-Sleep -Seconds 1
Remove-Item -Path "$DownloadsFolder\dark.zip" -Force Remove-Item -Path "$DownloadsFolder\dark_new.zip" -Force
} }
catch [System.Net.WebException] catch [System.Net.WebException]
{ {
@ -4367,8 +4367,8 @@ function Cursors
$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/Misc/light.zip" Uri = "https://github.com/farag2/Sophia-Script-for-Windows/raw/master/Misc/light_new.zip"
OutFile = "$DownloadsFolder\light.zip" OutFile = "$DownloadsFolder\light_new.zip"
UseBasicParsing = $true UseBasicParsing = $true
Verbose = $true Verbose = $true
} }
@ -4380,7 +4380,7 @@ function Cursors
} }
# Extract archive # Extract archive
& "$env:SystemRoot\System32\tar.exe" -xvf "$DownloadsFolder\light.zip" -C "$env:SystemRoot\Cursors\W11 Cursor Light Free" & "$env:SystemRoot\System32\tar.exe" -xvf "$DownloadsFolder\light_new.zip" -C "$env:SystemRoot\Cursors\W11 Cursor Light Free"
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursor Light Free by Jepri Creations" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursor Light Free by Jepri Creations" -Force
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11 Cursor Light Free\appstarting.ani" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11 Cursor Light Free\appstarting.ani" -Force
@ -4429,7 +4429,7 @@ function Cursors
Start-Sleep -Seconds 1 Start-Sleep -Seconds 1
Remove-Item -Path "$DownloadsFolder\light.zip" -Force Remove-Item -Path "$DownloadsFolder\light_new.zip" -Force
} }
catch [System.Net.WebException] catch [System.Net.WebException]
{ {

16
src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1

@ -4123,8 +4123,8 @@ function Cursors
$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/Misc/dark.zip" Uri = "https://github.com/farag2/Sophia-Script-for-Windows/raw/master/Misc/dark_new.zip"
OutFile = "$DownloadsFolder\dark.zip" OutFile = "$DownloadsFolder\dark_new.zip"
UseBasicParsing = $true UseBasicParsing = $true
Verbose = $true Verbose = $true
} }
@ -4136,7 +4136,7 @@ function Cursors
} }
# Extract archive # Extract archive
& "$env:SystemRoot\System32\tar.exe" -xvf "$DownloadsFolder\dark.zip" -C "$env:SystemRoot\Cursors\W11 Cursor Dark Free" & "$env:SystemRoot\System32\tar.exe" -xvf "$DownloadsFolder\dark_new.zip" -C "$env:SystemRoot\Cursors\W11 Cursor Dark Free"
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursor Dark Free by Jepri Creations" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursor Dark Free by Jepri Creations" -Force
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11 Cursor Dark Free\appstarting.ani" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11 Cursor Dark Free\appstarting.ani" -Force
@ -4185,7 +4185,7 @@ function Cursors
Start-Sleep -Seconds 1 Start-Sleep -Seconds 1
Remove-Item -Path "$DownloadsFolder\dark.zip" -Force Remove-Item -Path "$DownloadsFolder\dark_new.zip" -Force
} }
catch [System.Net.WebException] catch [System.Net.WebException]
{ {
@ -4209,8 +4209,8 @@ function Cursors
$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/Misc/light.zip" Uri = "https://github.com/farag2/Sophia-Script-for-Windows/raw/master/Misc/light_new.zip"
OutFile = "$DownloadsFolder\light.zip" OutFile = "$DownloadsFolder\light_new.zip"
UseBasicParsing = $true UseBasicParsing = $true
Verbose = $true Verbose = $true
} }
@ -4222,7 +4222,7 @@ function Cursors
} }
# Extract archive # Extract archive
& "$env:SystemRoot\System32\tar.exe" -xvf "$DownloadsFolder\light.zip" -C "$env:SystemRoot\Cursors\W11 Cursor Light Free" & "$env:SystemRoot\System32\tar.exe" -xvf "$DownloadsFolder\light_new.zip" -C "$env:SystemRoot\Cursors\W11 Cursor Light Free"
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursor Light Free by Jepri Creations" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursor Light Free by Jepri Creations" -Force
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11 Cursor Light Free\appstarting.ani" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11 Cursor Light Free\appstarting.ani" -Force
@ -4271,7 +4271,7 @@ function Cursors
Start-Sleep -Seconds 1 Start-Sleep -Seconds 1
Remove-Item -Path "$DownloadsFolder\light.zip" -Force Remove-Item -Path "$DownloadsFolder\light_new.zip" -Force
} }
catch [System.Net.WebException] catch [System.Net.WebException]
{ {

16
src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

@ -4299,8 +4299,8 @@ function Cursors
$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/Misc/dark.zip" Uri = "https://github.com/farag2/Sophia-Script-for-Windows/raw/master/Misc/dark_new.zip"
OutFile = "$DownloadsFolder\dark.zip" OutFile = "$DownloadsFolder\dark_new.zip"
UseBasicParsing = $true UseBasicParsing = $true
Verbose = $true Verbose = $true
} }
@ -4312,7 +4312,7 @@ function Cursors
} }
# Extract archive # Extract archive
& "$env:SystemRoot\System32\tar.exe" -xvf "$DownloadsFolder\dark.zip" -C "$env:SystemRoot\Cursors\W11 Cursor Dark Free" & "$env:SystemRoot\System32\tar.exe" -xvf "$DownloadsFolder\dark_new.zip" -C "$env:SystemRoot\Cursors\W11 Cursor Dark Free"
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursor Dark Free by Jepri Creations" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursor Dark Free by Jepri Creations" -Force
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11 Cursor Dark Free\appstarting.ani" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11 Cursor Dark Free\appstarting.ani" -Force
@ -4361,7 +4361,7 @@ function Cursors
Start-Sleep -Seconds 1 Start-Sleep -Seconds 1
Remove-Item -Path "$DownloadsFolder\dark.zip" -Force Remove-Item -Path "$DownloadsFolder\dark_new.zip" -Force
} }
catch [System.Net.WebException] catch [System.Net.WebException]
{ {
@ -4385,8 +4385,8 @@ function Cursors
$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/Misc/light.zip" Uri = "https://github.com/farag2/Sophia-Script-for-Windows/raw/master/Misc/light_new.zip"
OutFile = "$DownloadsFolder\light.zip" OutFile = "$DownloadsFolder\light_new.zip"
UseBasicParsing = $true UseBasicParsing = $true
Verbose = $true Verbose = $true
} }
@ -4398,7 +4398,7 @@ function Cursors
} }
# Extract archive # Extract archive
& "$env:SystemRoot\System32\tar.exe" -xvf "$DownloadsFolder\light.zip" -C "$env:SystemRoot\Cursors\W11 Cursor Light Free" & "$env:SystemRoot\System32\tar.exe" -xvf "$DownloadsFolder\light_new.zip" -C "$env:SystemRoot\Cursors\W11 Cursor Light Free"
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursor Light Free by Jepri Creations" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursor Light Free by Jepri Creations" -Force
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11 Cursor Light Free\appstarting.ani" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11 Cursor Light Free\appstarting.ani" -Force
@ -4447,7 +4447,7 @@ function Cursors
Start-Sleep -Seconds 1 Start-Sleep -Seconds 1
Remove-Item -Path "$DownloadsFolder\light.zip" -Force Remove-Item -Path "$DownloadsFolder\light_new.zip" -Force
} }
catch [System.Net.WebException] catch [System.Net.WebException]
{ {

Loading…
Cancel
Save