mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 22:55:52 -06:00
Merge branch 'test-2022' into main
This commit is contained in:
commit
ba3d48b620
@ -58,12 +58,12 @@
|
|||||||
<CheckBox Name="Installnodejs" Content="NodeJS" Margin="5,0"/>
|
<CheckBox Name="Installnodejs" Content="NodeJS" Margin="5,0"/>
|
||||||
<CheckBox Name="Installnodejslts" Content="NodeJS LTS" Margin="5,0"/>
|
<CheckBox Name="Installnodejslts" Content="NodeJS LTS" Margin="5,0"/>
|
||||||
<CheckBox Name="Installpython3" Content="Python3" Margin="5,0"/>
|
<CheckBox Name="Installpython3" Content="Python3" Margin="5,0"/>
|
||||||
|
<CheckBox Name="Installrustlang" Content="Rust" Margin="5,0"/>
|
||||||
<CheckBox Name="Installsublime" Content="Sublime" Margin="5,0"/>
|
<CheckBox Name="Installsublime" Content="Sublime" Margin="5,0"/>
|
||||||
<CheckBox Name="Installvisualstudio" Content="Visual Studio 2022 Community" Margin="5,0"/>
|
<CheckBox Name="Installvisualstudio" Content="Visual Studio 2022 Community" Margin="5,0"/>
|
||||||
<CheckBox Name="Installvscode" Content="VS Code" Margin="5,0"/>
|
<CheckBox Name="Installvscode" Content="VS Code" Margin="5,0"/>
|
||||||
<CheckBox Name="Installvscodium" Content="VS Codium" Margin="5,0"/>
|
<CheckBox Name="Installvscodium" Content="VS Codium" Margin="5,0"/>
|
||||||
|
|
||||||
|
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<StackPanel Background="#777777" SnapsToDevicePixels="True" Grid.Column="1" Margin="10">
|
<StackPanel Background="#777777" SnapsToDevicePixels="True" Grid.Column="1" Margin="10">
|
||||||
|
|
||||||
@ -107,7 +107,7 @@
|
|||||||
</StackPanel>
|
</StackPanel>
|
||||||
<StackPanel Background="#777777" SnapsToDevicePixels="True" Grid.Column="2" Margin="10">
|
<StackPanel Background="#777777" SnapsToDevicePixels="True" Grid.Column="2" Margin="10">
|
||||||
<Label Content="Utilities" FontSize="16" Margin="5,0"/>
|
<Label Content="Utilities" FontSize="16" Margin="5,0"/>
|
||||||
<CheckBox Name="Installsevenzip" Content="7-Zip" Margin="5,0"/>
|
<CheckBox Name="Installalacritty" Content="Alacritty Terminal" Margin="5,0"/>
|
||||||
<CheckBox Name="Installanydesk" Content="AnyDesk" Margin="5,0"/>
|
<CheckBox Name="Installanydesk" Content="AnyDesk" Margin="5,0"/>
|
||||||
<CheckBox Name="Installautohotkey" Content="AutoHotkey" Margin="5,0"/>
|
<CheckBox Name="Installautohotkey" Content="AutoHotkey" Margin="5,0"/>
|
||||||
<CheckBox Name="Installbitwarden" Content="Bitwarden" Margin="5,0"/>
|
<CheckBox Name="Installbitwarden" Content="Bitwarden" Margin="5,0"/>
|
||||||
@ -122,6 +122,7 @@
|
|||||||
<CheckBox Name="Installpowertoys" Content="Microsoft Powertoys" Margin="5,0"/>
|
<CheckBox Name="Installpowertoys" Content="Microsoft Powertoys" Margin="5,0"/>
|
||||||
<CheckBox Name="Installrevo" Content="RevoUninstaller" Margin="5,0"/>
|
<CheckBox Name="Installrevo" Content="RevoUninstaller" Margin="5,0"/>
|
||||||
<CheckBox Name="Installrufus" Content="Rufus Imager" Margin="5,0"/>
|
<CheckBox Name="Installrufus" Content="Rufus Imager" Margin="5,0"/>
|
||||||
|
<CheckBox Name="Installsevenzip" Content="7-Zip" Margin="5,0"/>
|
||||||
<CheckBox Name="Installteamviewer" Content="TeamViewer" Margin="5,0"/>
|
<CheckBox Name="Installteamviewer" Content="TeamViewer" Margin="5,0"/>
|
||||||
<CheckBox Name="Installttaskbar" Content="Translucent Taskbar" Margin="5,0"/>
|
<CheckBox Name="Installttaskbar" Content="Translucent Taskbar" Margin="5,0"/>
|
||||||
<CheckBox Name="Installtreesize" Content="TreeSize Free" Margin="5,0"/>
|
<CheckBox Name="Installtreesize" Content="TreeSize Free" Margin="5,0"/>
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
"Installadvancedip": {
|
"Installadvancedip": {
|
||||||
"winget": "Famatech.AdvancedIPScanner"
|
"winget": "Famatech.AdvancedIPScanner"
|
||||||
},
|
},
|
||||||
|
"Installalacritty": {
|
||||||
|
"winget": "Alacritty.Alacritty"
|
||||||
|
},
|
||||||
"Installanydesk": {
|
"Installanydesk": {
|
||||||
"winget": "AnyDeskSoftwareGmbH.AnyDesk"
|
"winget": "AnyDeskSoftwareGmbH.AnyDesk"
|
||||||
},
|
},
|
||||||
@ -153,6 +156,9 @@
|
|||||||
"Installrufus": {
|
"Installrufus": {
|
||||||
"winget": "Rufus.Rufus"
|
"winget": "Rufus.Rufus"
|
||||||
},
|
},
|
||||||
|
"Installrustlang": {
|
||||||
|
"winget": "Rustlang.Rust.MSVC"
|
||||||
|
},
|
||||||
"Installsevenzip": {
|
"Installsevenzip": {
|
||||||
"winget": "7zip.7zip"
|
"winget": "7zip.7zip"
|
||||||
},
|
},
|
||||||
|
@ -5,6 +5,11 @@
|
|||||||
Version 0.0.1
|
Version 0.0.1
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
if ($IsLinux){ # PowerShell on Linux has that read-only bool variable set to $true
|
||||||
|
Write-Host "This utility is exclusively designed for Windows"
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
#region Variables
|
#region Variables
|
||||||
$global:sync = [Hashtable]::Synchronized(@{})
|
$global:sync = [Hashtable]::Synchronized(@{})
|
||||||
|
|
||||||
|
24
winutil.ps1
24
winutil.ps1
@ -208,6 +208,10 @@ $WPFinstall.Add_Click({
|
|||||||
$wingetinstall.Add("Python.Python.3")
|
$wingetinstall.Add("Python.Python.3")
|
||||||
$WPFInstallpython3.IsChecked = $false
|
$WPFInstallpython3.IsChecked = $false
|
||||||
}
|
}
|
||||||
|
If ( $WPFInstallrustlang.IsChecked -eq $true ) {
|
||||||
|
$wingetinstall.Add("Rustlang.Rust.MSVC")
|
||||||
|
$WPFInstallrustlang.IsChecked = $false
|
||||||
|
}
|
||||||
If ( $WPFInstallsevenzip.IsChecked -eq $true ) {
|
If ( $WPFInstallsevenzip.IsChecked -eq $true ) {
|
||||||
$wingetinstall.Add("7zip.7zip")
|
$wingetinstall.Add("7zip.7zip")
|
||||||
$WPFInstallsevenzip.IsChecked = $false
|
$WPFInstallsevenzip.IsChecked = $false
|
||||||
@ -228,6 +232,10 @@ $WPFinstall.Add_Click({
|
|||||||
$wingetinstall.Add("Microsoft.WindowsTerminal")
|
$wingetinstall.Add("Microsoft.WindowsTerminal")
|
||||||
$WPFInstallterminal.IsChecked = $false
|
$WPFInstallterminal.IsChecked = $false
|
||||||
}
|
}
|
||||||
|
If ( $WPFInstallalacritty.IsChecked -eq $true ) {
|
||||||
|
$wingetinstall.Add("Alacritty.Alacritty")
|
||||||
|
$WPFInstallalacritty.IsChecked = $false
|
||||||
|
}
|
||||||
If ( $WPFInstallttaskbar.IsChecked -eq $true ) {
|
If ( $WPFInstallttaskbar.IsChecked -eq $true ) {
|
||||||
$wingetinstall.Add("9PF4KZ2VN4W9")
|
$wingetinstall.Add("9PF4KZ2VN4W9")
|
||||||
$WPFInstallttaskbar.IsChecked = $false
|
$WPFInstallttaskbar.IsChecked = $false
|
||||||
@ -543,6 +551,7 @@ $WPFdesktop.Add_Click({
|
|||||||
$WPFMiscTweaksNum.IsChecked = $true
|
$WPFMiscTweaksNum.IsChecked = $true
|
||||||
$WPFMiscTweaksLapPower.IsChecked = $false
|
$WPFMiscTweaksLapPower.IsChecked = $false
|
||||||
$WPFMiscTweaksLapNum.IsChecked = $false
|
$WPFMiscTweaksLapNum.IsChecked = $false
|
||||||
|
$WPFMiscTweaksDisableUAC.IsChecked = $true
|
||||||
})
|
})
|
||||||
|
|
||||||
$WPFlaptop.Add_Click({
|
$WPFlaptop.Add_Click({
|
||||||
@ -563,6 +572,7 @@ $WPFlaptop.Add_Click({
|
|||||||
$WPFMiscTweaksLapNum.IsChecked = $true
|
$WPFMiscTweaksLapNum.IsChecked = $true
|
||||||
$WPFMiscTweaksPower.IsChecked = $false
|
$WPFMiscTweaksPower.IsChecked = $false
|
||||||
$WPFMiscTweaksNum.IsChecked = $false
|
$WPFMiscTweaksNum.IsChecked = $false
|
||||||
|
$WPFMiscTweaksDisableUAC.IsChecked = $true
|
||||||
})
|
})
|
||||||
|
|
||||||
$WPFminimal.Add_Click({
|
$WPFminimal.Add_Click({
|
||||||
@ -583,6 +593,7 @@ $WPFminimal.Add_Click({
|
|||||||
$WPFMiscTweaksNum.IsChecked = $false
|
$WPFMiscTweaksNum.IsChecked = $false
|
||||||
$WPFMiscTweaksLapPower.IsChecked = $false
|
$WPFMiscTweaksLapPower.IsChecked = $false
|
||||||
$WPFMiscTweaksLapNum.IsChecked = $false
|
$WPFMiscTweaksLapNum.IsChecked = $false
|
||||||
|
$WPFMiscTweaksDisableUAC.IsChecked = $true
|
||||||
})
|
})
|
||||||
|
|
||||||
$WPFtweaksbutton.Add_Click({
|
$WPFtweaksbutton.Add_Click({
|
||||||
@ -636,6 +647,17 @@ $WPFtweaksbutton.Add_Click({
|
|||||||
./OOSU10.exe ooshutup10.cfg /quiet
|
./OOSU10.exe ooshutup10.cfg /quiet
|
||||||
$WPFEssTweaksOO.IsChecked = $false
|
$WPFEssTweaksOO.IsChecked = $false
|
||||||
}
|
}
|
||||||
|
If ( $WPFMiscTweaksDisableUAC.IsChecked -eq $true) {
|
||||||
|
Write-Host "Disabling UAC..."
|
||||||
|
# This below is the pussy mode which can break some apps. Please. Leave this on 1.
|
||||||
|
# below i will show a way to do it without breaking some Apps that check UAC. U need to be admin tho.
|
||||||
|
# Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "EnableLUA" -Type DWord -Value 0
|
||||||
|
Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System -Name ConsentPromptBehaviorAdmin -Type DWord -Value 0 # Default is 5
|
||||||
|
# This will set the GPO Entry in Security so that Admin users elevate without any prompt while normal users still elevate and u can even leave it ennabled.
|
||||||
|
# It will just not bother u anymore
|
||||||
|
|
||||||
|
$WPFMiscTweaksDisableUAC.IsChecked = $false
|
||||||
|
}
|
||||||
If ( $WPFEssTweaksRP.IsChecked -eq $true ) {
|
If ( $WPFEssTweaksRP.IsChecked -eq $true ) {
|
||||||
Write-Host "Creating Restore Point in case something bad happens"
|
Write-Host "Creating Restore Point in case something bad happens"
|
||||||
Enable-ComputerRestore -Drive "$env:SystemDrive"
|
Enable-ComputerRestore -Drive "$env:SystemDrive"
|
||||||
@ -961,7 +983,7 @@ $WPFtweaksbutton.Add_Click({
|
|||||||
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" -Name "VisualFXSetting" -Type DWord -Value 3
|
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" -Name "VisualFXSetting" -Type DWord -Value 3
|
||||||
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\DWM" -Name "EnableAeroPeek" -Type DWord -Value 0
|
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\DWM" -Name "EnableAeroPeek" -Type DWord -Value 0
|
||||||
Write-Host "Adjusted visual effects for performance"
|
Write-Host "Adjusted visual effects for performance"
|
||||||
$WPFMiscTweaksDisplay.IsChecked = false
|
$WPFMiscTweaksDisplay.IsChecked = $false
|
||||||
}
|
}
|
||||||
|
|
||||||
If ( $WPFEssTweaksDeBloat.IsChecked -eq $true ) {
|
If ( $WPFEssTweaksDeBloat.IsChecked -eq $true ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user