Sweetcade/scripts/ps/install.ps1

38 lines
1.5 KiB
PowerShell

Write-Host "---Installing Programs---"
Write-Host "---Installing git---"
C:\sc\tools\7zip\7zr.exe x -o "C:\sc\tools\git\" "C:\sctools\git\PortableGit.7z.exe"
Write-Host "---Installing Custom Resolution Utility---"
C:\sc\tools\7zip\7zr.exe x -o "C:\sc\tools\cru\" "C:\sctools\cru\customresolutionutility.zip"
Write-Host "---Installing AntiMicroX---"
C:\sc\tools\7zip\7zr.exe x -o "C:\sc\tools\antimicrox\" "C:\sctools\antimicrox\antimicrox-portable.zip"
Write-Host "---Installing Attract Mode---"
C:\sc\tools\7zip\7zr.exe x -o "C:\sc\tools\attractmode\" "C:\sctools\attractmode\attract.zip"
Write-Host "---Installing FastIO2KB---"
C:\sc\tools\7zip\7zr.exe x -o "C:\sc\tools\fastio2kb\" "C:\sctools\fastio2kb\fastio2kb.zip"
Write-Host "---Installing AutoHotKeyV2---"
C:\sc\tools\ahk\ahk-v2.exe /S
Write-Host "---Installing WinIPAC Version 2---"
C:\sc\tools\ipac\winipacv2setup.exe /S /W
Write-Host "---Setting Wallpaper---"
$vSCSetWallpaperPath = "C:\sc\tools\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)