diff --git a/login.png b/login.png new file mode 100644 index 0000000..f4cc41f Binary files /dev/null and b/login.png differ diff --git a/start.ps1 b/start.ps1 index f17b92a..21bca25 100644 --- a/start.ps1 +++ b/start.ps1 @@ -36,6 +36,11 @@ Write-Host "Downloading 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" $tempPath = Join-Path $env:TEMP "hackgrbt.zip" $releases = "https://api.github.com/repos/Metabolix/HackBGRT/releases" @@ -50,17 +55,69 @@ Remove-Item $tempPath -Force Write-Host "Downloading Custom Logo" $download = "https://git.tcmeta.net/kurtis/win95ify-11/raw/branch/main/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" - +pause #Okay now lets start to install the essentials Write-Host "Installing RetroBar" winget install dremin.RetroBar +Start-Process "$ENV:LOCALAPPDATA\Programs\RetroBar\RetroBar.exe" + Write-Host "Installing OpenShell in interactive mode" winget install Open-Shell.Open-Shell-Menu -i # 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