2023-03-07 14:28:00 -06:00
|
|
|
function Invoke-WPFButton {
|
|
|
|
|
|
|
|
<#
|
2023-10-19 17:12:55 -05:00
|
|
|
|
|
|
|
.SYNOPSIS
|
|
|
|
Invokes the function associated with the clicked button
|
|
|
|
|
|
|
|
.PARAMETER Button
|
|
|
|
The name of the button that was clicked
|
|
|
|
|
2023-03-07 14:28:00 -06:00
|
|
|
#>
|
|
|
|
|
2023-10-19 17:12:55 -05:00
|
|
|
Param ([string]$Button)
|
|
|
|
|
|
|
|
# Use this to get the name of the button
|
2023-03-07 14:28:00 -06:00
|
|
|
#[System.Windows.MessageBox]::Show("$Button","Chris Titus Tech's Windows Utility","OK","Info")
|
|
|
|
|
|
|
|
Switch -Wildcard ($Button){
|
|
|
|
|
|
|
|
"WPFTab?BT" {Invoke-WPFTab $Button}
|
|
|
|
"WPFinstall" {Invoke-WPFInstall}
|
2023-05-09 13:14:27 -05:00
|
|
|
"WPFuninstall" {Invoke-WPFUnInstall}
|
2023-03-07 14:28:00 -06:00
|
|
|
"WPFInstallUpgrade" {Invoke-WPFInstallUpgrade}
|
|
|
|
"WPFdesktop" {Invoke-WPFPresets "Desktop"}
|
|
|
|
"WPFlaptop" {Invoke-WPFPresets "laptop"}
|
|
|
|
"WPFminimal" {Invoke-WPFPresets "minimal"}
|
|
|
|
"WPFclear" {Invoke-WPFPresets -preset $null -imported $true}
|
2023-05-09 13:14:27 -05:00
|
|
|
"WPFclearWinget" {Invoke-WPFPresets -preset $null -imported $true -CheckBox "WPFInstall"}
|
2023-03-07 14:28:00 -06:00
|
|
|
"WPFtweaksbutton" {Invoke-WPFtweaksbutton}
|
Test 2024 03 30 (#1852)
* Winget Sources fix (#1773)
- Sometimes, if Winget is installed under user-scope, the source isn't properly installed so that the Admin user can properly use Winget.
- This change installs the sources directly from the Winget CDN.
- Fixes #1771
https://github.com/microsoft/winget-cli/discussions/3258#discussioncomment-5951658
* Compile Winutil
* Finished conversion of DISM commands into DISM cmdlets (#1776)
* Continue conversion
Began 2nd stage of DISM command conversion. Almost all commands have been replaced by cmdlets
* Continue conversion (part 2)
Finished part 2 of DISM command to cmdlet conversion
* Add New Toggle to Disable/Enable Widgets found in Taskbar (#1768)
* Compile Winutil
* Fix Search Box Not Showing Apps/Tweaks Checkboxes When typing out Capital-Letters (#1770)
* Compile Winutil
* Add Microsoft Power Automate and Swift toolchain (#1774)
* Add power automate
* Add swift toolchain
* Compile Winutil
* Restart Explorer after Applying/Undoing Classic Right-Click Advance Tweak (#1778)
In general, I've added two lines of code to get the explorer process using 'Get-Process', then passed the process object into 'Stop-Process', Windows will automatically restart explorer, so there's no need to run a new process for explorer.
Note: restarting explorer in the UndoScript might not be necessary, as it works just fine without it, that's according to the tests done by the author of this commit.
* Compile Winutil
* editing edgeremoval.ps1 (#1834)
* editing edgeremoval.ps1
* Compile Winutil
---------
Co-authored-by: DaEpicR <DaEpicR@users.noreply.github.com>
* Compile Winutil
* Update Github Actions Auto Close Issues (#1801)
* Update Github Actions Auto Close Issues
* Add try-catch & Error Logging in Github Actions Auto Close Issues
* Add a Break Statement To Skip Checking The Remaining Labels of an Issue in Github Actions Auto Close Issues
* Add tweak (#1837)
* Compile Winutil
* Disable SCOOBE in WPFTweaksTele (#1832)
* Compile Winutil
* Fix 'Disable Storage Sense' Tweak in 'tweaks.json' File (#1843)
This was pointed out in GitHub issue https://github.com/ChrisTitusTech/winutil/issues/1838
* Compile Winutil
* Add 'UndoScript' to 'Enable End Task With Right Click' Tweak in 'tweaks.json' File (#1842)
* Compile Winutil
* - Changed version check for Winget to keep Winget updated to latest version and a couple formatting fixes. (#1829)
* Compile Winutil
* Add 'UndoScript' to 'Disable Hibernation' Tweak in 'teaks.json' File (#1799)
* Compile Winutil
* Added Requested Apps and Update Command Example in 'README.md' File (#1795)
* Add 'UltraVNC' App to 'application.json' File
* Update Command Example under sub-section 'Automation'
This Commit and its changes are related to issue #1767 , url for issue: https://github.com/ChrisTitusTech/winutil/issues/1767
* Add 'OrcaSlicer' App to 'application.json' File
* Add 'Tixati' App to 'application.json' File
* Add 'Unigram' App to 'application.json' File
* Add 'PDFgear' App to 'application.json' File
* Add 'Windows Firewall Control' App to 'application.json' File
* Add 'VistaSwitcher' App to 'application.json' File
* Add 'Windows Auto Dark Mode' App to 'application.json' File
* Add 'CapFrameX' App to 'application.json' File
* Update The Link for 'Unigram' App in 'application.json' File
* Add 'Magic Wormhole' App to 'application.json' File
* Compile Winutil
* Add apps from #250 (#1787)
* Add SQL management
* Add java runtimes
* Add azure data studio
* Compile Winutil
* Update inputXML.xaml (#1845)
- Added UseLayoutRounding="True"
- This may help fix some cases where text may look blurry on screen for some people.
* Compile Winutil
* A Temporary Fix to Compilation Program in 'Compile.ps1' Script (#1844)
For whatever reason, Compiling using the 'Compile.ps1' Script when there's a Single Quote, in the description of an App for example, it'll try "escaping" it by adding another Single Quote, which's kind of weird.
Before there was an Apostrophe, and it'll Compile into Question Marks, probably because the Compile Script doesn't know what an Apostrophe is, or it can't escape it (or for another reason, didn't dig deeper into it), in the end I've made it neither an Apostrophe nor a Single Quote, just the sentence without contractions (Without shortening by combining words).
* Compile Winutil
* Update Winget Install and Uninstall / Add NuGet and Microsoft.Winget.Client Modules (#1830)
* - Changed how WinGet installs and uninstalls are handled, by utilizing and .
* Update Winget Install and Uninstall / Add NuGet and Microsoft.Winget.Client Modules
- Fixed commands for installing and uninstalling programs through WinGet.
- Added NuGet Package Providers (thanks @Marterich)
- Added Microsoft.WinGet.Client Module (thanks @Marterich)
* Compile Winutil
* Reopen #1747 PR (#1818)
* Add fxsound
* Add simplenote
* Add flow launcher
* Add CMake
* Add musescore
* Add jpegview
* Add explorer patcher
* Add lockhunter
* Add BRU
* Add spacesniffer
* Add Quick Look
* Add harmonoid
* Add revolt
* Add link shell extensions
* Add WizFile
* Add HWMonitor
* Add XnView
* Add tabby.sh
* Add signalRGB
* Add autoruns
* Fix typo for 'Autoruns' App in 'applications.json' File
* Remove 'Explorer Patcher' App in 'applications.json' File
as mentioned by Chris's Feedback on https://github.com/ChrisTitusTech/winutil/pull/1818 PR, Explorer Patcher is known to cause Stability Related Issues to Users who use it, removing it from the Applications List would be a better/wiser decision.
* Re-Add 'fxsound' App after Resolving Merge Conflict
* Re-Add 'tabby.sh' App after Resolving Merge Conflict
---------
Co-authored-by: ModernTTY <165050080+ModernTTY@users.noreply.github.com>
* Compile Winutil
* Fix Github Actions Auto Close Issues not leaving Issues Open (#1847)
* Compile Winutil
* Fix Robocopy Not Copying for Users who have a Space in their name (#1851)
This was pointed out in https://github.com/ChrisTitusTech/winutil/issues/1848 issue
* Compile Winutil
* bug fixes from bad pr
* Compile Winutil
* Better JSON Parsing for Compile Script!! (#1850)
* Better JSON Parsing for Compile Script!!
Rendering Special XML Character should be possible when parsing json files that have some of these special characters, and without the need to worry about them. Try these changes to see what will be affected, and what won't be.
* Undo #1844 PR Changes
The problem that #1844 PR Tried to resolve temporarly, should now be fixed permanently with the previous changes to 'Compile.ps1' Script.
* Compile Winutil
* OO Shutup 10 Tweaks revamped (#1828)
* Add new OOSU10 configs
* Removed old OOSU config, added install and uninstall calls for the new conrfigs
* change filenames, centralize logic in Invoke-WPFOOSU
* Change Config Paths to the CTT main repo
* removed whitespace
* Add -Wait to avoid race condition when OOSU is run together with temp file cleanup
---------
Co-authored-by: Chris Titus <contact@christitus.com>
* Compile Winutil
* Add catch for restore point errors
* Compile Winutil
---------
Co-authored-by: Rux <jonathan.e.rux@ruxunderscore.com>
Co-authored-by: ChrisTitusTech <ChrisTitusTech@users.noreply.github.com>
Co-authored-by: CodingWonders <101426328+CodingWonders@users.noreply.github.com>
Co-authored-by: Mr.k <mineshtine28546271@gmail.com>
Co-authored-by: ModernTTY <165050080+ModernTTY@users.noreply.github.com>
Co-authored-by: Straight <107145976+DaEpicR@users.noreply.github.com>
Co-authored-by: DaEpicR <DaEpicR@users.noreply.github.com>
Co-authored-by: Consejos Tecnológicos de Edu <139326298+lCTdE@users.noreply.github.com>
Co-authored-by: Martin Wiethan <47688561+Marterich@users.noreply.github.com>
2024-04-20 16:38:43 -05:00
|
|
|
"WPFOOSUbutton" {Invoke-WPFOOSU -action "customize"}
|
2023-03-07 14:28:00 -06:00
|
|
|
"WPFAddUltPerf" {Invoke-WPFUltimatePerformance -State "Enabled"}
|
|
|
|
"WPFRemoveUltPerf" {Invoke-WPFUltimatePerformance -State "Disabled"}
|
|
|
|
"WPFundoall" {Invoke-WPFundoall}
|
|
|
|
"WPFFeatureInstall" {Invoke-WPFFeatureInstall}
|
|
|
|
"WPFPanelDISM" {Invoke-WPFPanelDISM}
|
|
|
|
"WPFPanelAutologin" {Invoke-WPFPanelAutologin}
|
|
|
|
"WPFPanelcontrol" {Invoke-WPFControlPanel -Panel $button}
|
|
|
|
"WPFPanelnetwork" {Invoke-WPFControlPanel -Panel $button}
|
|
|
|
"WPFPanelpower" {Invoke-WPFControlPanel -Panel $button}
|
2023-08-02 19:43:52 -05:00
|
|
|
"WPFPanelregion" {Invoke-WPFControlPanel -Panel $button}
|
2023-03-07 14:28:00 -06:00
|
|
|
"WPFPanelsound" {Invoke-WPFControlPanel -Panel $button}
|
|
|
|
"WPFPanelsystem" {Invoke-WPFControlPanel -Panel $button}
|
|
|
|
"WPFPaneluser" {Invoke-WPFControlPanel -Panel $button}
|
|
|
|
"WPFUpdatesdefault" {Invoke-WPFUpdatesdefault}
|
|
|
|
"WPFFixesUpdate" {Invoke-WPFFixesUpdate}
|
2023-11-28 16:11:11 -06:00
|
|
|
"WPFFixesWinget" {Invoke-WPFFixesWinget}
|
2024-02-02 16:22:08 -06:00
|
|
|
"WPFRunAdobeCCCleanerTool" {Invoke-WPFRunAdobeCCCleanerTool}
|
2023-07-13 15:46:00 -05:00
|
|
|
"WPFFixesNetwork" {Invoke-WPFFixesNetwork}
|
2023-03-07 14:28:00 -06:00
|
|
|
"WPFUpdatesdisable" {Invoke-WPFUpdatesdisable}
|
|
|
|
"WPFUpdatessecurity" {Invoke-WPFUpdatessecurity}
|
2024-02-21 19:12:44 -06:00
|
|
|
"WPFWinUtilShortcut" {Invoke-WPFShortcut -ShortcutToAdd "WinUtil" -RunAsAdmin $true}
|
2023-05-09 13:14:27 -05:00
|
|
|
"WPFGetInstalled" {Invoke-WPFGetInstalled -CheckBox "winget"}
|
|
|
|
"WPFGetInstalledTweaks" {Invoke-WPFGetInstalled -CheckBox "tweaks"}
|
2023-11-28 16:11:11 -06:00
|
|
|
"WPFGetIso" {Invoke-WPFGetIso}
|
|
|
|
"WPFMicrowin" {Invoke-WPFMicrowin}
|
Test 2024 01 03 (#1384)
* Increase performance during loading. (#1348)
* Increase performance during loading.
Add a clear button to the search box.
Add link and description attributes to the applications JSON.
Use the link for linking to the app website.
Use the description as a tooltip for each app.
Add a clickable link to the website for each application (this took a long time; don't kick me if I got some wrong).
Pressing Escape now clears the filter box.
Pressing Alt-P prints your PID.
* Fix for services that are being stopped
* Compile winutil
* Adding new Get-LocalizedYesNo based on choice.exe which is faster and more reliable, thank you @dtm-r for implementing it and testing it on English, German, Dutch, French, Italian, Spansich and Russian. Incredible work by @dtm-r, all cridit and props go to him.
See this thread for details https://github.com/ChrisTitusTech/winutil/issues/1324
* Added error-checking logic for mounting ISOs and also created a wiki page that explains some of the errors.
---------
Co-authored-by: KonTy <KonTy@github.com>
* Compile Winutil
* Custom save targets for MicroWin ISOs (#1346)
* Workaround for Explorer freezes
Some people have reported that setting the Event Log service to Automatic and starting it can (temporarily) fix Explorer freezes.
This change detects whether the next service in the list is "EventLog" and skips it
* Allow user to save MicroWin ISOs anywhere
Adds a SaveFileDialog component to let the user specify the location of the MicroWin ISO and uses it during creation with oscdimg.
(It uses a Process object from System.Diagnostics because I couldn't get it to work with Start-Process)
* Removed temporary workaround
Removed my version of the workaround in favor of the version from @KonTy (merge PR #1348 first)
---------
Co-authored-by: Chris Titus <contact@christitus.com>
* Highly anticipated fix for small screens (#1358)
* Increase performance during loading.
Add a clear button to the search box.
Add link and description attributes to the applications JSON.
Use the link for linking to the app website.
Use the description as a tooltip for each app.
Add a clickable link to the website for each application (this took a long time; don't kick me if I got some wrong).
Pressing Escape now clears the filter box.
Pressing Alt-P prints your PID.
* Fix for services that are being stopped
* Compile winutil
* Adding new Get-LocalizedYesNo based on choice.exe which is faster and more reliable, thank you @dtm-r for implementing it and testing it on English, German, Dutch, French, Italian, Spansich and Russian. Incredible work by @dtm-r, all cridit and props go to him.
See this thread for details https://github.com/ChrisTitusTech/winutil/issues/1324
* Added error-checking logic for mounting ISOs and also created a wiki page that explains some of the errors.
* Highly anticipated fix for small screen computers
---------
Co-authored-by: KonTy <KonTy@github.com>
* Compile Winutil
* Winutil take a long time to create iso file and goes to sleep, this fixes that issue #1343 (#1371)
Co-authored-by: KonTy <KonTy@github.com>
* Compile Winutil
* Create .gitattributes
* Update .gitattributes
* add winget ventoy package (#1374)
* add winget ventoy package
* convert applications.json to utf-8
* update applications.json again
* Compile Winutil
* Update applications.json
fix encoding
* Compile Winutil
* Fix Encoding and Bad Symbols
* Compile Winutil
* feat: Add more software choices (#1379)
* Compile Winutil
* Update configs.Tests.ps1
* Update winutil.Tests.ps1
* Update applications.json
* Compile Winutil
* Update applications.json
* Compile Winutil
* Update applications.json
* Compile Winutil
* fix functions for unit tests
* Compile Winutil
* Update Invoke-MicroWin-Helper.ps1
* Compile Winutil
* fix name WPF Close Button
* Update inputXML.xaml
* Compile Winutil
* my bad that wasnt it
* modify unit test for stop on error
* Compile Winutil
* Update unittests.yaml
* Create test
* Update unittests.yaml
* Update unittests.yaml
* Update unittests.yaml
* Update unittests.yaml
* Update unittests.yaml
* Update unittests.yaml
* Update unittests.yaml
* Update unittests.yaml
* Compile Winutil
* Make restore points optional, enabled by default (#1380)
* Make restore points optional, enabled by default
* Tweaks order fix if restorepoint is checked
* Compile Winutil
* update unit tests
* Compile Winutil
* Update unittests.yaml
* Update unittests.yaml
* Update winutil.Tests.ps1
* tests
* Compile Winutil
* Update unittests.yaml
* Update unittests.yaml
* Update unittests.yaml
* fix unit test
* Update winutil.Tests.ps1
* rewrite all pester test for winutil
* Compile Winutil
* fix handle is invalid error
* final unit test
---------
Co-authored-by: KonTy <9524513+KonTy@users.noreply.github.com>
Co-authored-by: KonTy <KonTy@github.com>
Co-authored-by: ChrisTitusTech <ChrisTitusTech@users.noreply.github.com>
Co-authored-by: CodingWonders <101426328+CodingWonders@users.noreply.github.com>
Co-authored-by: Munkk <152475628+munkk01@users.noreply.github.com>
Co-authored-by: Kiril Vasilev <Kiril.v92@gmail.com>
2024-01-12 00:34:41 -06:00
|
|
|
"WPFCloseButton" {Invoke-WPFCloseButton}
|
2024-02-02 16:22:08 -06:00
|
|
|
"MicrowinScratchDirBT" {Invoke-ScratchDialog}
|
2023-03-07 14:28:00 -06:00
|
|
|
}
|
|
|
|
}
|