mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 22:55:52 -06:00
cfb04b5fc3
* Fix Restore Points before tweaks * Compile Winutil * Update Set-WinUtilRestorePoint.ps1 * Compile Winutil * add snappy driver installer origin (#936) * fix when User name have space (#937) * Compile Winutil * Add Applications (Fixed) (#944) * Add Applications (Fixed) This fixes #940 by removing OperaGX, fixing alphabetization, and removing my instance of Neovim which I didn't notice was added recently. * Update winutil.ps1 * Update inputXML.xaml --------- Co-authored-by: Chris Titus <contact@christitus.com> * Compile Winutil * removing service stops in services tweak * Fix pin not working for microsoft accounts * Compile Winutil * Remove verbose code * Compile Winutil --------- Co-authored-by: ChrisTitusTech <ChrisTitusTech@users.noreply.github.com> Co-authored-by: Padsala Tushal <57517785+padsalatushal@users.noreply.github.com> Co-authored-by: AdamJedl <100023363+AdamJedl@users.noreply.github.com> Co-authored-by: AshlynOrSomethin <31773733+AshlynOrSomethin@users.noreply.github.com>
48 lines
1.4 KiB
PowerShell
48 lines
1.4 KiB
PowerShell
function Invoke-WPFtweaksbutton {
|
|
<#
|
|
|
|
.DESCRIPTION
|
|
PlaceHolder
|
|
|
|
#>
|
|
|
|
if($sync.ProcessRunning){
|
|
$msg = "Install process is currently running."
|
|
[System.Windows.MessageBox]::Show($msg, "Winutil", [System.Windows.MessageBoxButton]::OK, [System.Windows.MessageBoxImage]::Warning)
|
|
return
|
|
}
|
|
|
|
$Tweaks = Get-WinUtilCheckBoxes -Group "WPFTweaks"
|
|
|
|
Set-WinUtilDNS -DNSProvider $sync["WPFchangedns"].text
|
|
|
|
if ($tweaks.count -eq 0 -and $sync["WPFchangedns"].text -eq "Default"){
|
|
$msg = "Please check the tweaks you wish to perform."
|
|
[System.Windows.MessageBox]::Show($msg, "Winutil", [System.Windows.MessageBoxButton]::OK, [System.Windows.MessageBoxImage]::Warning)
|
|
return
|
|
}
|
|
|
|
Set-WinUtilRestorePoint
|
|
|
|
Invoke-WPFRunspace -ArgumentList $Tweaks -ScriptBlock {
|
|
param($Tweaks)
|
|
|
|
$sync.ProcessRunning = $true
|
|
|
|
Foreach ($tweak in $tweaks){
|
|
Invoke-WinUtilTweaks $tweak
|
|
}
|
|
|
|
$sync.ProcessRunning = $false
|
|
Write-Host "================================="
|
|
Write-Host "-- Tweaks are Finished ---"
|
|
Write-Host "================================="
|
|
|
|
$ButtonType = [System.Windows.MessageBoxButton]::OK
|
|
$MessageboxTitle = "Tweaks are Finished "
|
|
$Messageboxbody = ("Done")
|
|
$MessageIcon = [System.Windows.MessageBoxImage]::Information
|
|
|
|
[System.Windows.MessageBox]::Show($Messageboxbody, $MessageboxTitle, $ButtonType, $MessageIcon)
|
|
}
|
|
} |