Update
Added cursors to script
This commit is contained in:
@@ -40,6 +40,17 @@ Function Download-Icons {
|
||||
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 {
|
||||
Make-Program-Directory
|
||||
$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 {
|
||||
Download-Icons
|
||||
Write-Host "Updating Shortcut Icons"
|
||||
@@ -253,6 +292,7 @@ do {
|
||||
Update-Wallpaper
|
||||
Update-Sounds
|
||||
Update-Icons
|
||||
Update-Cursors
|
||||
Install-HackGRBT
|
||||
Install-RetroBar
|
||||
Install-OpenShell
|
||||
|
||||
Reference in New Issue
Block a user