diff --git a/res/wall/SMPTE_Color_Bars.svg.png b/res/wall/wallpaper.png similarity index 100% rename from res/wall/SMPTE_Color_Bars.svg.png rename to res/wall/wallpaper.png diff --git a/scripts/ps/assignd.ps1 b/scripts/ps/assignd.ps1 new file mode 100644 index 0000000..aede111 --- /dev/null +++ b/scripts/ps/assignd.ps1 @@ -0,0 +1,16 @@ +Write-Host "---Assigning Drive Letter D To Sweetcade Partition---" +Get-Partition -DriveLetter D + If ($? -eq True) + { + Write-Host "SC-HDD-ERR001: CANNOT ASSIGN D DRIVE LETTER" + Write-Host "Another disk is using the drive letter D:" + Write-Host "Sweetcade required that the second data partition is assigned drive letter D:" + Write-Host "Unable to continue. Please check that a USB drive, optical drive, or card reader is not using drive letter D:." + Write-Host "This script will exit after 60 seconds." + Start-Sleep -Seconds 60 + Exit 1 + } + Else + { + Get-Partition -DiskNumber 0 -PartitionNumber 5 | Set-Partition -NewDriveLetter D + } \ No newline at end of file diff --git a/scripts/ps/install.ps1 b/scripts/ps/install.ps1 index 1d01176..0c81522 100644 --- a/scripts/ps/install.ps1 +++ b/scripts/ps/install.ps1 @@ -13,3 +13,26 @@ Write-Host "---Installing AutoHotKeyV2---" C:\sctools\ahk\ahk-v2.exe /S Write-Host "---Installing WinIPAC Version 2---" C:\sctools\ipac\winipacv2setup.exe /S /W +Write-Host "---Setting Wallpaper---" +$vSCSetWallpaperPath = "C:\sctools\wall\wallpaper.png" +$vSCSetWallpaperCode = @' + + using System.Runtime.InteropServices; + namespace Win32 + { + public class Wallpaper + { + [DllImport("user32.dll", CharSet=CharSet.Auto)] + static extern int SystemParametersInfo (int uAction , int uParam , string lpvParam , int fuWinIni) ; + + public static void SetWallpaper(string thePath) + { + SystemParametersInfo(20,0,thePath,3); + } + } + } + +'@ + +Add-Type $vSCSetWallpaperCode +[Win32.Wallpaper]::SetWallpaper($vSCSetWallpaperPath) \ No newline at end of file