Added more stuff to install.ps1, initial commit on uwfs

This commit is contained in:
camoy 2024-11-15 21:21:30 -08:00
parent 9ee9b4a9ab
commit 17c4fd6b15
3 changed files with 42 additions and 2 deletions

View File

@ -46,3 +46,11 @@ powercfg.exe /Change monitor-timeout-dc 0
powercfg.exe /Change standby-timeout-ac 0
powercfg.exe /Change standby-timeout-dc 0
Write-Host "---Initial Copy Games to C:\sc\content\---"
#TODO
Write-Host "---Install Unified Write Filter---"
Enable-WindowsOptionalFeature -Online -FeatureName "Client-UnifiedWriteFilter" -All
Write-Host "---Enable Unified Write Filter---"
uwfmgr.exe Filter Enable

View File

@ -1 +1,17 @@
#TODO
Write-Host "---Enable Unified Write Filter---"
uwfmgr.exe Filter Enable
if ($? -ne $false)
{
Write-Host "SC-UWF-ERR001: FAILED TO ENABLE UWF"
Write-Host "uwfmgr.exe exited with a non-zero error code"
Write-Host "Please review the output from when uwfmgr.exe ran and open a issue on the git repository at https://git.sdf.org/camoy/Sweetcade"
Write-Host "This script will now exit in 60 seconds"
Start-Sleep -Seconds 60
Exit 1
}
else
{
#TODO - Prompt for a reboot?
Exit 0
}

View File

@ -1 +1,17 @@
#TODO
Write-Host "---Disable Unified Write Filter---"
uwfmgr.exe Filter Disable
if ($? -ne $false)
{
Write-Host "SC-UWF-ERR001: FAILED TO DISABLE UWF"
Write-Host "uwfmgr.exe exited with a non-zero error code"
Write-Host "Please review the output from when uwfmgr.exe ran and open a issue on the git repository at https://git.sdf.org/camoy/Sweetcade"
Write-Host "This script will now exit in 60 seconds"
Start-Sleep -Seconds 60
Exit 1
}
else
{
#TODO - Prompt for a reboot?
Exit 0
}