Syntax adjustments, Make Restory Point script
This commit is contained in:
parent
907bc531b3
commit
4cc1a60cb1
21
pseudo.txt
21
pseudo.txt
@ -6,9 +6,9 @@
|
||||
----- Name resolution test (resolve domains we need to contact, list todo)
|
||||
--- RAM - scripts/ps/syscheck.ps1
|
||||
----- 8GB minimum
|
||||
--- Disks - unattend/autounattend.xml
|
||||
--- C:\ minimum of 80GB
|
||||
--- D:\ consumes remaining disk
|
||||
--- Disks - scripts/unattend/autounattend.xml
|
||||
--- C:\ minimum of 80GB - scripts/unattend/autounattend.xml
|
||||
--- D:\ consumes remaining disk - scripts/unattend/autounattend.xml
|
||||
--- Correct OS version - scripts/ps/syscheck.ps1
|
||||
--- Valid product key check - scripts/ps/syscheck.ps1
|
||||
- User prompts
|
||||
@ -16,15 +16,14 @@
|
||||
--- Specify control type, number of buttons, joysticks
|
||||
--- Desired D:\ partition size
|
||||
- Begin install process
|
||||
--- Create restore point for C:\
|
||||
--- Resize C:\ to 80GB
|
||||
--- Wait for diskpart to finish before running next diskpart script
|
||||
--- Resize D:\ to consume desired disk space
|
||||
--- Create restore point for C:\ - scripts/ps/makerespt.ps1
|
||||
--- Resize C:\ to 80GB - scripts/unattend/autounattend.xml
|
||||
--- Resize D:\ to consume desired disk space - scripts/unattend/autounattend.xml
|
||||
- OS Configuration
|
||||
--- Set user to auto-login
|
||||
--- Set user to auto-login - scripts/unattend/autounattend.xml
|
||||
--- Disable auto-sleep and turning off screen
|
||||
--- Disable Windows Defender
|
||||
--- Disable OneDrive
|
||||
--- Disable Windows Defender - scripts/unattend/autounattend.xml
|
||||
--- Disable OneDrive - scripts/unattend/autounattend.xml
|
||||
--- Download supporting applications
|
||||
----- 7-Zip binary
|
||||
----- MinGW
|
||||
@ -38,7 +37,7 @@
|
||||
----- OpenJVS
|
||||
----- FastIO2KB
|
||||
----- WinIPAC Tool
|
||||
----- Data Management Tool (maybe included with Launchbox?)
|
||||
----- Data Management Tool (maybe included with Launchbox/Attractmode?)
|
||||
----- Sweetcade uninstall script
|
||||
------- Remove Launchbox, CRU, Control support software from startup folder
|
||||
------- Delete relevant folders/files
|
||||
|
@ -7,6 +7,7 @@ Get-Content -Path ..\license.txt | Out-Host -Paging
|
||||
Start-Sleep -Seconds 60
|
||||
Exit 1
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
Write-Host "----------"
|
||||
@ -18,8 +19,10 @@ Get-Content -Path ..\license.txt | Out-Host -Paging
|
||||
{
|
||||
Write-Host "You have rejected the software license. The Sweetcade installer will now exit."
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
#PSEUDO - Go to next script (TODO)
|
||||
}
|
||||
|
||||
}
|
21
scripts/ps/makerespt.ps1
Normal file
21
scripts/ps/makerespt.ps1
Normal file
@ -0,0 +1,21 @@
|
||||
Write-Host "---Create restore point for C:\---"
|
||||
Checkpoint-Computer -Description "Before Sweetcade Install" -RestorePointType APPLICATION_INSTALL
|
||||
if ( $? -neq True )
|
||||
{
|
||||
Write-Host "SC-RPT-ERR001: CANNOT CREATE RESTORE POINT"
|
||||
Write-Host "Creating a restore point has failed. The reason for failure should be printed above."
|
||||
Write-Host "You may continue to install Sweetcade but will have to use the uninstall script instead should you wish to remove Sweetcade."
|
||||
Write-Host "If you would like to [C]ontinue, connect a keyboard and type C."
|
||||
Write-Host "If you would like to [S]top the install to investigate further, connect a keyboard and type S."
|
||||
vSCRestorePointUserResponse = Read-Host "C / S?"
|
||||
if ($vSCNextHopUserResponse -contains "C")
|
||||
{
|
||||
#PSUDEOCODE - Continue to next script (TODO)
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
Write-Host "This script will now exit after 60 seconds."
|
||||
Start-Sleep -Seconds 60
|
||||
}
|
||||
}
|
@ -39,9 +39,5 @@ function fSCDNSResolutionTest {
|
||||
$vSCDNSResolutionTestResult5 = $?
|
||||
}
|
||||
|
||||
|
||||
###
|
||||
fSCGetDefaultGateway{}
|
||||
fSCPingDefaultGateway{}
|
||||
fSCDNSResolutionTest{}
|
||||
#PSEUDO - Check each hostname for name resolution, if-then to next script (syscheck.ps1)
|
||||
|
||||
|
@ -1 +1 @@
|
||||
Todo
|
||||
#TODO
|
@ -1 +1 @@
|
||||
Todo
|
||||
#TODO
|
Loading…
Reference in New Issue
Block a user