Have added more to script
have added custom login screen
This commit is contained in:
Kurtis
2025-10-27 00:32:25 +10:00
parent 097593e450
commit 58620b1370
2 changed files with 59 additions and 2 deletions

BIN
login.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -36,6 +36,11 @@ Write-Host "Downloading Sounds"
git clone https://git.tcmeta.net/kurtis/win95-sounds.git "$folderPath\Sounds" git clone https://git.tcmeta.net/kurtis/win95-sounds.git "$folderPath\Sounds"
Write-Host "Downloading Login Screen"
$download = "https://git.tcmeta.net/kurtis/win95ify-11/raw/branch/main/login.png"
Invoke-WebRequest $download -Out "$folderPath\login.png"
Write-Host "Downloading Latest HackBRGT" Write-Host "Downloading Latest HackBRGT"
$tempPath = Join-Path $env:TEMP "hackgrbt.zip" $tempPath = Join-Path $env:TEMP "hackgrbt.zip"
$releases = "https://api.github.com/repos/Metabolix/HackBGRT/releases" $releases = "https://api.github.com/repos/Metabolix/HackBGRT/releases"
@@ -50,17 +55,69 @@ Remove-Item $tempPath -Force
Write-Host "Downloading Custom Logo" Write-Host "Downloading Custom Logo"
$download = "https://git.tcmeta.net/kurtis/win95ify-11/raw/branch/main/splash.bmp" $download = "https://git.tcmeta.net/kurtis/win95ify-11/raw/branch/main/splash.bmp"
Invoke-WebRequest $download -Out "$folderPath\HackBGRT-$($tag.SubString(1))\splash.bmp" Invoke-WebRequest $download -Out "$folderPath\HackBGRT-$($tag.SubString(1))\splash.bmp"
Write-Host "Starting Boot Screen setup."
Start-Process "$folderPath\HackBGRT-$($tag.SubString(1))\setup.exe" Start-Process "$folderPath\HackBGRT-$($tag.SubString(1))\setup.exe"
pause
#Okay now lets start to install the essentials #Okay now lets start to install the essentials
Write-Host "Installing RetroBar" Write-Host "Installing RetroBar"
winget install dremin.RetroBar winget install dremin.RetroBar
Start-Process "$ENV:LOCALAPPDATA\Programs\RetroBar\RetroBar.exe"
Write-Host "Installing OpenShell in interactive mode" Write-Host "Installing OpenShell in interactive mode"
winget install Open-Shell.Open-Shell-Menu -i winget install Open-Shell.Open-Shell-Menu -i
# okay now we need to apply wallpapers and also other stuff # okay now we need to apply wallpapers and also other stuff
# need to download and install the latest clippy ai
Write-Host "Updating Wallpaper"
Function Set-WallPaper($Image) {
<#
.SYNOPSIS
Applies a specified wallpaper to the current user's desktop
.PARAMETER Image
Provide the exact path to the image
.EXAMPLE
Set-WallPaper -Image "C:\Wallpaper\Default.jpg"
#>
Add-Type -TypeDefinition @"
using System;
using System.Runtime.InteropServices;
public class Params
{
[DllImport("User32.dll",CharSet=CharSet.Unicode)]
public static extern int SystemParametersInfo (Int32 uAction,
Int32 uParam,
String lpvParam,
Int32 fuWinIni);
}
"@
$SPI_SETDESKWALLPAPER = 0x0014
$UpdateIniFile = 0x01
$SendChangeEvent = 0x02
$fWinIni = $UpdateIniFile -bor $SendChangeEvent
$ret = [Params]::SystemParametersInfo($SPI_SETDESKWALLPAPER, 0, $Image, $fWinIni)
}
Set-WallPaper("$folderPath\Wallpapers\default.png")
Write-Host "Changing to lite mode (if not already done)"
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 1 -Type Dword -Force
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name SystemUsesLightTheme -Value 1 -Type Dword -Force
# Update icons