Added cursors to script
This commit is contained in:
Vargink
2026-04-26 22:21:46 +10:00
parent c8c0bd198e
commit d3950207c3
+40
View File
@@ -40,6 +40,17 @@ Function Download-Icons {
Remove-Item $tempPath -Force Remove-Item $tempPath -Force
} }
Function Download-Cursors {
Make-Program-Directory
$tempPath = Join-Path $env:TEMP "cursors.zip"
$download = "https://git.tcmeta.net/kurtis/win95-cursors/archive/main.zip"
Invoke-WebRequest $download -Out $tempPath
Write-Host "Unzipping"
Expand-Archive $tempPath -DestinationPath "$folderPath" -Force
Write-Host "Removing Temp"
Remove-Item $tempPath -Force
}
Function Download-Sounds { Function Download-Sounds {
Make-Program-Directory Make-Program-Directory
$tempPath = Join-Path $env:TEMP "sounds.zip" $tempPath = Join-Path $env:TEMP "sounds.zip"
@@ -197,6 +208,34 @@ Function Update-Sounds {
} }
Function Update-Cursors {
Download-Cursors
Write-Host "Updating Cursors"
Set-ItemProperty -Path 'HKCU:\Control Panel\Cursors' -Name 'AppStarting' -Value '$folderPath\win95-cursors\Cursor_17.cur'
Set-ItemProperty -Path 'HKCU:\Control Panel\Cursors' -Name 'Arrow' -Value '$folderPath\win95-cursors\arrow.cur'
Set-ItemProperty -Path 'HKCU:\Control Panel\Cursors' -Name 'Hand' -Value '$folderPath\win95-cursors\Cursor_15.cur'
Set-ItemProperty -Path 'HKCU:\Control Panel\Cursors' -Name 'Help' -Value '$folderPath\win95-cursors\help_win95.cur'
Set-ItemProperty -Path 'HKCU:\Control Panel\Cursors' -Name 'No' -Value '$folderPath\win95-cursors\Cursor_11.cur'
Set-ItemProperty -Path 'HKCU:\Control Panel\Cursors' -Name 'NWPen' -Value '$folderPath\win95-cursors\Cursor_14.cur'
Set-ItemProperty -Path 'HKCU:\Control Panel\Cursors' -Name 'SizeAll' -Value '$folderPath\win95-cursors\Cursor_10.cur'
Set-ItemProperty -Path 'HKCU:\Control Panel\Cursors' -Name 'SizeNESW' -Value '$folderPath\win95-cursors\Cursor_7.cur'
Set-ItemProperty -Path 'HKCU:\Control Panel\Cursors' -Name 'SizeNS' -Value '$folderPath\win95-cursors\Cursor_9.cur'
Set-ItemProperty -Path 'HKCU:\Control Panel\Cursors' -Name 'SizeNWSE' -Value '$folderPath\win95-cursors\Cursor_6.cur'
Set-ItemProperty -Path 'HKCU:\Control Panel\Cursors' -Name 'SizeWE' -Value '$folderPath\win95-cursors\Cursor_8.cur'
Set-ItemProperty -Path 'HKCU:\Control Panel\Cursors' -Name 'UpArrow' -Value '$folderPath\win95-cursors\Cursor_5.cur'
Set-ItemProperty -Path 'HKCU:\Control Panel\Cursors' -Name 'Wait' -Value '$folderPath\win95-cursors\Cursor_3.cur'
Write-Host "Pushing Updates"
$CSharpSig = @'
[DllImport("user32.dll", EntryPoint = "SystemParametersInfo")]
public static extern bool SystemParametersInfo(uint uiAction, uint uiParam, uint pvParam, uint fWinIni);
'@
$CursorRefresh = Add-Type -MemberDefinition $CSharpSig -Name WinAPICall -Namespace SystemParamInfo -PassThru
$CursorRefresh::SystemParametersInfo(0x0057, 0, $null, 0)
}
Function Update-Icons { Function Update-Icons {
Download-Icons Download-Icons
Write-Host "Updating Shortcut Icons" Write-Host "Updating Shortcut Icons"
@@ -253,6 +292,7 @@ do {
Update-Wallpaper Update-Wallpaper
Update-Sounds Update-Sounds
Update-Icons Update-Icons
Update-Cursors
Install-HackGRBT Install-HackGRBT
Install-RetroBar Install-RetroBar
Install-OpenShell Install-OpenShell