mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 06:35:51 -06:00
Bugfixes before December (#465)
* Update Branch in script * Pester Updates (#394) * Update Branch in script * Update Branch in script * remove redundant test pipeline * update unit tests * remove tests for features not yet implemented * test * update tests * test pipeline * test pipeline * test pipeline * test pipeline * test pipeline * test pipeline * update tests * update pipeline Co-authored-by: DeveloperDurp <DeveloperDurp@users.noreply.github.com> * Update Branch in script * Move preset buttons to function (#396) * Update Branch in script * update set-presets * Update Branch in script Co-authored-by: DeveloperDurp <DeveloperDurp@users.noreply.github.com> Co-authored-by: Chris Titus <contact@christitus.com> * Update Branch in script * Require Admin and attempt relaunch (#395) * Update Branch in script * migrate admin check from runspace.ps1 * changed relaunch to use $BranchToUse Co-authored-by: DeveloperDurp <DeveloperDurp@users.noreply.github.com> Co-authored-by: Chris Titus <contact@christitus.com> * Update Branch in script * Choco prep (#429) * Update Branch in script * update application file * Update Branch in script * update helper script and fix RevoUnInstaller Co-authored-by: DeveloperDurp <DeveloperDurp@users.noreply.github.com> Co-authored-by: Chris Titus <contact@christitus.com> * Update Branch in script * Feature/simplelogging (#431) * Update Branch in script * added transcript for simple logging * Update Branch in script * Update winutil.ps1 * Update Branch in script * Update runspace.ps1 * Update Branch in script Co-authored-by: DeveloperDurp <DeveloperDurp@users.noreply.github.com> Co-authored-by: Chris Titus <contact@christitus.com> Co-authored-by: ChrisTitusTech <ChrisTitusTech@users.noreply.github.com> * Update Branch in script * Replaced Dark Theme Enable and Disable buttons with a toggle switch (#445) * Replaced Dark Theme Enable and Disable button with a toggle switch * Changed toggle switch background colour Co-authored-by: Chris Titus <contact@christitus.com> * Replace WMI calls (#450) Co-authored-by: Chris Titus <contact@christitus.com> * Fix Chocolatey installation detection (#452) * Fix error * Actually fix it this time * Add comments * Do it faster Co-authored-by: Chris Titus <contact@christitus.com> * 420/removeadmin (#462) * Update Branch in script * Remove Administrator Check Co-authored-by: DeveloperDurp <DeveloperDurp@users.noreply.github.com> Co-authored-by: Chris Titus <contact@christitus.com> * Update Branch in script * Update Branch in script Co-authored-by: ChrisTitusTech <ChrisTitusTech@users.noreply.github.com> Co-authored-by: DeveloperDurp <developerdurp@durp.info> Co-authored-by: DeveloperDurp <DeveloperDurp@users.noreply.github.com> Co-authored-by: Josh Ackland <joshackland@pm.me> Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
This commit is contained in:
parent
0951bf5bcd
commit
e2086e5ef7
27
.github/workflows/release.yaml
vendored
27
.github/workflows/release.yaml
vendored
@ -1,31 +1,12 @@
|
|||||||
name: Update Branch
|
name: Update Branch
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- test
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
|
||||||
runs-on: windows-latest
|
|
||||||
steps:
|
|
||||||
- name: Check out repository code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
ref: ${{ github.head_ref }}
|
|
||||||
- name: pester_tests
|
|
||||||
id: pester_tests
|
|
||||||
uses: zyborg/pester-tests-report@v1
|
|
||||||
with:
|
|
||||||
include_paths: pester
|
|
||||||
report_name: Winutil_Tests
|
|
||||||
report_title: Winutil_Tests
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
tests_fail_step: true
|
|
||||||
- name: dump test results
|
|
||||||
shell: pwsh
|
|
||||||
run: |
|
|
||||||
Write-Host 'Total Tests Executed...: ${{ steps.pester_tests.outputs.total_count }}'
|
|
||||||
Write-Host 'Total Tests PASSED.....: ${{ steps.pester_tests.outputs.passed_count }}'
|
|
||||||
Write-Host 'Total Tests FAILED.....: ${{ steps.pester_tests.outputs.failed_count }}'
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
name: Pester
|
name: Unit Tests
|
||||||
|
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
@ -16,6 +17,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
include_paths: pester
|
include_paths: pester
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
tests_fail_step: true
|
||||||
|
skip_check_run: true
|
||||||
- name: dump test results
|
- name: dump test results
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
5
.gitignore
vendored
5
.gitignore
vendored
@ -9,4 +9,7 @@ winutil.pdb
|
|||||||
*.zip
|
*.zip
|
||||||
.vs/
|
.vs/
|
||||||
*.psd*
|
*.psd*
|
||||||
pester.ps1
|
pester.ps1
|
||||||
|
Microsoft.UI.Xaml*
|
||||||
|
winget.msixbundle
|
||||||
|
license1.xml
|
@ -8,6 +8,78 @@
|
|||||||
Background="#777777"
|
Background="#777777"
|
||||||
WindowStartupLocation="CenterScreen"
|
WindowStartupLocation="CenterScreen"
|
||||||
Title="Chris Titus Tech's Windows Utility" Height="800" Width="1200">
|
Title="Chris Titus Tech's Windows Utility" Height="800" Width="1200">
|
||||||
|
<Window.Resources>
|
||||||
|
<Style x:Key="ToggleSwitchStyle" TargetType="CheckBox">
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate TargetType="CheckBox">
|
||||||
|
<StackPanel>
|
||||||
|
<Grid>
|
||||||
|
<Border Width="45"
|
||||||
|
Height="20"
|
||||||
|
Background="#555555"
|
||||||
|
CornerRadius="10"
|
||||||
|
Margin="5,0"
|
||||||
|
/>
|
||||||
|
<Border Name="ToggleSwitchButton"
|
||||||
|
Width="25"
|
||||||
|
Height="25"
|
||||||
|
Background="Black"
|
||||||
|
CornerRadius="12.5"
|
||||||
|
HorizontalAlignment="Left"
|
||||||
|
/>
|
||||||
|
<ContentPresenter Name="ToggleSwitchContent"
|
||||||
|
Margin="10,0,0,0"
|
||||||
|
Content="{TemplateBinding Content}"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
/>
|
||||||
|
</Grid>
|
||||||
|
</StackPanel>
|
||||||
|
<ControlTemplate.Triggers>
|
||||||
|
<Trigger Property="IsChecked" Value="false">
|
||||||
|
<Trigger.ExitActions>
|
||||||
|
<RemoveStoryboard BeginStoryboardName="ToggleSwitchLeft" />
|
||||||
|
<BeginStoryboard x:Name="ToggleSwitchRight">
|
||||||
|
<Storyboard>
|
||||||
|
<ThicknessAnimation Storyboard.TargetProperty="Margin"
|
||||||
|
Storyboard.TargetName="ToggleSwitchButton"
|
||||||
|
Duration="0:0:0:0"
|
||||||
|
From="0,0,0,0"
|
||||||
|
To="28,0,0,0">
|
||||||
|
</ThicknessAnimation>
|
||||||
|
</Storyboard>
|
||||||
|
</BeginStoryboard>
|
||||||
|
</Trigger.ExitActions>
|
||||||
|
<Setter TargetName="ToggleSwitchButton"
|
||||||
|
Property="Background"
|
||||||
|
Value="#fff9f4f4"
|
||||||
|
/>
|
||||||
|
</Trigger>
|
||||||
|
<Trigger Property="IsChecked" Value="true">
|
||||||
|
<Trigger.ExitActions>
|
||||||
|
<RemoveStoryboard BeginStoryboardName="ToggleSwitchRight" />
|
||||||
|
<BeginStoryboard x:Name="ToggleSwitchLeft">
|
||||||
|
<Storyboard>
|
||||||
|
<ThicknessAnimation Storyboard.TargetProperty="Margin"
|
||||||
|
Storyboard.TargetName="ToggleSwitchButton"
|
||||||
|
Duration="0:0:0:0"
|
||||||
|
From="28,0,0,0"
|
||||||
|
To="0,0,0,0">
|
||||||
|
</ThicknessAnimation>
|
||||||
|
</Storyboard>
|
||||||
|
</BeginStoryboard>
|
||||||
|
</Trigger.ExitActions>
|
||||||
|
<Setter TargetName="ToggleSwitchButton"
|
||||||
|
Property="Background"
|
||||||
|
Value="#ff060600"
|
||||||
|
/>
|
||||||
|
</Trigger>
|
||||||
|
</ControlTemplate.Triggers>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
</Window.Resources>
|
||||||
<Border Name="dummy" Grid.Column="0" Grid.Row="0">
|
<Border Name="dummy" Grid.Column="0" Grid.Row="0">
|
||||||
<Viewbox Stretch="Uniform" VerticalAlignment="Top">
|
<Viewbox Stretch="Uniform" VerticalAlignment="Top">
|
||||||
<Grid Background="#777777" ShowGridLines="False" Name="MainGrid">
|
<Grid Background="#777777" ShowGridLines="False" Name="MainGrid">
|
||||||
@ -232,9 +304,12 @@
|
|||||||
<CheckBox Name="EssTweaksDVR" Content="Disable GameDVR" Margin="5,0" ToolTip="GameDVR is a Windows App that is a dependancy for some Store Games. I've never met someone that likes it, but it's there for the XBOX crowd."/>
|
<CheckBox Name="EssTweaksDVR" Content="Disable GameDVR" Margin="5,0" ToolTip="GameDVR is a Windows App that is a dependancy for some Store Games. I've never met someone that likes it, but it's there for the XBOX crowd."/>
|
||||||
<CheckBox Name="EssTweaksServices" Content="Set Services to Manual" Margin="5,0" ToolTip="Turns a bunch of system services to manual that don't need to be running all the time. This is pretty harmless as if the service is needed, it will simply start on demand."/>
|
<CheckBox Name="EssTweaksServices" Content="Set Services to Manual" Margin="5,0" ToolTip="Turns a bunch of system services to manual that don't need to be running all the time. This is pretty harmless as if the service is needed, it will simply start on demand."/>
|
||||||
<Label Content="Dark Theme" />
|
<Label Content="Dark Theme" />
|
||||||
<Button Name="EnableDarkMode" Background="AliceBlue" Content="Enable" HorizontalAlignment = "Left" Margin="5,0" Padding="20,5" Width="150"/>
|
<StackPanel Orientation="Horizontal">
|
||||||
<Button Name="DisableDarkMode" Background="AliceBlue" Content="Disable" HorizontalAlignment = "Left" Margin="5,0" Padding="20,5" Width="150"/>
|
<Label Content="Off" />
|
||||||
<Label Content="Performance Plans" />
|
<CheckBox Name="ToggleDarkMode" Style="{StaticResource ToggleSwitchStyle}" Margin="2.5,0"/>
|
||||||
|
<Label Content="On" />
|
||||||
|
</StackPanel>
|
||||||
|
<Label Content="Performance Plans" />
|
||||||
<Button Name="AddUltPerf" Background="AliceBlue" Content="Add Ultimate Performance Profile" HorizontalAlignment = "Left" Margin="5,0" Padding="20,5" Width="300"/>
|
<Button Name="AddUltPerf" Background="AliceBlue" Content="Add Ultimate Performance Profile" HorizontalAlignment = "Left" Margin="5,0" Padding="20,5" Width="300"/>
|
||||||
<Button Name="RemoveUltPerf" Background="AliceBlue" Content="Remove Ultimate Performance Profile" HorizontalAlignment = "Left" Margin="5,0,0,5" Padding="20,5" Width="300"/>
|
<Button Name="RemoveUltPerf" Background="AliceBlue" Content="Remove Ultimate Performance Profile" HorizontalAlignment = "Left" Margin="5,0,0,5" Padding="20,5" Width="300"/>
|
||||||
|
|
||||||
|
@ -1,382 +1,506 @@
|
|||||||
{
|
{
|
||||||
"Install": {
|
"WPFInstalladobe": {
|
||||||
"WPFInstalladobe": {
|
"winget": "Adobe.Acrobat.Reader.64-bit",
|
||||||
"winget": "Adobe.Acrobat.Reader.64-bit"
|
"choco": "adobereader"
|
||||||
},
|
},
|
||||||
"WPFInstalladvancedip": {
|
"WPFInstalladvancedip": {
|
||||||
"winget": "Famatech.AdvancedIPScanner"
|
"winget": "Famatech.AdvancedIPScanner",
|
||||||
},
|
"choco": "advanced-ip-scanner"
|
||||||
"WPFInstallanydesk": {
|
},
|
||||||
"winget": "AnyDeskSoftwareGmbH.AnyDesk"
|
"WPFInstallanydesk": {
|
||||||
},
|
"winget": "AnyDeskSoftwareGmbH.AnyDesk",
|
||||||
"WPFInstallatom": {
|
"choco": "anydesk"
|
||||||
"winget": "GitHub.Atom"
|
},
|
||||||
},
|
"WPFInstallatom": {
|
||||||
"WPFInstallaudacity": {
|
"winget": "GitHub.Atom",
|
||||||
"winget": "Audacity.Audacity"
|
"choco": "atom"
|
||||||
},
|
},
|
||||||
"WPFInstallautohotkey": {
|
"WPFInstallaudacity": {
|
||||||
"winget": "Lexikos.AutoHotkey"
|
"winget": "Audacity.Audacity",
|
||||||
},
|
"choco": "audacity"
|
||||||
"WPFInstallbitwarden": {
|
},
|
||||||
"winget": "Bitwarden.Bitwarden"
|
"WPFInstallautohotkey": {
|
||||||
},
|
"winget": "Lexikos.AutoHotkey",
|
||||||
"WPFInstallblender": {
|
"choco": "autohotkey"
|
||||||
"winget": "BlenderFoundation.Blender"
|
},
|
||||||
},
|
"WPFInstallbitwarden": {
|
||||||
"WPFInstallbrave": {
|
"winget": "Bitwarden.Bitwarden",
|
||||||
"winget": "Brave.Brave"
|
"choco": "bitwarden"
|
||||||
},
|
},
|
||||||
"WPFInstallchrome": {
|
"WPFInstallblender": {
|
||||||
"winget": "Google.Chrome"
|
"winget": "BlenderFoundation.Blender",
|
||||||
},
|
"choco": "blender"
|
||||||
"WPFInstallchromium": {
|
},
|
||||||
"winget": "eloston.ungoogled-chromium"
|
"WPFInstallbrave": {
|
||||||
},
|
"winget": "Brave.Brave",
|
||||||
"WPFInstallcpuz": {
|
"choco": "brave"
|
||||||
"winget": "CPUID.CPU-Z"
|
},
|
||||||
},
|
"WPFInstallchrome": {
|
||||||
"WPFInstalldiscord": {
|
"winget": "Google.Chrome",
|
||||||
"winget": "Discord.Discord"
|
"choco": "googlechrome"
|
||||||
},
|
},
|
||||||
"WPFInstalleartrumpet": {
|
"WPFInstallchromium": {
|
||||||
"winget": "File-New-Project.EarTrumpet"
|
"winget": "eloston.ungoogled-chromium",
|
||||||
},
|
"choco": "chromium"
|
||||||
"WPFInstallepicgames": {
|
},
|
||||||
"winget": "EpicGames.EpicGamesLauncher"
|
"WPFInstallcpuz": {
|
||||||
},
|
"winget": "CPUID.CPU-Z",
|
||||||
"WPFInstallesearch": {
|
"choco": "cpu-z"
|
||||||
"winget": "voidtools.Everything"
|
},
|
||||||
},
|
"WPFInstalldiscord": {
|
||||||
"WPFInstalletcher": {
|
"winget": "Discord.Discord",
|
||||||
"winget": "Balena.Etcher"
|
"choco": "discord"
|
||||||
},
|
},
|
||||||
"WPFInstallfirefox": {
|
"WPFInstalleartrumpet": {
|
||||||
"winget": "Mozilla.Firefox"
|
"winget": "File-New-Project.EarTrumpet",
|
||||||
},
|
"choco": "eartrumpet"
|
||||||
"WPFInstallflameshot": {
|
},
|
||||||
"winget": "Flameshot.Flameshot"
|
"WPFInstallepicgames": {
|
||||||
},
|
"winget": "EpicGames.EpicGamesLauncher",
|
||||||
"WPFInstallfoobar": {
|
"choco": "epicgameslauncher"
|
||||||
"winget": "PeterPawlowski.foobar2000"
|
},
|
||||||
},
|
"WPFInstallesearch": {
|
||||||
"WPFInstallgimp": {
|
"winget": "voidtools.Everything",
|
||||||
"winget": "GIMP.GIMP"
|
"choco": "everything"
|
||||||
},
|
},
|
||||||
"WPFInstallgithubdesktop": {
|
"WPFInstalletcher": {
|
||||||
"winget": "Git.Git;GitHub.GitHubDesktop"
|
"winget": "Balena.Etcher",
|
||||||
},
|
"choco": "etcher"
|
||||||
"WPFInstallgog": {
|
},
|
||||||
"winget": "GOG.Galaxy"
|
"WPFInstallfirefox": {
|
||||||
},
|
"winget": "Mozilla.Firefox",
|
||||||
"WPFInstallgpuz": {
|
"choco": "firefox"
|
||||||
"winget": "TechPowerUp.GPU-Z"
|
},
|
||||||
},
|
"WPFInstallflameshot": {
|
||||||
"WPFInstallgreenshot": {
|
"winget": "Flameshot.Flameshot",
|
||||||
"winget": "Greenshot.Greenshot"
|
"choco": "na"
|
||||||
},
|
},
|
||||||
"WPFInstallhandbrake": {
|
"WPFInstallfoobar": {
|
||||||
"winget": "HandBrake.HandBrake"
|
"winget": "PeterPawlowski.foobar2000",
|
||||||
},
|
"choco": "foobar2000"
|
||||||
"WPFInstallhexchat": {
|
},
|
||||||
"winget": "HexChat.HexChat"
|
"WPFInstallgimp": {
|
||||||
},
|
"winget": "GIMP.GIMP",
|
||||||
"WPFInstallhwinfo": {
|
"choco": "gimp"
|
||||||
"winget": "REALiX.HWiNFO"
|
},
|
||||||
},
|
"WPFInstallgithubdesktop": {
|
||||||
"WPFInstallimageglass": {
|
"winget": "Git.Git;GitHub.GitHubDesktop",
|
||||||
"winget": "DuongDieuPhap.ImageGlass"
|
"choco": "git;github-desktop"
|
||||||
},
|
},
|
||||||
"WPFInstallinkscape": {
|
"WPFInstallgog": {
|
||||||
"winget": "Inkscape.Inkscape"
|
"winget": "GOG.Galaxy",
|
||||||
},
|
"choco": "goggalaxy"
|
||||||
"WPFInstalljava16": {
|
},
|
||||||
"winget": "AdoptOpenJDK.OpenJDK.16"
|
"WPFInstallgpuz": {
|
||||||
},
|
"winget": "TechPowerUp.GPU-Z",
|
||||||
"WPFInstalljava18": {
|
"choco": "gpu-z"
|
||||||
"winget": "EclipseAdoptium.Temurin.18.JRE"
|
},
|
||||||
},
|
"WPFInstallgreenshot": {
|
||||||
"WPFInstalljava8": {
|
"winget": "Greenshot.Greenshot",
|
||||||
"winget": "EclipseAdoptium.Temurin.8.JRE"
|
"choco": "greenshot"
|
||||||
},
|
},
|
||||||
"WPFInstalljava19": {
|
"WPFInstallhandbrake": {
|
||||||
"winget": "EclipseAdoptium.Temurin.19.JRE"
|
"winget": "HandBrake.HandBrake",
|
||||||
},
|
"choco": "handbrake"
|
||||||
"WPFInstalljava17": {
|
},
|
||||||
"winget": "EclipseAdoptium.Temurin.17.JRE"
|
"WPFInstallhexchat": {
|
||||||
},
|
"winget": "HexChat.HexChat",
|
||||||
"WPFInstalljava11": {
|
"choco": "hexchat"
|
||||||
"winget": "EclipseAdoptium.Temurin.11.JRE"
|
},
|
||||||
},
|
"WPFInstallhwinfo": {
|
||||||
"WPFInstalljetbrains": {
|
"winget": "REALiX.HWiNFO",
|
||||||
"winget": "JetBrains.Toolbox"
|
"choco": "hwinfo"
|
||||||
},
|
},
|
||||||
"WPFInstallkeepass": {
|
"WPFInstallimageglass": {
|
||||||
"winget": "KeePassXCTeam.KeePassXC"
|
"winget": "DuongDieuPhap.ImageGlass",
|
||||||
},
|
"choco": "imageglass"
|
||||||
"WPFInstalllibrewolf": {
|
},
|
||||||
"winget": "LibreWolf.LibreWolf"
|
"WPFInstallinkscape": {
|
||||||
},
|
"winget": "Inkscape.Inkscape",
|
||||||
"WPFInstallmalwarebytes": {
|
"choco": "inkscape"
|
||||||
"winget": "Malwarebytes.Malwarebytes"
|
},
|
||||||
},
|
"WPFInstalljava16": {
|
||||||
"WPFInstallmatrix": {
|
"winget": "AdoptOpenJDK.OpenJDK.16",
|
||||||
"winget": "Element.Element"
|
"choco": "temurin16jre"
|
||||||
},
|
},
|
||||||
"WPFInstallmpc": {
|
"WPFInstalljava18": {
|
||||||
"winget": "clsid2.mpc-hc"
|
"winget": "EclipseAdoptium.Temurin.18.JRE",
|
||||||
},
|
"choco": "temurin18jre"
|
||||||
"WPFInstallmremoteng": {
|
},
|
||||||
"winget": "mRemoteNG.mRemoteNG"
|
"WPFInstalljava8": {
|
||||||
},
|
"winget": "EclipseAdoptium.Temurin.8.JRE",
|
||||||
"WPFInstallnodejs": {
|
"choco": "temurin8jre"
|
||||||
"winget": "OpenJS.NodeJS"
|
},
|
||||||
},
|
"WPFInstalljava19": {
|
||||||
"WPFInstallnodejslts": {
|
"winget": "EclipseAdoptium.Temurin.19.JRE",
|
||||||
"winget": "OpenJS.NodeJS.LTS"
|
"choco": "temurin19jre"
|
||||||
},
|
},
|
||||||
"WPFInstallnotepadplus": {
|
"WPFInstalljava17": {
|
||||||
"winget": "Notepad++.Notepad++"
|
"winget": "EclipseAdoptium.Temurin.17.JRE",
|
||||||
},
|
"choco": "temurin17jre"
|
||||||
"WPFInstallnvclean": {
|
},
|
||||||
"winget": "TechPowerUp.NVCleanstall"
|
"WPFInstalljava11": {
|
||||||
},
|
"winget": "EclipseAdoptium.Temurin.11.JRE",
|
||||||
"WPFInstallobs": {
|
"choco": "javaruntime"
|
||||||
"winget": "OBSProject.OBSStudio"
|
},
|
||||||
},
|
"WPFInstalljetbrains": {
|
||||||
"WPFInstallobsidian": {
|
"winget": "JetBrains.Toolbox",
|
||||||
"winget": "Obsidian.Obsidian"
|
"choco": "jetbrainstoolbox"
|
||||||
},
|
},
|
||||||
"WPFInstallpowertoys": {
|
"WPFInstallkeepass": {
|
||||||
"winget": "Microsoft.PowerToys"
|
"winget": "KeePassXCTeam.KeePassXC",
|
||||||
},
|
"choco": "keepassxc"
|
||||||
"WPFInstallputty": {
|
},
|
||||||
"winget": "PuTTY.PuTTY"
|
"WPFInstalllibrewolf": {
|
||||||
},
|
"winget": "LibreWolf.LibreWolf",
|
||||||
"WPFInstallpython3": {
|
"choco": "librewolf"
|
||||||
"winget": "Python.Python.3"
|
},
|
||||||
},
|
"WPFInstallmalwarebytes": {
|
||||||
"WPFInstallrevo": {
|
"winget": "Malwarebytes.Malwarebytes",
|
||||||
"winget": "RevoUnWPFInstaller.RevoUnWPFInstaller"
|
"choco": "malwarebytes"
|
||||||
},
|
},
|
||||||
"WPFInstallrufus": {
|
"WPFInstallmatrix": {
|
||||||
"winget": "Rufus.Rufus"
|
"winget": "Element.Element",
|
||||||
},
|
"choco": "element-desktop"
|
||||||
"WPFInstallsevenzip": {
|
},
|
||||||
"winget": "7zip.7zip"
|
"WPFInstallmpc": {
|
||||||
},
|
"winget": "clsid2.mpc-hc",
|
||||||
"WPFInstallsharex": {
|
"choco": "mpc-hc"
|
||||||
"winget": "ShareX.ShareX"
|
},
|
||||||
},
|
"WPFInstallmremoteng": {
|
||||||
"WPFInstallsignal": {
|
"winget": "mRemoteNG.mRemoteNG",
|
||||||
"winget": "OpenWhisperSystems.Signal"
|
"choco": "mremoteng"
|
||||||
},
|
},
|
||||||
"WPFInstallskype": {
|
"WPFInstallnodejs": {
|
||||||
"winget": "Microsoft.Skype"
|
"winget": "OpenJS.NodeJS",
|
||||||
},
|
"choco": "nodejs"
|
||||||
"WPFInstallslack": {
|
},
|
||||||
"winget": "SlackTechnologies.Slack"
|
"WPFInstallnodejslts": {
|
||||||
},
|
"winget": "OpenJS.NodeJS.LTS",
|
||||||
"WPFInstallsteam": {
|
"choco": "nodejs-lts"
|
||||||
"winget": "Valve.Steam"
|
},
|
||||||
},
|
"WPFInstallnotepadplus": {
|
||||||
"WPFInstallsublime": {
|
"winget": "Notepad++.Notepad++",
|
||||||
"winget": "SublimeHQ.SublimeText.4"
|
"choco": "notepadplusplus"
|
||||||
},
|
},
|
||||||
"WPFInstallsumatra": {
|
"WPFInstallnvclean": {
|
||||||
"winget": "SumatraPDF.SumatraPDF"
|
"winget": "TechPowerUp.NVCleanstall",
|
||||||
},
|
"choco": "na"
|
||||||
"WPFInstallteams": {
|
},
|
||||||
"winget": "Microsoft.Teams"
|
"WPFInstallobs": {
|
||||||
},
|
"winget": "OBSProject.OBSStudio",
|
||||||
"WPFInstallteamviewer": {
|
"choco": "obs-studio"
|
||||||
"winget": "TeamViewer.TeamViewer"
|
},
|
||||||
},
|
"WPFInstallobsidian": {
|
||||||
"WPFInstallterminal": {
|
"winget": "Obsidian.Obsidian",
|
||||||
"winget": "Microsoft.WindowsTerminal"
|
"choco": "obsidian"
|
||||||
},
|
},
|
||||||
"WPFInstalltreesize": {
|
"WPFInstallpowertoys": {
|
||||||
"winget": "JAMSoftware.TreeSize.Free"
|
"winget": "Microsoft.PowerToys",
|
||||||
},
|
"choco": "powertoys"
|
||||||
"WPFInstallttaskbar": {
|
},
|
||||||
"winget": "TranslucentTB.TranslucentTB"
|
"WPFInstallputty": {
|
||||||
},
|
"winget": "PuTTY.PuTTY",
|
||||||
"WPFInstallvisualstudio": {
|
"choco": "putty"
|
||||||
"winget": "Microsoft.VisualStudio.2022.Community"
|
},
|
||||||
},
|
"WPFInstallpython3": {
|
||||||
"WPFInstallvivaldi": {
|
"winget": "Python.Python.3",
|
||||||
"winget": "VivaldiTechnologies.Vivaldi"
|
"choco": "python"
|
||||||
},
|
},
|
||||||
"WPFInstallvlc": {
|
"WPFInstallrevo": {
|
||||||
"winget": "VideoLAN.VLC"
|
"winget": "RevoUnInstaller.RevoUnInstaller",
|
||||||
},
|
"choco": "revo-uninstaller"
|
||||||
"WPFInstallvoicemeeter": {
|
},
|
||||||
"winget": "VB-Audio.Voicemeeter"
|
"WPFInstallrufus": {
|
||||||
},
|
"winget": "Rufus.Rufus",
|
||||||
"WPFInstallvscode": {
|
"choco": "rufus"
|
||||||
"winget": "Git.Git;Microsoft.VisualStudioCode"
|
},
|
||||||
},
|
"WPFInstallsevenzip": {
|
||||||
"WPFInstallvscodium": {
|
"winget": "7zip.7zip",
|
||||||
"winget": "Git.Git;VSCodium.VSCodium"
|
"choco": "7zip"
|
||||||
},
|
},
|
||||||
"WPFInstallwindirstat": {
|
"WPFInstallsharex": {
|
||||||
"winget": "WinDirStat.WinDirStat"
|
"winget": "ShareX.ShareX",
|
||||||
},
|
"choco": "sharex"
|
||||||
"WPFInstallscp": {
|
},
|
||||||
"winget": "WinSCP.WinSCP"
|
"WPFInstallsignal": {
|
||||||
},
|
"winget": "OpenWhisperSystems.Signal",
|
||||||
"WPFInstallwireshark": {
|
"choco": "signal"
|
||||||
"winget": "WiresharkFoundation.Wireshark"
|
},
|
||||||
},
|
"WPFInstallskype": {
|
||||||
"WPFInstallzoom": {
|
"winget": "Microsoft.Skype",
|
||||||
"winget": "Zoom.Zoom"
|
"choco": "skype"
|
||||||
},
|
},
|
||||||
"WPFInstalllibreoffice": {
|
"WPFInstallslack": {
|
||||||
"winget": "TheDocumentFoundation.LibreOffice"
|
"winget": "SlackTechnologies.Slack",
|
||||||
},
|
"choco": "slack"
|
||||||
"WPFInstallshell": {
|
},
|
||||||
"winget": "Nilesoft.Shell"
|
"WPFInstallsteam": {
|
||||||
},
|
"winget": "Valve.Steam",
|
||||||
"WPFInstallklite": {
|
"choco": "steam-client"
|
||||||
"winget": "CodecGuide.K-LiteCodecPack.Standard"
|
},
|
||||||
},
|
"WPFInstallsublime": {
|
||||||
"WPFInstallsandboxie": {
|
"winget": "SublimeHQ.SublimeText.4",
|
||||||
"winget": "Sandboxie.Plus"
|
"choco": "sublimetext4"
|
||||||
},
|
},
|
||||||
"WPFInstallprocesslasso": {
|
"WPFInstallsumatra": {
|
||||||
"winget": "BitSum.ProcessLasso"
|
"winget": "SumatraPDF.SumatraPDF",
|
||||||
},
|
"choco": "sumatrapdf"
|
||||||
"WPFInstallwinmerge": {
|
},
|
||||||
"winget": "WinMerge.WinMerge"
|
"WPFInstallteams": {
|
||||||
},
|
"winget": "Microsoft.Teams",
|
||||||
"WPFInstalldotnet3": {
|
"choco": "microsoft-teams"
|
||||||
"winget": "Microsoft.DotNet.DesktopRuntime.3_1"
|
},
|
||||||
},
|
"WPFInstallteamviewer": {
|
||||||
"WPFInstalldotnet5": {
|
"winget": "TeamViewer.TeamViewer",
|
||||||
"winget": "Microsoft.DotNet.DesktopRuntime.5"
|
"choco": "teamviewer9"
|
||||||
},
|
},
|
||||||
"WPFInstalldotnet6": {
|
"WPFInstallterminal": {
|
||||||
"winget": "Microsoft.DotNet.DesktopRuntime.6"
|
"winget": "Microsoft.WindowsTerminal",
|
||||||
},
|
"choco": "microsoft-windows-terminal"
|
||||||
"WPFInstallvc2015_64": {
|
},
|
||||||
"winget": "Microsoft.VC++2015-2022Redist-x64"
|
"WPFInstalltreesize": {
|
||||||
},
|
"winget": "JAMSoftware.TreeSize.Free",
|
||||||
"WPFInstallvc2015_32": {
|
"choco": "treesizefree"
|
||||||
"winget": "Microsoft.VC++2015-2022Redist-x86"
|
},
|
||||||
},
|
"WPFInstallttaskbar": {
|
||||||
"WPFInstallfoxpdf": {
|
"winget": "TranslucentTB.TranslucentTB",
|
||||||
"winget": "Foxit.PhantomPDF"
|
"choco": "translucenttb"
|
||||||
},
|
},
|
||||||
"WPFInstallonlyoffice": {
|
"WPFInstallvisualstudio": {
|
||||||
"winget": "ONLYOFFICE.DesktopEditors"
|
"winget": "Microsoft.VisualStudio.2022.Community",
|
||||||
},
|
"choco": "visualstudio2022community"
|
||||||
"WPFInstallflux": {
|
},
|
||||||
"winget": "flux.flux"
|
"WPFInstallvivaldi": {
|
||||||
},
|
"winget": "VivaldiTechnologies.Vivaldi",
|
||||||
"WPFInstallitunes": {
|
"choco": "vivaldi"
|
||||||
"winget": "Apple.iTunes"
|
},
|
||||||
},
|
"WPFInstallvlc": {
|
||||||
"WPFInstallcider": {
|
"winget": "VideoLAN.VLC",
|
||||||
"winget": "CiderCollective.Cider"
|
"choco": "vlc"
|
||||||
},
|
},
|
||||||
"WPFInstalljoplin": {
|
"WPFInstallvoicemeeter": {
|
||||||
"winget": "Joplin.Joplin"
|
"winget": "VB-Audio.Voicemeeter",
|
||||||
},
|
"choco": "voicemeeter"
|
||||||
"WPFInstallopenoffice": {
|
},
|
||||||
"winget": "Apache.OpenOffice"
|
"WPFInstallvscode": {
|
||||||
},
|
"winget": "Git.Git;Microsoft.VisualStudioCode",
|
||||||
"WPFInstallrustdesk": {
|
"choco": "vscode"
|
||||||
"winget": "RustDesk.RustDesk"
|
},
|
||||||
},
|
"WPFInstallvscodium": {
|
||||||
"WPFInstalljami": {
|
"winget": "Git.Git;VSCodium.VSCodium",
|
||||||
"winget": "SFLinux.Jami"
|
"choco": "vscodium"
|
||||||
},
|
},
|
||||||
"WPFInstalljdownloader": {
|
"WPFInstallwindirstat": {
|
||||||
"winget": "AppWork.JDownloader"
|
"winget": "WinDirStat.WinDirStat",
|
||||||
},
|
"choco": "windirstat"
|
||||||
"WPFInstallsimplewall": {
|
},
|
||||||
"Winget": "Henry++.simplewall"
|
"WPFInstallscp": {
|
||||||
},
|
"winget": "WinSCP.WinSCP",
|
||||||
"WPFInstallrustlang": {
|
"choco": "winscp"
|
||||||
"Winget": "Rustlang.Rust.MSVC"
|
},
|
||||||
},
|
"WPFInstallwireshark": {
|
||||||
"WPFInstallalacritty": {
|
"winget": "WiresharkFoundation.Wireshark",
|
||||||
"Winget": "Alacritty.Alacritty"
|
"choco": "wireshark"
|
||||||
},
|
},
|
||||||
"WPFInstallkdenlive": {
|
"WPFInstallzoom": {
|
||||||
"Winget": "KDE.Kdenlive"
|
"winget": "Zoom.Zoom",
|
||||||
},
|
"choco": "zoom"
|
||||||
"WPFInstallglaryutilities": {
|
},
|
||||||
"Winget": "Glarysoft.GlaryUtilities"
|
"WPFInstalllibreoffice": {
|
||||||
},
|
"winget": "TheDocumentFoundation.LibreOffice",
|
||||||
"WPFInstalltwinkletray": {
|
"choco": "libreoffice-fresh"
|
||||||
"Winget": "xanderfrangos.twinkletray"
|
},
|
||||||
},
|
"WPFInstallshell": {
|
||||||
"WPFInstallidm": {
|
"winget": "Nilesoft.Shell",
|
||||||
"Winget": "Tonec.InternetDownloadManager"
|
"choco": "na"
|
||||||
},
|
},
|
||||||
"WPFInstallviber": {
|
"WPFInstallklite": {
|
||||||
"Winget": "Viber.Viber"
|
"winget": "CodecGuide.K-LiteCodecPack.Standard",
|
||||||
},
|
"choco": "k-litecodecpack-standard"
|
||||||
"WPFInstallgit": {
|
},
|
||||||
"Winget": "Git.Git"
|
"WPFInstallsandboxie": {
|
||||||
},
|
"winget": "Sandboxie.Plus",
|
||||||
"WPFInstallwiztree": {
|
"choco": "sandboxie"
|
||||||
"Winget": "AntibodySoftware.WizTree"
|
},
|
||||||
},
|
"WPFInstallprocesslasso": {
|
||||||
"WPFInstalltor": {
|
"winget": "BitSum.ProcessLasso",
|
||||||
"Winget": "TorProject.TorBrowser"
|
"choco": "plasso"
|
||||||
},
|
},
|
||||||
"WPFInstallkrita": {
|
"WPFInstallwinmerge": {
|
||||||
"winget": "KDE.Krita"
|
"winget": "WinMerge.WinMerge",
|
||||||
},
|
"choco": "winmerge"
|
||||||
"WPFInstallnglide": {
|
},
|
||||||
"winget": "ZeusSoftware.nGlide"
|
"WPFInstalldotnet3": {
|
||||||
},
|
"winget": "Microsoft.DotNet.DesktopRuntime.3_1",
|
||||||
"WPFInstallkodi": {
|
"choco": "dotnetcore3-desktop-runtime"
|
||||||
"winget": "XBMCFoundation.Kodi"
|
},
|
||||||
},
|
"WPFInstalldotnet5": {
|
||||||
"WPFInstalltelegram": {
|
"winget": "Microsoft.DotNet.DesktopRuntime.5",
|
||||||
"winget": "Telegram.TelegramDesktop"
|
"choco": "dotnet-5.0-runtime"
|
||||||
},
|
},
|
||||||
"WPFInstallunity": {
|
"WPFInstalldotnet6": {
|
||||||
"winget": "UnityTechnologies.UnityHub"
|
"winget": "Microsoft.DotNet.DesktopRuntime.6",
|
||||||
},
|
"choco": "dotnet-6.0-runtime"
|
||||||
"WPFInstallqbittorrent": {
|
},
|
||||||
"winget": "qBittorrent.qBittorrent"
|
"WPFInstallvc2015_64": {
|
||||||
},
|
"winget": "Microsoft.VC++2015-2022Redist-x64",
|
||||||
"WPFInstallorigin": {
|
"choco": "na"
|
||||||
"winget": "ElectronicArts.EADesktop"
|
},
|
||||||
},
|
"WPFInstallvc2015_32": {
|
||||||
"WPFInstallopenshell": {
|
"winget": "Microsoft.VC++2015-2022Redist-x86",
|
||||||
"winget": "Open-Shell.Open-Shell-Menu"
|
"choco": "na"
|
||||||
},
|
},
|
||||||
"WPFInstallbluestacks": {
|
"WPFInstallfoxpdf": {
|
||||||
"winget": "BlueStack.BlueStacks"
|
"winget": "Foxit.PhantomPDF",
|
||||||
},
|
"choco": "na"
|
||||||
"WPFInstallstrawberry": {
|
},
|
||||||
"winget": "StrawberryMusicPlayer.Strawberry"
|
"WPFInstallonlyoffice": {
|
||||||
},
|
"winget": "ONLYOFFICE.DesktopEditors",
|
||||||
"WPFInstallsqlstudio": {
|
"choco": "onlyoffice"
|
||||||
"winget": "Microsoft.SQLServerManagementStudio"
|
},
|
||||||
},
|
"WPFInstallflux": {
|
||||||
"WPFInstallwaterfox": {
|
"winget": "flux.flux",
|
||||||
"winget": "Waterfox.Waterfox"
|
"choco": "flux"
|
||||||
},
|
},
|
||||||
"WPFInstallpowershell": {
|
"WPFInstallitunes": {
|
||||||
"winget": "Microsoft.PowerShell"
|
"winget": "Apple.iTunes",
|
||||||
},
|
"choco": "itunes"
|
||||||
"WPFInstallprocessmonitor": {
|
},
|
||||||
"winget": "Microsoft.Sysinternals.ProcessMonitor"
|
"WPFInstallcider": {
|
||||||
},
|
"winget": "CiderCollective.Cider",
|
||||||
"WPFInstallonedrive": {
|
"choco": "cider"
|
||||||
"winget": "Microsoft.OneDrive"
|
},
|
||||||
},
|
"WPFInstalljoplin": {
|
||||||
"WPFInstalledge": {
|
"winget": "Joplin.Joplin",
|
||||||
"winget": "Microsoft.Edge"
|
"choco": "joplin"
|
||||||
},
|
},
|
||||||
"WPFInstallnuget": {
|
"WPFInstallopenoffice": {
|
||||||
"winget": "Microsoft.NuGet"
|
"winget": "Apache.OpenOffice",
|
||||||
}
|
"choco": "openoffice"
|
||||||
|
},
|
||||||
|
"WPFInstallrustdesk": {
|
||||||
|
"winget": "RustDesk.RustDesk",
|
||||||
|
"choco": "rustdesk.portable"
|
||||||
|
},
|
||||||
|
"WPFInstalljami": {
|
||||||
|
"winget": "SFLinux.Jami",
|
||||||
|
"choco": "jami"
|
||||||
|
},
|
||||||
|
"WPFInstalljdownloader": {
|
||||||
|
"winget": "AppWork.JDownloader",
|
||||||
|
"choco": "jdownloader"
|
||||||
|
},
|
||||||
|
"WPFInstallsimplewall": {
|
||||||
|
"Winget": "Henry++.simplewall",
|
||||||
|
"choco": "simplewall"
|
||||||
|
},
|
||||||
|
"WPFInstallrustlang": {
|
||||||
|
"Winget": "Rustlang.Rust.MSVC",
|
||||||
|
"choco": "rust"
|
||||||
|
},
|
||||||
|
"WPFInstallalacritty": {
|
||||||
|
"Winget": "Alacritty.Alacritty",
|
||||||
|
"choco": "alacritty"
|
||||||
|
},
|
||||||
|
"WPFInstallkdenlive": {
|
||||||
|
"Winget": "KDE.Kdenlive",
|
||||||
|
"choco": "kdenlive"
|
||||||
|
},
|
||||||
|
"WPFInstallglaryutilities": {
|
||||||
|
"Winget": "Glarysoft.GlaryUtilities",
|
||||||
|
"choco": "glaryutilities-free"
|
||||||
|
},
|
||||||
|
"WPFInstalltwinkletray": {
|
||||||
|
"Winget": "xanderfrangos.twinkletray",
|
||||||
|
"choco": "na"
|
||||||
|
},
|
||||||
|
"WPFInstallidm": {
|
||||||
|
"Winget": "Tonec.InternetDownloadManager",
|
||||||
|
"choco": "internet-download-manager"
|
||||||
|
},
|
||||||
|
"WPFInstallviber": {
|
||||||
|
"Winget": "Viber.Viber",
|
||||||
|
"choco": "viber"
|
||||||
|
},
|
||||||
|
"WPFInstallgit": {
|
||||||
|
"Winget": "Git.Git",
|
||||||
|
"choco": "git"
|
||||||
|
},
|
||||||
|
"WPFInstallwiztree": {
|
||||||
|
"Winget": "AntibodySoftware.WizTree",
|
||||||
|
"choco": "wiztree\\"
|
||||||
|
},
|
||||||
|
"WPFInstalltor": {
|
||||||
|
"Winget": "TorProject.TorBrowser",
|
||||||
|
"choco": "tor-browser"
|
||||||
|
},
|
||||||
|
"WPFInstallkrita": {
|
||||||
|
"winget": "KDE.Krita",
|
||||||
|
"choco": "krita"
|
||||||
|
},
|
||||||
|
"WPFInstallnglide": {
|
||||||
|
"winget": "ZeusSoftware.nGlide",
|
||||||
|
"choco": "na"
|
||||||
|
},
|
||||||
|
"WPFInstallkodi": {
|
||||||
|
"winget": "XBMCFoundation.Kodi",
|
||||||
|
"choco": "kodi"
|
||||||
|
},
|
||||||
|
"WPFInstalltelegram": {
|
||||||
|
"winget": "Telegram.TelegramDesktop",
|
||||||
|
"choco": "telegram"
|
||||||
|
},
|
||||||
|
"WPFInstallunity": {
|
||||||
|
"winget": "UnityTechnologies.UnityHub",
|
||||||
|
"choco": "unityhub"
|
||||||
|
},
|
||||||
|
"WPFInstallqbittorrent": {
|
||||||
|
"winget": "qBittorrent.qBittorrent",
|
||||||
|
"choco": "qbittorrent"
|
||||||
|
},
|
||||||
|
"WPFInstallorigin": {
|
||||||
|
"winget": "ElectronicArts.EADesktop",
|
||||||
|
"choco": "origin"
|
||||||
|
},
|
||||||
|
"WPFInstallopenshell": {
|
||||||
|
"winget": "Open-Shell.Open-Shell-Menu",
|
||||||
|
"choco": "open-shell"
|
||||||
|
},
|
||||||
|
"WPFInstallbluestacks": {
|
||||||
|
"winget": "BlueStack.BlueStacks",
|
||||||
|
"choco": "na"
|
||||||
|
},
|
||||||
|
"WPFInstallstrawberry": {
|
||||||
|
"winget": "StrawberryMusicPlayer.Strawberry",
|
||||||
|
"choco": "strawberrymusicplayer"
|
||||||
|
},
|
||||||
|
"WPFInstallsqlstudio": {
|
||||||
|
"winget": "Microsoft.SQLServerManagementStudio",
|
||||||
|
"choco": "sql-server-management-studio"
|
||||||
|
},
|
||||||
|
"WPFInstallwaterfox": {
|
||||||
|
"winget": "Waterfox.Waterfox",
|
||||||
|
"choco": "waterfox"
|
||||||
|
},
|
||||||
|
"WPFInstallpowershell": {
|
||||||
|
"winget": "Microsoft.PowerShell",
|
||||||
|
"choco": "powershell-core"
|
||||||
|
},
|
||||||
|
"WPFInstallprocessmonitor": {
|
||||||
|
"winget": "Microsoft.Sysinternals.ProcessMonitor",
|
||||||
|
"choco": "procexp"
|
||||||
|
},
|
||||||
|
"WPFInstallonedrive": {
|
||||||
|
"winget": "Microsoft.OneDrive",
|
||||||
|
"choco": "onedrive"
|
||||||
|
},
|
||||||
|
"WPFInstalledge": {
|
||||||
|
"winget": "Microsoft.Edge",
|
||||||
|
"choco": "microsoft-edge"
|
||||||
|
},
|
||||||
|
"WPFInstallnuget": {
|
||||||
|
"winget": "Microsoft.NuGet",
|
||||||
|
"choco": "nuget.commandline"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,16 +3,17 @@
|
|||||||
<#
|
<#
|
||||||
Applications.json
|
Applications.json
|
||||||
-----------------
|
-----------------
|
||||||
This file holds all the winget commands to install the applications.
|
This file holds all the install commands to install the applications.
|
||||||
It also has the ablity to expact to other frameworks (IE Choco).
|
This file has the ability to expect multiple frameworks per checkbox.
|
||||||
You can also add multiple winget commands by seperating them with ;
|
You can also add multiple install commands by seperating them with ;
|
||||||
|
|
||||||
The structure of the json is as follows
|
The structure of the json is as follows
|
||||||
|
|
||||||
{
|
{
|
||||||
"install": {
|
"install": {
|
||||||
"Name of Button": {
|
"Name of Button": {
|
||||||
"winget": "Winget command"
|
"winget": "Winget command"
|
||||||
|
"choco": "Chocolatey command"
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -22,9 +23,11 @@ Example:
|
|||||||
"install": {
|
"install": {
|
||||||
"WPFInstalladobe": {
|
"WPFInstalladobe": {
|
||||||
"winget": "Adobe.Acrobat.Reader.64-bit"
|
"winget": "Adobe.Acrobat.Reader.64-bit"
|
||||||
|
"choco": "adobereader"
|
||||||
},
|
},
|
||||||
"WPFInstalladvancedip": {
|
"WPFInstalladvancedip": {
|
||||||
"winget": "Famatech.AdvancedIPScanner"
|
"winget": "Famatech.AdvancedIPScanner"
|
||||||
|
"choco": "advanced-ip-scanner"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -36,6 +39,7 @@ Example:
|
|||||||
|
|
||||||
$NameofButton = "WPF" + ""
|
$NameofButton = "WPF" + ""
|
||||||
$WingetCommand = ""
|
$WingetCommand = ""
|
||||||
|
$ChocoCommand = ""
|
||||||
|
|
||||||
$ButtonToAdd = New-Object psobject
|
$ButtonToAdd = New-Object psobject
|
||||||
$jsonfile = Get-Content ./config/applications.json | ConvertFrom-Json
|
$jsonfile = Get-Content ./config/applications.json | ConvertFrom-Json
|
||||||
@ -46,6 +50,7 @@ if($jsonfile.install.$NameofButton){
|
|||||||
}
|
}
|
||||||
|
|
||||||
Add-Member -InputObject $ButtonToAdd -MemberType NoteProperty -Name "Winget" -Value $WingetCommand
|
Add-Member -InputObject $ButtonToAdd -MemberType NoteProperty -Name "Winget" -Value $WingetCommand
|
||||||
|
Add-Member -InputObject $ButtonToAdd -MemberType NoteProperty -Name "choco" -Value $ChocoCommand
|
||||||
Add-Member -InputObject $jsonfile.install -MemberType NoteProperty -Name $NameofButton -Value $ButtonToAdd
|
Add-Member -InputObject $jsonfile.install -MemberType NoteProperty -Name $NameofButton -Value $ButtonToAdd
|
||||||
|
|
||||||
$jsonfile | ConvertTo-Json | Out-File ./config/applications.json
|
$jsonfile | ConvertTo-Json | Out-File ./config/applications.json
|
||||||
@ -138,7 +143,7 @@ Example:
|
|||||||
|
|
||||||
#Modify the variables and run his code. It will import the current file and add your addition. From there you can create a pull request.
|
#Modify the variables and run his code. It will import the current file and add your addition. From there you can create a pull request.
|
||||||
|
|
||||||
$NameofButton = ""
|
$NameofButton = "WPF" + ""
|
||||||
$commands = @(
|
$commands = @(
|
||||||
|
|
||||||
)
|
)
|
||||||
|
@ -1,38 +1,38 @@
|
|||||||
{
|
{
|
||||||
"desktop": [
|
"desktop": [
|
||||||
"EssTweaksAH",
|
"WPFEssTweaksAH",
|
||||||
"EssTweaksDVR",
|
"WPFEssTweaksDVR",
|
||||||
"EssTweaksHiber",
|
"WPFEssTweaksHiber",
|
||||||
"EssTweaksHome",
|
"WPFEssTweaksHome",
|
||||||
"EssTweaksLoc",
|
"WPFEssTweaksLoc",
|
||||||
"EssTweaksOO",
|
"WPFEssTweaksOO",
|
||||||
"EssTweaksRP",
|
"WPFEssTweaksRP",
|
||||||
"EssTweaksServices",
|
"WPFEssTweaksServices",
|
||||||
"EssTweaksStorage",
|
"WPFEssTweaksStorage",
|
||||||
"EssTweaksTele",
|
"WPFEssTweaksTele",
|
||||||
"EssTweaksWifi",
|
"WPFEssTweaksWifi",
|
||||||
"MiscTweaksPower",
|
"WPFMiscTweaksPower",
|
||||||
"MiscTweaksNum"
|
"WPFMiscTweaksNum"
|
||||||
],
|
],
|
||||||
"laptop": [
|
"laptop": [
|
||||||
"EssTweaksAH",
|
"WPFEssTweaksAH",
|
||||||
"EssTweaksDVR",
|
"WPFEssTweaksDVR",
|
||||||
"EssTweaksHome",
|
"WPFEssTweaksHome",
|
||||||
"EssTweaksLoc",
|
"WPFEssTweaksLoc",
|
||||||
"EssTweaksOO",
|
"WPFEssTweaksOO",
|
||||||
"EssTweaksRP",
|
"WPFEssTweaksRP",
|
||||||
"EssTweaksServices",
|
"WPFEssTweaksServices",
|
||||||
"EssTweaksStorage",
|
"WPFEssTweaksStorage",
|
||||||
"EssTweaksTele",
|
"WPFEssTweaksTele",
|
||||||
"EssTweaksWifi",
|
"WPFEssTweaksWifi",
|
||||||
"MiscTweaksLapPower",
|
"WPFMiscTweaksLapPower",
|
||||||
"MiscTweaksLapNum"
|
"WPFMiscTweaksLapNum"
|
||||||
],
|
],
|
||||||
"minimal": [
|
"minimal": [
|
||||||
"EssTweaksHome",
|
"WPFEssTweaksHome",
|
||||||
"EssTweaksOO",
|
"WPFEssTweaksOO",
|
||||||
"EssTweaksRP",
|
"WPFEssTweaksRP",
|
||||||
"EssTweaksServices",
|
"WPFEssTweaksServices",
|
||||||
"EssTweaksTele"
|
"WPFEssTweaksTele"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -17,10 +17,7 @@
|
|||||||
$global:configs = @{}
|
$global:configs = @{}
|
||||||
|
|
||||||
(
|
(
|
||||||
"applications",
|
"applications"
|
||||||
"tweaks",
|
|
||||||
"preset",
|
|
||||||
"feature"
|
|
||||||
) | ForEach-Object {
|
) | ForEach-Object {
|
||||||
$global:configs["$PSItem"] = Get-Content .\config\$PSItem.json | ConvertFrom-Json
|
$global:configs["$PSItem"] = Get-Content .\config\$PSItem.json | ConvertFrom-Json
|
||||||
}
|
}
|
||||||
@ -34,99 +31,54 @@
|
|||||||
$global:Form = [Windows.Markup.XamlReader]::Load( $global:reader )
|
$global:Form = [Windows.Markup.XamlReader]::Load( $global:reader )
|
||||||
$global:xaml.SelectNodes("//*[@Name]") | ForEach-Object { Set-Variable -Name "Global:WPF$($_.Name)" -Value $global:Form.FindName($_.Name) -Scope global }
|
$global:xaml.SelectNodes("//*[@Name]") | ForEach-Object { Set-Variable -Name "Global:WPF$($_.Name)" -Value $global:Form.FindName($_.Name) -Scope global }
|
||||||
|
|
||||||
#Variables to compare GUI to config files
|
|
||||||
$Global:GUIFeatureCount = ( $global:configs.feature.psobject.members | Where-Object {$psitem.MemberType -eq "NoteProperty"}).count
|
|
||||||
$Global:GUIApplicationCount = ($global:configs.applications.install.psobject.members | Where-Object {$psitem.MemberType -eq "NoteProperty"}).count
|
|
||||||
$Global:GUITweaksCount = ($global:configs.tweaks.psobject.members | Where-Object {$psitem.MemberType -eq "NoteProperty"}).count
|
|
||||||
|
|
||||||
#dotsource original script to pull in all variables and ensure no errors
|
#dotsource original script to pull in all variables and ensure no errors
|
||||||
$script = Get-Content .\winutil.ps1
|
$script = Get-Content .\winutil.ps1
|
||||||
$output = $script[0..($script.count - 3)] | Out-File .\pester.ps1
|
$output = $script[0..($script.count - 4)] | Out-File .\pester.ps1
|
||||||
|
|
||||||
|
|
||||||
#endregion Load Variables needed for testing
|
#endregion Load Variables needed for testing
|
||||||
|
|
||||||
#===========================================================================
|
#===========================================================================
|
||||||
# Tests - Config Files
|
# Tests - Application Installs
|
||||||
#===========================================================================
|
#===========================================================================
|
||||||
|
|
||||||
Describe "Config Files" {
|
Describe "Application Installs" {
|
||||||
Context "Application installs" {
|
Context "Application installs" {
|
||||||
It "Imports with no errors" {
|
It "Imports with no errors" {
|
||||||
$global:configs.Applications | should -Not -BeNullOrEmpty
|
$global:configs.Applications | should -Not -BeNullOrEmpty
|
||||||
}
|
}
|
||||||
It "Json should be in correct format" {
|
}
|
||||||
$winget = $global:configs.applications.install.psobject.members | Where-Object {$psitem.MemberType -eq "NoteProperty"} | Select-Object Name,Value
|
Context "Winget Install" {
|
||||||
$winget.name | should -BeLike "*Install*"
|
$global:configs.applications.install | Get-Member -MemberType NoteProperty | ForEach-Object {
|
||||||
$winget.winget | should -Not -BeNullOrEmpty
|
$TestCase = @{ name = $psitem.name }
|
||||||
|
It "$($psitem.name) should include Winget Install" -TestCases $TestCase{
|
||||||
|
param($name)
|
||||||
|
$null -eq $global:configs.applications.install.$name.winget | should -Befalse -because "$name Did not include a Winget Install"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Context "GUI Applications Checkbox" {
|
||||||
|
(get-variable | Where-Object {$psitem.name -like "*install*" -and $psitem.value.GetType().name -eq "CheckBox"}).name -replace 'Global:','' | ForEach-Object {
|
||||||
|
|
||||||
|
$TestCase = @{ name = $psitem }
|
||||||
|
It "$($psitem) should include application.json " -TestCases $TestCase{
|
||||||
|
param($name)
|
||||||
|
$null -eq $global:configs.applications.install.$name | should -Befalse -because "$name Does not have entry in applications.json"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Context "Preset" {
|
#===========================================================================
|
||||||
|
# Tests - Tweak Presets
|
||||||
|
#===========================================================================
|
||||||
|
|
||||||
|
Describe "Tweak Presets" {
|
||||||
|
Context "Json Import" {
|
||||||
It "Imports with no errors" {
|
It "Imports with no errors" {
|
||||||
$global:configs.preset | should -Not -BeNullOrEmpty
|
$global:configs.preset | should -Not -BeNullOrEmpty
|
||||||
}
|
}
|
||||||
It "Json should be in correct format" {
|
}
|
||||||
$preset = $global:configs.preset.psobject.members | Where-Object {$psitem.MemberType -eq "NoteProperty"} | Select-Object Name,Value
|
|
||||||
$preset.name | should -Not -BeNullOrEmpty
|
|
||||||
$preset.Value | should -BeLike "*Tweaks*"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Context "feature" {
|
|
||||||
It "Imports with no errors" {
|
|
||||||
$global:configs.feature | should -Not -BeNullOrEmpty
|
|
||||||
}
|
|
||||||
It "Json should be in correct format" {
|
|
||||||
$feature = $global:configs.feature.psobject.members | Where-Object {$psitem.MemberType -eq "NoteProperty"} | Select-Object Name,Value
|
|
||||||
$feature.name | should -BeLike "*Feature*"
|
|
||||||
$feature.Value | should -Not -BeNullOrEmpty
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Context "tweaks" {
|
|
||||||
It "Imports with no errors" {
|
|
||||||
$global:configs.tweaks | should -Not -BeNullOrEmpty
|
|
||||||
}
|
|
||||||
It "Json should be in correct format" {
|
|
||||||
$tweaks = $global:configs.tweaks.psobject.members | Where-Object {$psitem.MemberType -eq "NoteProperty"} | Select-Object Name,Value
|
|
||||||
$tweaks.name | should -BeLike "*Tweaks*"
|
|
||||||
$tweaks.Value.registry | should -Not -BeNullOrEmpty
|
|
||||||
$tweaks.Value.Service | should -Not -BeNullOrEmpty
|
|
||||||
$tweaks.Value.ScheduledTask | should -Not -BeNullOrEmpty
|
|
||||||
$tweaks.Value.Appx | should -Not -BeNullOrEmpty
|
|
||||||
$tweaks.Value.InvokeScript | should -Not -BeNullOrEmpty
|
|
||||||
}
|
|
||||||
It "Original Values should be set" {
|
|
||||||
$tweaks = $global:configs.tweaks.psobject.members | Where-Object {$psitem.MemberType -eq "NoteProperty"} | Select-Object Name,Value
|
|
||||||
|
|
||||||
Foreach($tweak in $tweaks){
|
|
||||||
if($tweak.value.registry){
|
|
||||||
|
|
||||||
$values = $tweak.value | Select-Object -ExpandProperty registry
|
|
||||||
|
|
||||||
Foreach ($value in $values){
|
|
||||||
$value.OriginalValue | should -Not -BeNullOrEmpty
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if($tweak.value.Service){
|
|
||||||
|
|
||||||
$values = $tweak.value | Select-Object -ExpandProperty Service
|
|
||||||
|
|
||||||
Foreach ($value in $values){
|
|
||||||
$value.OriginalType | should -Not -BeNullOrEmpty
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if($tweak.value.ScheduledTask){
|
|
||||||
|
|
||||||
$values = $tweak.value | Select-Object -ExpandProperty ScheduledTask
|
|
||||||
|
|
||||||
Foreach ($value in $values){
|
|
||||||
$value.OriginalState | should -Not -BeNullOrEmpty
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#===========================================================================
|
#===========================================================================
|
||||||
@ -150,26 +102,17 @@ Describe "GUI" {
|
|||||||
It "Title should match XML" {
|
It "Title should match XML" {
|
||||||
$global:Form.title | should -Be $global:XAML.window.Title
|
$global:Form.title | should -Be $global:XAML.window.Title
|
||||||
}
|
}
|
||||||
It "Features should be $Global:GUIFeatureCount" {
|
|
||||||
(get-variable | Where-Object {$psitem.name -like "*feature*" -and $psitem.value.GetType().name -eq "CheckBox"}).count | should -Be $Global:GUIFeatureCount
|
|
||||||
}
|
|
||||||
It "Applications should be $Global:GUIApplicationCount" {
|
|
||||||
(get-variable | Where-Object {$psitem.name -like "*install*" -and $psitem.value.GetType().name -eq "CheckBox"}).count | should -Be $Global:GUIApplicationCount
|
|
||||||
}
|
|
||||||
It "Tweaks should be $Global:GUITweaksCount" {
|
|
||||||
(get-variable | Where-Object {$psitem.name -like "*tweaks*" -and $psitem.value.GetType().name -eq "CheckBox"}).count | should -Be $Global:GUITweaksCount
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#===========================================================================
|
#===========================================================================
|
||||||
# Tests - GUI
|
# Tests - GUI Functions
|
||||||
#===========================================================================
|
#===========================================================================
|
||||||
|
|
||||||
Describe "GUI Functions" {
|
Describe "GUI Functions" {
|
||||||
|
BeforeEach -Scriptblock {. ./pester.ps1}
|
||||||
|
|
||||||
It "GUI should load with no errors" {
|
It "GUI should load with no errors" {
|
||||||
. .\pester.ps1
|
|
||||||
$WPFTab1BT | should -Not -BeNullOrEmpty
|
$WPFTab1BT | should -Not -BeNullOrEmpty
|
||||||
$WPFundoall | should -Not -BeNullOrEmpty
|
$WPFundoall | should -Not -BeNullOrEmpty
|
||||||
$WPFPanelDISM | should -Not -BeNullOrEmpty
|
$WPFPanelDISM | should -Not -BeNullOrEmpty
|
||||||
@ -190,8 +133,9 @@ Describe "GUI Functions" {
|
|||||||
$WPFinstall | should -Not -BeNullOrEmpty
|
$WPFinstall | should -Not -BeNullOrEmpty
|
||||||
}
|
}
|
||||||
|
|
||||||
It "Get-CheckBoxes Install should return data" {
|
Context "Get-CheckBoxes" {
|
||||||
. .\pester.ps1
|
It "Get-CheckBoxes Install should return data" {
|
||||||
|
. .\pester.ps1
|
||||||
|
|
||||||
$TestCheckBoxes = @(
|
$TestCheckBoxes = @(
|
||||||
"WPFInstallvc2015_32"
|
"WPFInstallvc2015_32"
|
||||||
@ -215,4 +159,15 @@ Describe "GUI Functions" {
|
|||||||
$Output | Should -Be $($OutputResult | Select-Object -Unique | Sort-Object) -Because "Output doesn't match"
|
$Output | Should -Be $($OutputResult | Select-Object -Unique | Sort-Object) -Because "Output doesn't match"
|
||||||
$TestCheckBoxes | ForEach-Object {(Get-Variable $PSItem).value.ischecked | should -be $false}
|
$TestCheckBoxes | ForEach-Object {(Get-Variable $PSItem).value.ischecked | should -be $false}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
Context "Set-Presets" {
|
||||||
|
$global:configs.preset | Get-Member -MemberType NoteProperty | ForEach-Object {
|
||||||
|
$TestCase = @{ name = $psitem.name }
|
||||||
|
It "preset $($psitem.name) should modify the correct values" -TestCases $TestCase {
|
||||||
|
param($name)
|
||||||
|
Set-Presets $name
|
||||||
|
get-variable $global:configs.preset.$name | Select-Object -ExpandProperty value | Select-Object -ExpandProperty ischecked | Where-Object {$psitem -eq $false} | should -BeNullOrEmpty
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#for CI/CD
|
#for CI/CD
|
||||||
$BranchToUse = 'hotfix/applications'
|
$BranchToUse = 'test'
|
||||||
|
|
||||||
<#
|
<#
|
||||||
.NOTES
|
.NOTES
|
||||||
|
190
winutil.ps1
190
winutil.ps1
@ -1,24 +1,26 @@
|
|||||||
#for CI/CD
|
#for CI/CD
|
||||||
$BranchToUse = 'hotfix/applications'
|
$BranchToUse = 'test'
|
||||||
|
|
||||||
<#
|
<#
|
||||||
.NOTES
|
.NOTES
|
||||||
Author : Chris Titus @christitustech
|
Author : Chris Titus @christitustech
|
||||||
GitHub : https://github.com/ChrisTitusTech
|
GitHub : https://github.com/ChrisTitusTech
|
||||||
Version 0.0.1
|
Version 0.0.1
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
Start-Transcript $ENV:TEMP\Winutil.log -Append
|
||||||
|
|
||||||
# $inputXML = Get-Content "MainWindow.xaml" #uncomment for development
|
# $inputXML = Get-Content "MainWindow.xaml" #uncomment for development
|
||||||
$inputXML = (new-object Net.WebClient).DownloadString("https://raw.githubusercontent.com/ChrisTitusTech/winutil/$BranchToUse/MainWindow.xaml") #uncomment for Production
|
$inputXML = (new-object Net.WebClient).DownloadString("https://raw.githubusercontent.com/ChrisTitusTech/winutil/$BranchToUse/MainWindow.xaml") #uncomment for Production
|
||||||
|
|
||||||
# Choco install
|
# Check if chocolatey is installed and get its version
|
||||||
$testchoco = powershell choco -v
|
if ((Get-Command -Name choco -ErrorAction Ignore) -and ($chocoVersion = (Get-Item "$env:ChocolateyInstall\choco.exe" -ErrorAction Ignore).VersionInfo.ProductVersion)) {
|
||||||
if(-not($testchoco)){
|
Write-Output "Chocolatey Version $chocoVersion is already installed"
|
||||||
|
}else {
|
||||||
Write-Output "Seems Chocolatey is not installed, installing now"
|
Write-Output "Seems Chocolatey is not installed, installing now"
|
||||||
Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
|
Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
|
||||||
powershell choco feature enable -n allowGlobalConfirmation
|
powershell choco feature enable -n allowGlobalConfirmation
|
||||||
}
|
}
|
||||||
else{
|
|
||||||
Write-Output "Chocolatey Version $testchoco is already installed"
|
|
||||||
}
|
|
||||||
|
|
||||||
#Load config files to hashtable
|
#Load config files to hashtable
|
||||||
$configs = @{}
|
$configs = @{}
|
||||||
@ -130,6 +132,30 @@ Function Get-CheckBoxes {
|
|||||||
Write-Output $($Output | Select-Object -Unique)
|
Write-Output $($Output | Select-Object -Unique)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function Set-Presets {
|
||||||
|
<#
|
||||||
|
|
||||||
|
.DESCRIPTION
|
||||||
|
Meant to make settings presets easier in the tweaks tab. Will pull the data from config/preset.json
|
||||||
|
|
||||||
|
#>
|
||||||
|
|
||||||
|
param($preset)
|
||||||
|
$CheckBoxesToCheck = $configs.preset.$preset
|
||||||
|
|
||||||
|
#Uncheck all
|
||||||
|
get-variable | Where-Object {$_.name -like "*tweaks*"} | ForEach-Object {
|
||||||
|
if ($psitem.value.gettype().name -eq "CheckBox"){
|
||||||
|
$CheckBox = Get-Variable $psitem.Name
|
||||||
|
if ($CheckBoxesToCheck -contains $CheckBox.name){
|
||||||
|
$checkbox.value.ischecked = $true
|
||||||
|
}
|
||||||
|
else{$checkbox.value.ischecked = $false}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
#===========================================================================
|
#===========================================================================
|
||||||
# Global Variables
|
# Global Variables
|
||||||
#===========================================================================
|
#===========================================================================
|
||||||
@ -196,7 +222,7 @@ $WPFinstall.Add_Click({
|
|||||||
# Switching to winget-install from PSGallery from asheroto
|
# Switching to winget-install from PSGallery from asheroto
|
||||||
# Source: https://github.com/asheroto/winget-installer
|
# Source: https://github.com/asheroto/winget-installer
|
||||||
|
|
||||||
Start-Process powershell.exe -Verb RunAs -ArgumentList "-command irm https://raw.githubusercontent.com/ChrisTitusTech/winutil/main/winget.ps1 | iex | Out-Host" -WindowStyle Normal
|
Start-Process powershell.exe -Verb RunAs -ArgumentList "-command irm https://raw.githubusercontent.com/ChrisTitusTech/winutil/$BranchToUse/winget.ps1 | iex | Out-Host" -WindowStyle Normal
|
||||||
|
|
||||||
}
|
}
|
||||||
elseif (((Get-ComputerInfo).WindowsVersion) -lt "1809") {
|
elseif (((Get-ComputerInfo).WindowsVersion) -lt "1809") {
|
||||||
@ -225,7 +251,7 @@ $WPFinstall.Add_Click({
|
|||||||
$wingetResult = New-Object System.Collections.Generic.List[System.Object]
|
$wingetResult = New-Object System.Collections.Generic.List[System.Object]
|
||||||
foreach ( $node in $wingetinstall ) {
|
foreach ( $node in $wingetinstall ) {
|
||||||
try {
|
try {
|
||||||
Start-Process powershell.exe -Verb RunAs -ArgumentList "-command winget install -e --accept-source-agreements --accept-package-agreements --silent $node | Out-Host" -WindowStyle Normal
|
Start-Process powershell.exe -Verb RunAs -ArgumentList "-command Start-Transcript $ENV:TEMP\winget-$node.log -Append; winget install -e --accept-source-agreements --accept-package-agreements --silent $node | Out-Host" -WindowStyle Normal
|
||||||
$wingetResult.Add("$node`n")
|
$wingetResult.Add("$node`n")
|
||||||
Start-Sleep -s 6
|
Start-Sleep -s 6
|
||||||
Wait-Process winget -Timeout 90 -ErrorAction SilentlyContinue
|
Wait-Process winget -Timeout 90 -ErrorAction SilentlyContinue
|
||||||
@ -281,85 +307,16 @@ $WPFInstallUpgrade.Add_Click({
|
|||||||
# Tab 2 - Tweak Buttons
|
# Tab 2 - Tweak Buttons
|
||||||
#===========================================================================
|
#===========================================================================
|
||||||
$WPFdesktop.Add_Click({
|
$WPFdesktop.Add_Click({
|
||||||
|
Set-Presets "Desktop"
|
||||||
$WPFEssTweaksAH.IsChecked = $true
|
})
|
||||||
$WPFEssTweaksDeleteTempFiles.IsChecked = $true
|
|
||||||
$WPFEssTweaksDeBloat.IsChecked = $false
|
|
||||||
$WPFEssTweaksRemoveCortana.IsChecked = $false
|
|
||||||
$WPFEssTweaksRemoveEdge.IsChecked = $false
|
|
||||||
$WPFEssTweaksDiskCleanup.IsChecked = $false
|
|
||||||
$WPFEssTweaksDVR.IsChecked = $true
|
|
||||||
$WPFEssTweaksHiber.IsChecked = $true
|
|
||||||
$WPFEssTweaksHome.IsChecked = $true
|
|
||||||
$WPFEssTweaksLoc.IsChecked = $true
|
|
||||||
$WPFEssTweaksOO.IsChecked = $true
|
|
||||||
$WPFEssTweaksRP.IsChecked = $true
|
|
||||||
$WPFEssTweaksServices.IsChecked = $true
|
|
||||||
$WPFEssTweaksStorage.IsChecked = $true
|
|
||||||
$WPFEssTweaksTele.IsChecked = $true
|
|
||||||
$WPFEssTweaksWifi.IsChecked = $true
|
|
||||||
$WPFMiscTweaksDisableUAC.IsChecked = $false
|
|
||||||
$WPFMiscTweaksDisableNotifications.IsChecked = $false
|
|
||||||
$WPFMiscTweaksRightClickMenu.IsChecked = $false
|
|
||||||
$WPFMiscTweaksPower.IsChecked = $true
|
|
||||||
$WPFMiscTweaksNum.IsChecked = $true
|
|
||||||
$WPFMiscTweaksLapPower.IsChecked = $false
|
|
||||||
$WPFMiscTweaksLapNum.IsChecked = $false
|
|
||||||
})
|
|
||||||
|
|
||||||
$WPFlaptop.Add_Click({
|
$WPFlaptop.Add_Click({
|
||||||
|
Set-Presets "laptop"
|
||||||
$WPFEssTweaksAH.IsChecked = $true
|
})
|
||||||
$WPFEssTweaksDeleteTempFiles.IsChecked = $true
|
|
||||||
$WPFEssTweaksDeBloat.IsChecked = $false
|
|
||||||
$WPFEssTweaksRemoveCortana.IsChecked = $false
|
|
||||||
$WPFEssTweaksRemoveEdge.IsChecked = $false
|
|
||||||
$WPFEssTweaksDiskCleanup.IsChecked = $false
|
|
||||||
$WPFEssTweaksDVR.IsChecked = $true
|
|
||||||
$WPFEssTweaksHiber.IsChecked = $false
|
|
||||||
$WPFEssTweaksHome.IsChecked = $true
|
|
||||||
$WPFEssTweaksLoc.IsChecked = $true
|
|
||||||
$WPFEssTweaksOO.IsChecked = $true
|
|
||||||
$WPFEssTweaksRP.IsChecked = $true
|
|
||||||
$WPFEssTweaksServices.IsChecked = $true
|
|
||||||
$WPFEssTweaksStorage.IsChecked = $true
|
|
||||||
$WPFEssTweaksTele.IsChecked = $true
|
|
||||||
$WPFEssTweaksWifi.IsChecked = $true
|
|
||||||
$WPFMiscTweaksDisableUAC.IsChecked = $false
|
|
||||||
$WPFMiscTweaksDisableNotifications.IsChecked = $false
|
|
||||||
$WPFMiscTweaksRightClickMenu.IsChecked = $false
|
|
||||||
$WPFMiscTweaksLapPower.IsChecked = $true
|
|
||||||
$WPFMiscTweaksLapNum.IsChecked = $true
|
|
||||||
$WPFMiscTweaksPower.IsChecked = $false
|
|
||||||
$WPFMiscTweaksNum.IsChecked = $false
|
|
||||||
})
|
|
||||||
|
|
||||||
$WPFminimal.Add_Click({
|
$WPFminimal.Add_Click({
|
||||||
|
Set-Presets "minimal"
|
||||||
$WPFEssTweaksAH.IsChecked = $false
|
})
|
||||||
$WPFEssTweaksDeleteTempFiles.IsChecked = $false
|
|
||||||
$WPFEssTweaksDeBloat.IsChecked = $false
|
|
||||||
$WPFEssTweaksRemoveCortana.IsChecked = $false
|
|
||||||
$WPFEssTweaksRemoveEdge.IsChecked = $false
|
|
||||||
$WPFEssTweaksDiskCleanup.IsChecked = $false
|
|
||||||
$WPFEssTweaksDVR.IsChecked = $false
|
|
||||||
$WPFEssTweaksHiber.IsChecked = $false
|
|
||||||
$WPFEssTweaksHome.IsChecked = $true
|
|
||||||
$WPFEssTweaksLoc.IsChecked = $false
|
|
||||||
$WPFEssTweaksOO.IsChecked = $true
|
|
||||||
$WPFEssTweaksRP.IsChecked = $true
|
|
||||||
$WPFEssTweaksServices.IsChecked = $true
|
|
||||||
$WPFEssTweaksStorage.IsChecked = $false
|
|
||||||
$WPFEssTweaksTele.IsChecked = $true
|
|
||||||
$WPFEssTweaksWifi.IsChecked = $false
|
|
||||||
$WPFMiscTweaksDisableUAC.IsChecked = $false
|
|
||||||
$WPFMiscTweaksDisableNotifications.IsChecked = $false
|
|
||||||
$WPFMiscTweaksRightClickMenu.IsChecked = $false
|
|
||||||
$WPFMiscTweaksPower.IsChecked = $false
|
|
||||||
$WPFMiscTweaksNum.IsChecked = $false
|
|
||||||
$WPFMiscTweaksLapPower.IsChecked = $false
|
|
||||||
$WPFMiscTweaksLapNum.IsChecked = $false
|
|
||||||
})
|
|
||||||
|
|
||||||
$WPFtweaksbutton.Add_Click({
|
$WPFtweaksbutton.Add_Click({
|
||||||
|
|
||||||
@ -465,32 +422,32 @@ $WPFtweaksbutton.Add_Click({
|
|||||||
$DC = "8.8.8.8"
|
$DC = "8.8.8.8"
|
||||||
$Internet = "8.8.4.4"
|
$Internet = "8.8.4.4"
|
||||||
$dns = "$DC", "$Internet"
|
$dns = "$DC", "$Internet"
|
||||||
$Interface = Get-WmiObject Win32_NetworkAdapterConfiguration
|
$Interfaces = [System.Management.ManagementClass]::new("Win32_NetworkAdapterConfiguration").GetInstances()
|
||||||
$Interface.SetDNSServerSearchOrder($dns) | Out-Null
|
$Interfaces.SetDNSServerSearchOrder($dns) | Out-Null
|
||||||
}
|
}
|
||||||
If ( $WPFchangedns.text -eq 'Cloud Flare' ) {
|
If ( $WPFchangedns.text -eq 'Cloud Flare' ) {
|
||||||
Write-Host "Setting DNS to Cloud Flare for all connections..."
|
Write-Host "Setting DNS to Cloud Flare for all connections..."
|
||||||
$DC = "1.1.1.1"
|
$DC = "1.1.1.1"
|
||||||
$Internet = "1.0.0.1"
|
$Internet = "1.0.0.1"
|
||||||
$dns = "$DC", "$Internet"
|
$dns = "$DC", "$Internet"
|
||||||
$Interface = Get-WmiObject Win32_NetworkAdapterConfiguration
|
$Interfaces = [System.Management.ManagementClass]::new("Win32_NetworkAdapterConfiguration").GetInstances()
|
||||||
$Interface.SetDNSServerSearchOrder($dns) | Out-Null
|
$Interfaces.SetDNSServerSearchOrder($dns) | Out-Null
|
||||||
}
|
}
|
||||||
If ( $WPFchangedns.text -eq 'Level3' ) {
|
If ( $WPFchangedns.text -eq 'Level3' ) {
|
||||||
Write-Host "Setting DNS to Level3 for all connections..."
|
Write-Host "Setting DNS to Level3 for all connections..."
|
||||||
$DC = "4.2.2.2"
|
$DC = "4.2.2.2"
|
||||||
$Internet = "4.2.2.1"
|
$Internet = "4.2.2.1"
|
||||||
$dns = "$DC", "$Internet"
|
$dns = "$DC", "$Internet"
|
||||||
$Interface = Get-WmiObject Win32_NetworkAdapterConfiguration
|
$Interfaces = [System.Management.ManagementClass]::new("Win32_NetworkAdapterConfiguration").GetInstances()
|
||||||
$Interface.SetDNSServerSearchOrder($dns) | Out-Null
|
$Interfaces.SetDNSServerSearchOrder($dns) | Out-Null
|
||||||
}
|
}
|
||||||
If ( $WPFchangedns.text -eq 'Open DNS' ) {
|
If ( $WPFchangedns.text -eq 'Open DNS' ) {
|
||||||
Write-Host "Setting DNS to Open DNS for all connections..."
|
Write-Host "Setting DNS to Open DNS for all connections..."
|
||||||
$DC = "208.67.222.222"
|
$DC = "208.67.222.222"
|
||||||
$Internet = "208.67.220.220"
|
$Internet = "208.67.220.220"
|
||||||
$dns = "$DC", "$Internet"
|
$dns = "$DC", "$Internet"
|
||||||
$Interface = Get-WmiObject Win32_NetworkAdapterConfiguration
|
$Interfaces = [System.Management.ManagementClass]::new("Win32_NetworkAdapterConfiguration").GetInstances()
|
||||||
$Interface.SetDNSServerSearchOrder($dns) | Out-Null
|
$Interfaces.SetDNSServerSearchOrder($dns) | Out-Null
|
||||||
}
|
}
|
||||||
If ( $WPFEssTweaksOO.IsChecked -eq $true ) {
|
If ( $WPFEssTweaksOO.IsChecked -eq $true ) {
|
||||||
If (!(Test-Path .\ooshutup10.cfg)) {
|
If (!(Test-Path .\ooshutup10.cfg)) {
|
||||||
@ -738,7 +695,7 @@ $WPFtweaksbutton.Add_Click({
|
|||||||
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" -Name "Scheduling Category" -Type String -Value "High"
|
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" -Name "Scheduling Category" -Type String -Value "High"
|
||||||
|
|
||||||
# Group svchost.exe processes
|
# Group svchost.exe processes
|
||||||
$ram = (Get-CimInstance -ClassName Win32_PhysicalMemory | Measure-Object -Property Capacity -Sum).Sum / 1kb
|
$ram = (Get-CimInstance -ClassName "Win32_PhysicalMemory" | Measure-Object -Property Capacity -Sum).Sum / 1kb
|
||||||
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control" -Name "SvcHostSplitThresholdInKB" -Type DWord -Value $ram -Force
|
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control" -Name "SvcHostSplitThresholdInKB" -Type DWord -Value $ram -Force
|
||||||
|
|
||||||
Write-Host "Disable News and Interests"
|
Write-Host "Disable News and Interests"
|
||||||
@ -767,8 +724,9 @@ $WPFtweaksbutton.Add_Click({
|
|||||||
Write-Host "Stopping and disabling Diagnostics Tracking Service..."
|
Write-Host "Stopping and disabling Diagnostics Tracking Service..."
|
||||||
Stop-Service "DiagTrack"
|
Stop-Service "DiagTrack"
|
||||||
Set-Service "DiagTrack" -StartupType Disabled
|
Set-Service "DiagTrack" -StartupType Disabled
|
||||||
|
|
||||||
Write-Host "Doing Security checks for Administrator Account and Group Policy"
|
Write-Host "Doing Security checks for Administrator Account and Group Policy"
|
||||||
if (($(Get-WMIObject -class Win32_ComputerSystem | Select-Object username).username).IndexOf('Administrator') -eq -1) {
|
if (([System.Security.Principal.WindowsIdentity]::GetCurrent().Name).IndexOf('Administrator') -eq -1) {
|
||||||
net user administrator /active:no
|
net user administrator /active:no
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1066,24 +1024,35 @@ $WPFRemoveUltPerf.Add_Click({
|
|||||||
Write-Host "Profile Removed"
|
Write-Host "Profile Removed"
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
$WPFEnableDarkMode.Add_Click({
|
function Get-AppsUseLightTheme{
|
||||||
Write-Host "Enabling Dark Mode"
|
return (Get-ItemProperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize').AppsUseLightTheme
|
||||||
$Theme = "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize"
|
}
|
||||||
Set-ItemProperty $Theme AppsUseLightTheme -Value 0
|
|
||||||
Set-ItemProperty $Theme SystemUsesLightTheme -Value 0
|
function Get-SystemUsesLightTheme{
|
||||||
Write-Host "Enabled"
|
return (Get-ItemProperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize').SystemUsesLightTheme
|
||||||
|
}
|
||||||
|
|
||||||
|
$WPFToggleDarkMode.IsChecked = $(If ($(Get-AppsUseLightTheme) -eq 0 -And $(Get-SystemUsesLightTheme) -eq 0) {$true} Else {$false})
|
||||||
|
|
||||||
|
$WPFToggleDarkMode.Add_Click({
|
||||||
|
$EnableDarkMode = $WPFToggleDarkMode.IsChecked
|
||||||
|
$DarkMoveValue = $(If ( $EnableDarkMode ) {0} Else {1})
|
||||||
|
Write-Host $(If ( $EnableDarkMode ) {"Enabling Dark Mode"} Else {"Disabling Dark Mode"})
|
||||||
|
$Theme = "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize"
|
||||||
|
If ($DarkMoveValue -ne $(Get-AppsUseLightTheme))
|
||||||
|
{
|
||||||
|
Set-ItemProperty $Theme AppsUseLightTheme -Value $DarkMoveValue
|
||||||
|
}
|
||||||
|
If ($DarkMoveValue -ne $(Get-SystemUsesLightTheme))
|
||||||
|
{
|
||||||
|
Set-ItemProperty $Theme SystemUsesLightTheme -Value $DarkMoveValue
|
||||||
|
}
|
||||||
|
Write-Host $(If ( $EnableDarkMode ) {"Enabled"} Else {"Disabled"})
|
||||||
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
$WPFDisableDarkMode.Add_Click({
|
|
||||||
Write-Host "Disabling Dark Mode"
|
|
||||||
$Theme = "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize"
|
|
||||||
Set-ItemProperty $Theme AppsUseLightTheme -Value 1
|
|
||||||
Set-ItemProperty $Theme SystemUsesLightTheme -Value 1
|
|
||||||
Write-Host "Disabled"
|
|
||||||
}
|
|
||||||
)
|
|
||||||
#===========================================================================
|
#===========================================================================
|
||||||
# Undo All
|
# Undo All
|
||||||
#===========================================================================
|
#===========================================================================
|
||||||
@ -1440,7 +1409,7 @@ $WPFFixesUpdate.Add_Click({
|
|||||||
Get-BitsTransfer | Remove-BitsTransfer
|
Get-BitsTransfer | Remove-BitsTransfer
|
||||||
|
|
||||||
Write-Host "10) Attempting to install the Windows Update Agent..."
|
Write-Host "10) Attempting to install the Windows Update Agent..."
|
||||||
If (!((wmic OS get OSArchitecture | Out-String).IndexOf("64") -eq -1)) {
|
If ([System.Environment]::Is64BitOperatingSystem) {
|
||||||
wusa Windows8-RT-KB2937636-x64 /quiet
|
wusa Windows8-RT-KB2937636-x64 /quiet
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -1538,3 +1507,4 @@ $WPFUpdatessecurity.Add_Click({
|
|||||||
#===========================================================================
|
#===========================================================================
|
||||||
Get-FormVariables
|
Get-FormVariables
|
||||||
$Form.ShowDialog() | out-null
|
$Form.ShowDialog() | out-null
|
||||||
|
Stop-Transcript
|
||||||
|
Loading…
Reference in New Issue
Block a user