Feat: Update Customize Tweaks and Software install to use Checkboxes

- Makes multiple software installations much easier
- Put an effect to ON/OFF Customizable Tweaks from GUI

fix: Reduce unused code from file-runner lib
main
Plínio Larrubia 2 years ago committed by Plínio Larrubia
parent babf0529ae
commit 461be9f378
No known key found for this signature in database
GPG Key ID: 057B0A87CB137C69

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 402 KiB

After

Width:  |  Height:  |  Size: 374 KiB

@ -61,8 +61,8 @@ function Open-RegFilesCollection {
<#
Example:
Open-PowerShellFilesCollection -RelativeLocation "src\scripts" -Scripts "script.ps1" -DoneTitle "Title" -DoneMessage "Message" -NoDialog
Open-PowerShellFilesCollection -RelativeLocation "src\scripts" -Scripts "script.ps1" -NoDialog
Open-PowerShellFilesCollection -RelativeLocation "src\scripts" -Scripts @("script1.ps1", "script2.ps1") -DoneTitle "Title" -DoneMessage "Message" -OpenFromGUI $false
Open-RegFilesCollection -RelativeLocation "src\scripts" -Scripts "script.reg" -DoneTitle "Title" -DoneMessage "Message" -NoDialog
Open-RegFilesCollection -RelativeLocation "src\scripts" -Scripts "script.reg" -NoDialog
Open-RegFilesCollection -RelativeLocation "src\scripts" -Scripts @("script1.reg", "script2.reg") -DoneTitle "Title" -DoneMessage "Message"
#>

@ -42,7 +42,7 @@ function Optimize-Performance() {
If ($Revert) {
$Scripts = @("enable-game-bar-dvr.reg")
}
Open-RegFilesCollection -RelativeLocation "src\utils" -Scripts $Scripts -DoneTitle "" -DoneMessage "" -NoDialog
Open-RegFilesCollection -RelativeLocation "src\utils" -Scripts $Scripts -NoDialog
Write-Status -Symbol "=" -Type $TweakType -Status "Enabling game mode..."
Set-ItemProperty -Path "$PathToCUGameBar" -Name "AllowAutoGameMode" -Type DWord -Value 1

@ -43,7 +43,7 @@ function Register-PersonalTweaksList() {
If ($Revert) {
$Scripts = @("use-light-theme.reg", "enable-cortana.reg", "disable-photo-viewer.reg", "enable-clipboard-history.reg")
}
Open-RegFilesCollection -RelativeLocation "src\utils" -Scripts $Scripts -DoneTitle "" -DoneMessage "" -NoDialog
Open-RegFilesCollection -RelativeLocation "src\utils" -Scripts $Scripts -NoDialog
# Show Task Manager details - Applicable to 1607 and later - Although this functionality exist even in earlier versions, the Task Manager's behavior is different there and is not compatible with this tweak
Write-Status -Symbol "+" -Type $TweakType -Status "Showing task manager details..."

Loading…
Cancel
Save