diff --git a/.github/workflows/close-old-issues.yaml b/.github/workflows/close-old-issues.yaml
index 733a5707..b3dbf8f0 100644
--- a/.github/workflows/close-old-issues.yaml
+++ b/.github/workflows/close-old-issues.yaml
@@ -16,8 +16,20 @@ jobs:
- name: Close inactive issues
uses: actions/stale@v9.0.0
with:
+ # A list of labels to reference when looking through issues,
+ # and only when one (or even more) of these labels are found..
+ # then skip this issue, and never try to stale and/or close it.
exempt-issue-labels: "Keep Issue Open"
- days-before-issue-close: 14
- close-issue-message: "This issue was closed because it has been inactive for 14 days"
- debug-only: false # Make this field equal true if you want to test your configuration if it works or not
+ # Split it into two weeks, after one week the issue will be marked as stale,
+ # after another week have pasted without any update.. the issue will then be closed.
+ days-before-issue-stale: 7
+ days-before-issue-close: 7
+ # NEVER mark PRs as Stale or Close + this workflow should never have write permissions on PRs, EVER!
+ days-before-pr-stale: -1
+ days-before-pr-close: -1
+ # Sends a message for both the Stale and Close events of an issue.
+ stale-issue-message: "This issue was marked as stale because it has been inactive for 7 days"
+ close-issue-message: "This issue was closed because it has been inactive for 7 days since it was marked as stale"
+ # Make this field equal true if you want to test your configuration if it works correctly or not
+ debug-only: false
repo-token: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/pre-release.yaml b/.github/workflows/pre-release.yaml
new file mode 100644
index 00000000..01b9a9f6
--- /dev/null
+++ b/.github/workflows/pre-release.yaml
@@ -0,0 +1,46 @@
+name: Pre-Release WinUtil
+
+on:
+ workflow_run:
+ workflows: ["Compile"] #Ensure Compile winget.ps1 is done
+ types:
+ - completed
+ workflow_dispatch: # Manual trigger added
+
+jobs:
+ build-runspace:
+ runs-on: windows-latest
+ outputs:
+ version: ${{ steps.extract_version.outputs.version }}
+ steps:
+ - name: Checkout Repository
+ uses: actions/checkout@v4
+
+ - name: Extract Version from winutil.ps1
+ id: extract_version
+ run: |
+ $version = ''
+ Get-Content ./winutil.ps1 -TotalCount 30 | ForEach-Object {
+ if ($_ -match 'Version\s*:\s*(\d{2}\.\d{2}\.\d{2})') {
+ $version = $matches[1]
+ echo "version=$version" >> $GITHUB_ENV
+ echo "::set-output name=version::$version"
+ break
+ }
+ }
+ if (-not $version) {
+ Write-Error "Version not found in winutil.ps1"
+ exit 1
+ }
+ shell: pwsh
+
+ - name: Create and Upload Release
+ id: create_release
+ uses: softprops/action-gh-release@v2
+ with:
+ tag_name: ${{ steps.extract_version.outputs.version }}
+ name: Pre-Release ${{ steps.extract_version.outputs.version }}
+ files: ./winutil.ps1
+ prerelease: true
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index fc3e679b..5bf217bb 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -1,10 +1,6 @@
name: Release WinUtil
on:
- workflow_run:
- workflows: ["Compile"] #Ensure Compile winget.ps1 is done
- types:
- - completed
workflow_dispatch: # Manual trigger added
jobs:
@@ -41,5 +37,6 @@ jobs:
tag_name: ${{ steps.extract_version.outputs.version }}
name: Release ${{ steps.extract_version.outputs.version }}
files: ./winutil.ps1
+ prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/README.md b/README.md
index 0716fdcd..e733e80a 100644
--- a/README.md
+++ b/README.md
@@ -32,9 +32,9 @@ or by executing:
iwr -useb https://christitus.com/win | iex
```
-if for some reason this site is not reachable from your country please try running it directly from github (replace `RELEASE_TAG` with current release that you are interested in, for example `v2024.06.05`)
+if for some reason this site is not reachable from your country please try running it directly from github.
```
-irm "https://github.com/ChrisTitusTech/winutil/releases/download/RELEASE_TAG/winutil.ps1" | iex
+irm "https://github.com/ChrisTitusTech/winutil/releases/latest/download/winutil.ps1" | iex
```
#### Automation
diff --git a/config/applications.json b/config/applications.json
index 21652d80..f0b6eb87 100644
--- a/config/applications.json
+++ b/config/applications.json
@@ -151,14 +151,6 @@
"link": "https://github.com/sharkdp/bat",
"winget": "sharkdp.bat"
},
- "bitcomet": {
- "category": "Utilities",
- "choco": "bitcomet",
- "content": "BitComet",
- "description": "BitComet is a free and open-source BitTorrent client that supports HTTP/FTP downloads and provides download management features.",
- "link": "https://www.bitcomet.com/",
- "winget": "CometNetwork.BitComet"
- },
"bitwarden": {
"category": "Utilities",
"choco": "bitwarden",
@@ -183,14 +175,6 @@
"link": "https://www.blender.org/",
"winget": "BlenderFoundation.Blender"
},
- "bluestacks": {
- "category": "Games",
- "choco": "bluestacks",
- "content": "Bluestacks",
- "description": "Bluestacks is an Android emulator for running mobile apps and games on a PC.",
- "link": "https://www.bluestacks.com/",
- "winget": "BlueStack.BlueStacks"
- },
"brave": {
"category": "Browsers",
"choco": "brave",
@@ -215,6 +199,14 @@
"link": "https://www.bulkrenameutility.co.uk",
"winget": "TGRMNSoftware.BulkRenameUtility"
},
+ "AdvancedRenamer": {
+ "category": "Utilities",
+ "choco": "advanced-renamer",
+ "content": "Advanced Renamer",
+ "description": "Advanced Renamer is a program for renaming multiple files and folders at once. By configuring renaming methods the names can be manipulated in various ways.",
+ "link": "https://www.advancedrenamer.com/",
+ "winget": "XP9MD3S1KFCPH1"
+ },
"calibre": {
"category": "Document",
"choco": "calibre",
@@ -311,14 +303,6 @@
"link": "https://copyq.readthedocs.io/",
"winget": "hluk.CopyQ"
},
- "ditto": {
- "category": "Utilities",
- "choco": "ditto",
- "content": "Ditto (Clipboard Manager)",
- "description": "Ditto is an extension to the Windows Clipboard. You copy something to the Clipboard and Ditto takes what you copied and stores it in a database to retrieve at a later time.",
- "link": "https://github.com/sabrogden/Ditto",
- "winget": "Ditto.Ditto"
- },
"cpuz": {
"category": "Utilities",
"choco": "cpu-z",
@@ -389,7 +373,7 @@
"content": "DevToys",
"description": "DevToys is a collection of development-related utilities and tools for Windows. It includes tools for file management, code formatting, and productivity enhancements for developers.",
"link": "https://devtoys.app/",
- "winget": "9PGCV4V3BK4W"
+ "winget": "DevToys-app.DevToys"
},
"digikam": {
"category": "Multimedia Tools",
@@ -412,7 +396,7 @@
"choco": "ditto",
"content": "Ditto",
"description": "Ditto is an extension to the standard windows clipboard.",
- "link": "https://ditto-cp.sourceforge.io/",
+ "link": "https://github.com/sabrogden/Ditto",
"winget": "Ditto.Ditto"
},
"dockerdesktop": {
@@ -567,6 +551,14 @@
"link": "https://www.falkon.org/",
"winget": "KDE.Falkon"
},
+ "fastfetch": {
+ "category": "Utilities",
+ "choco": "na",
+ "content": "Fastfetch",
+ "description": "Fastfetch is a neofetch-like tool for fetching system information and displaying them in a pretty way",
+ "link": "https://github.com/fastfetch-cli/fastfetch/",
+ "winget": "fastfetch"
+ },
"ferdium": {
"category": "Communications",
"choco": "ferdium",
@@ -695,14 +687,6 @@
"link": "https://www.freecadweb.org/",
"winget": "FreeCAD.FreeCAD"
},
- "orcaslicer": {
- "category": "Multimedia Tools",
- "choco": "orcaslicer",
- "content": "OrcaSlicer",
- "description": "G-code generator for 3D printers (Bambu, Prusa, Voron, VzBot, RatRig, Creality, etc.)",
- "link": "https://github.com/SoftFever/OrcaSlicer",
- "winget": "SoftFever.OrcaSlicer"
- },
"fxsound": {
"category": "Multimedia Tools",
"choco": "fxsound",
@@ -749,7 +733,7 @@
"content": "Git Extensions",
"description": "Git Extensions is a graphical user interface for Git, providing additional features for easier source code management.",
"link": "https://gitextensions.github.io/",
- "winget": "Git.Git;GitExtensionsTeam.GitExtensions"
+ "winget": "GitExtensionsTeam.GitExtensions"
},
"githubcli": {
"category": "Development",
@@ -757,7 +741,7 @@
"content": "GitHub CLI",
"description": "GitHub CLI is a command-line tool that simplifies working with GitHub directly from the terminal.",
"link": "https://cli.github.com/",
- "winget": "Git.Git;GitHub.cli"
+ "winget": "GitHub.cli"
},
"githubdesktop": {
"category": "Development",
@@ -765,7 +749,7 @@
"content": "GitHub Desktop",
"description": "GitHub Desktop is a visual Git client that simplifies collaboration on GitHub repositories with an easy-to-use interface.",
"link": "https://desktop.github.com/",
- "winget": "Git.Git;GitHub.GitHubDesktop"
+ "winget": "GitHub.GitHubDesktop"
},
"gitkrakenclient": {
"category": "Development",
@@ -799,12 +783,20 @@
"link": "https://www.gog.com/galaxy",
"winget": "GOG.Galaxy"
},
+ "gitify": {
+ "category": "Development",
+ "choco": "na",
+ "content": "Gitify",
+ "description": "GitHub notifications on your menu bar.",
+ "link": "https://www.gitify.io/",
+ "winget": "Gitify.Gitify"
+ },
"golang": {
"category": "Development",
"choco": "golang",
- "content": "GoLang",
- "description": "GoLang (or Golang) is a statically typed, compiled programming language designed for simplicity, reliability, and efficiency.",
- "link": "https://golang.org/",
+ "content": "Go",
+ "description": "Go (or Golang) is a statically typed, compiled programming language designed for simplicity, reliability, and efficiency.",
+ "link": "https://go.dev/",
"winget": "GoLang.Go"
},
"googledrive": {
@@ -1279,9 +1271,17 @@
"link": "https://www.msi.com/Landing/afterburner",
"winget": "Guru3D.Afterburner"
},
+ "mullvadvpn": {
+ "category": "Pro Tools",
+ "choco": "mullvad-app",
+ "content": "Mullvad VPN",
+ "description": "This is the VPN client software for the Mullvad VPN service.",
+ "link": "https://github.com/mullvad/mullvadvpn-app",
+ "winget": "MullvadVPN.MullvadVPN"
+ },
"BorderlessGaming": {
"category": "Utilities",
- "choco": "na",
+ "choco": "borderlessgaming",
"content": "Borderless Gaming",
"description": "Play your favorite games in a borderless window; no more time consuming alt-tabs.",
"link": "https://github.com/Codeusa/Borderless-Gaming",
@@ -1343,6 +1343,14 @@
"link": "https://www.mp3tag.de/en/",
"winget": "Mp3tag.Mp3tag"
},
+ "tagscanner": {
+ "category": "Multimedia Tools",
+ "choco": "tagscanner",
+ "content": "TagScanner (Tag Scanner)",
+ "description": "TagScanner is a powerful tool for organizing and managing your music collection",
+ "link": "https://www.xdlab.ru/en/",
+ "winget": "SergeySerkov.TagScanner"
+ },
"nanazip": {
"category": "Utilities",
"choco": "nanazip",
@@ -1743,6 +1751,14 @@
"link": "https://docs.microsoft.com/en-us/sysinternals/downloads/procmon",
"winget": "Microsoft.Sysinternals.ProcessMonitor"
},
+ "orcaslicer": {
+ "category": "Utilities",
+ "choco": "orcaslicer",
+ "content": "OrcaSlicer",
+ "description": "G-code generator for 3D printers (Bambu, Prusa, Voron, VzBot, RatRig, Creality, etc.)",
+ "link": "https://github.com/SoftFever/OrcaSlicer",
+ "winget": "SoftFever.OrcaSlicer"
+ },
"prucaslicer": {
"category": "Utilities",
"choco": "prusaslicer",
@@ -1783,6 +1799,14 @@
"link": "https://www.qbittorrent.org/",
"winget": "qBittorrent.qBittorrent"
},
+ "transmission": {
+ "category": "Utilities",
+ "choco": "transmission",
+ "content": "Transmission",
+ "description": "Transmission is a cross-platform BitTorrent client that is open source, easy, powerful, and lean.",
+ "link": "https://transmissionbt.com/",
+ "winget": "Transmission.Transmission"
+ },
"tixati": {
"category": "Utilities",
"choco": "tixati.portable",
@@ -2191,6 +2215,14 @@
"link": "https://github.com/thonny/thonny",
"winget": "AivarAnnamaa.Thonny"
},
+ "MuEditor": {
+ "category": "Development",
+ "choco": "na",
+ "content": "Code With Mu (Mu Editor)",
+ "description": "Mu is a Python code editor for beginner programmers",
+ "link": "https://codewith.mu/",
+ "winget": "Mu.Mu"
+ },
"thorium": {
"category": "Browsers",
"choco": "na",
@@ -2389,7 +2421,7 @@
"content": "VS Code",
"description": "Visual Studio Code is a free, open-source code editor with support for multiple programming languages.",
"link": "https://code.visualstudio.com/",
- "winget": "Git.Git;Microsoft.VisualStudioCode"
+ "winget": "Microsoft.VisualStudioCode"
},
"vscodium": {
"category": "Development",
@@ -2397,7 +2429,7 @@
"content": "VS Codium",
"description": "VSCodium is a community-driven, freely-licensed binary distribution of Microsoft's VS Code.",
"link": "https://vscodium.com/",
- "winget": "Git.Git;VSCodium.VSCodium"
+ "winget": "VSCodium.VSCodium"
},
"waterfox": {
"category": "Browsers",
@@ -2423,14 +2455,6 @@
"link": "https://wezfurlong.org/wezterm/index.html",
"winget": "wez.wezterm"
},
- "windirstat": {
- "category": "Utilities",
- "choco": "windirstat",
- "content": "WinDirStat",
- "description": "WinDirStat is a disk usage statistics viewer and cleanup tool for Windows.",
- "link": "https://windirstat.net/",
- "winget": "WinDirStat.WinDirStat"
- },
"windowspchealth": {
"category": "Utilities",
"choco": "na",
@@ -2838,5 +2862,21 @@
"description":"Kicad is an open-source EDA tool. It's a good starting point for those who want to do electrical design and is even used by professionals in the industry.",
"link": "https://www.kicad.org/",
"winget": "KiCad.KiCad"
+ },
+ "FormatFactory": {
+ "category": "Utilities",
+ "choco": "formatfactory",
+ "content": "Format Factory",
+ "description":"FormatFactory is an ad-supported freeware multimedia converter that can convert video, audio, and picture files. It is also capable of ripping DVDs and CDs to other file formats, as well as creating .iso images. It can also join multiple video files together into one.",
+ "link": "http://www.pcfreetime.com/formatfactory/",
+ "winget": "na"
+ },
+ "dropox": {
+ "category": "Utilities",
+ "choco": "na",
+ "content": "Dropbox",
+ "description":"The Dropbox desktop app! Save hard drive space, share and edit files and send for signature – all without the distraction of countless browser tabs.",
+ "link": "https://www.dropbox.com/en_GB/desktop",
+ "winget": "Dropbox.Dropbox"
}
}
diff --git a/config/preset.json b/config/preset.json
index d0640ce4..f19742d0 100644
--- a/config/preset.json
+++ b/config/preset.json
@@ -1,6 +1,7 @@
{
"Standard": [
"WPFTweaksAH",
+ "WPFTweaksConsumerFeatures",
"WPFTweaksDVR",
"WPFTweaksHiber",
"WPFTweaksHome",
@@ -16,6 +17,7 @@
"WPFTweaksTeredo"
],
"Minimal": [
+ "WPFTweaksConsumerFeatures",
"WPFTweaksHome",
"WPFTweaksServices",
"WPFTweaksTele"
diff --git a/config/tweaks.json b/config/tweaks.json
index d6375031..849e4c13 100644
--- a/config/tweaks.json
+++ b/config/tweaks.json
@@ -58,7 +58,7 @@
"powercfg.exe /hibernate on"
]
},
- "WPFToggleTweaksLaptopHybernation": {
+ "WPFTweaksLaptopHibernation": {
"Content": "Set Hibernation as default (good for laptops)",
"Description": "Most modern laptops have connected stadby enabled which drains the battery, this sets hibernation as default which will not drain the battery. See issue https://github.com/ChrisTitusTech/winutil/issues/1399",
"category": "Essential Tweaks",
@@ -1580,6 +1580,22 @@
}
]
},
+ "WPFTweaksConsumerFeatures":{
+ "Content": "Disable ConsumerFeatures",
+ "Description": "Windows 10 will not automatically install any games, third-party apps, or application links from the Windows Store for the signed-in user. Some default Apps will be inaccessible (eg. Phone Link)",
+ "category": "Essential Tweaks",
+ "panel": "1",
+ "Order": "a003_",
+ "registry": [
+ {
+ "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\CloudContent",
+ "OriginalValue": "0",
+ "Name": "DisableWindowsConsumerFeatures",
+ "Value": "1",
+ "Type": "DWord"
+ }
+ ]
+ },
"WPFTweaksTele": {
"Content": "Disable Telemetry",
"Description": "Disables Microsoft Telemetry. Note: This will lock many Edge Browser settings. Microsoft spies heavily on you when using the Edge browser.",
@@ -1738,13 +1754,6 @@
"Value": "0",
"Type": "DWord"
},
- {
- "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\CloudContent",
- "OriginalValue": "0",
- "Name": "DisableWindowsConsumerFeatures",
- "Value": "1",
- "Type": "DWord"
- },
{
"Path": "HKCU:\\SOFTWARE\\Microsoft\\Siuf\\Rules",
"OriginalValue": "0",
@@ -2697,7 +2706,7 @@
},
"WPFTweaksBlockAdobeNet": {
"Content": "Adobe Network Block",
- "Description": "Reduce user interruptions by selectively blocking connections to Adobe's activation and telemetry servers. ",
+ "Description": "Reduce user interruptions by selectively blocking connections to Adobe's activation and telemetry servers. Credit: Ruddernation-Designs",
"category": "z__Advanced Tweaks - CAUTION",
"panel": "1",
"Order": "a021_",
@@ -2960,28 +2969,6 @@
}
]
},
- "WPFTweaksEnableipsix": {
- "Content": "Enable IPv6",
- "Description": "Enables IPv6.",
- "category": "z__Advanced Tweaks - CAUTION",
- "panel": "1",
- "Order": "a023_",
- "registry": [
- {
- "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Services\\Tcpip6\\Parameters",
- "Name": "DisabledComponents",
- "Value": "0",
- "OriginalValue": "0",
- "Type": "DWord"
- }
- ],
- "InvokeScript": [
- "Enable-NetAdapterBinding -Name \"*\" -ComponentID ms_tcpip6"
- ],
- "UndoScript": [
- "Disable-NetAdapterBinding -Name \"*\" -ComponentID ms_tcpip6"
- ]
- },
"WPFToggleDarkMode": {
"Content": "Dark Theme",
"Description": "Enable/Disable Dark Mode.",
@@ -3059,7 +3046,15 @@
"Description": "If Enabled then Sticky Keys is activated - Sticky keys is an accessibility feature of some graphical user interfaces which assists users who have physical disabilities or help users reduce repetitive strain injury.",
"category": "Customize Preferences",
"panel": "2",
- "Order": "a069_",
+ "Order": "a070_",
+ "Type": "Toggle"
+ },
+ "WPFToggleTaskbarSearch": {
+ "Content": "Taskbar Search",
+ "Description": "If Enabled Search Button will be on the taskbar.",
+ "category": "Customize Preferences",
+ "panel": "2",
+ "Order": "a068_",
"Type": "Toggle"
},
"WPFOOSUbutton": {
@@ -3074,7 +3069,7 @@
"Description": "If Enabled then Widgets Icon in Taskbar will be shown.",
"category": "Customize Preferences",
"panel": "2",
- "Order": "a068_",
+ "Order": "a069_",
"Type": "Toggle"
},
"WPFchangedns": {
@@ -3119,5 +3114,13 @@
"panel": "2",
"Order": "a082_",
"Type": "300"
+ },
+ "WPFToggleTaskView": {
+ "Content": "Task View",
+ "Description": "If Enabled then Task View Icon in Taskbar will be shown.",
+ "category": "Customize Preferences",
+ "panel": "2",
+ "Order": "a069_",
+ "Type": "Toggle"
}
}
diff --git a/functions/private/Get-WinUtilToggleStatus.ps1 b/functions/private/Get-WinUtilToggleStatus.ps1
index 95499ef1..249b4541 100644
--- a/functions/private/Get-WinUtilToggleStatus.ps1
+++ b/functions/private/Get-WinUtilToggleStatus.ps1
@@ -98,6 +98,15 @@ Function Get-WinUtilToggleStatus {
return $false
}
}
+ if($ToggleSwitch -eq "WPFToggleTaskbarSearch"){
+ $SearchButton = (Get-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search").SearchboxTaskbarMode
+ if($SearchButton -eq 0){
+ return $false
+ }
+ else{
+ return $true
+ }
+ }
if ($ToggleSwitch -eq "WPFToggleStickyKeys") {
$StickyKeys = (Get-ItemProperty -path 'HKCU:\Control Panel\Accessibility\StickyKeys').Flags
if($StickyKeys -eq 58){
@@ -107,6 +116,15 @@ Function Get-WinUtilToggleStatus {
return $true
}
}
+ if ($ToggleSwitch -eq "WPFToggleTaskView") {
+ $TaskView = (Get-ItemProperty -path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced').ShowTaskViewButton
+ if($TaskView -eq 0){
+ return $false
+ }
+ else{
+ return $true
+ }
+ }
if ($ToggleSwitch -eq "WPFToggleTaskbarWidgets") {
$TaskbarWidgets = (Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced").TaskBarDa
if($TaskbarWidgets -eq 0) {
diff --git a/functions/private/Invoke-MicroWin-Helper.ps1 b/functions/private/Invoke-MicroWin-Helper.ps1
index 2f8011a2..c5fdff8a 100644
--- a/functions/private/Invoke-MicroWin-Helper.ps1
+++ b/functions/private/Invoke-MicroWin-Helper.ps1
@@ -159,7 +159,13 @@ function Remove-ProvisionedPackages([switch] $keepSecurity = $false)
{
$status = "Removing Provisioned $($appx.PackageName)"
Write-Progress -Activity "Removing Provisioned Apps" -Status $status -PercentComplete ($counter++/$appxProvisionedPackages.Count*100)
- Remove-AppxProvisionedPackage -Path $scratchDir -PackageName $appx.PackageName -ErrorAction SilentlyContinue
+ try {
+ Remove-AppxProvisionedPackage -Path $scratchDir -PackageName $appx.PackageName -ErrorAction SilentlyContinue
+ }
+ catch {
+ Write-Host "Application $($appx.PackageName) could not be removed"
+ continue
+ }
}
Write-Progress -Activity "Removing Provisioned Apps" -Status "Ready" -Completed
}
diff --git a/functions/private/Invoke-WinUtilGPU.ps1 b/functions/private/Invoke-WinUtilGPU.ps1
index e5436f82..13e4fb76 100644
--- a/functions/private/Invoke-WinUtilGPU.ps1
+++ b/functions/private/Invoke-WinUtilGPU.ps1
@@ -1,29 +1,21 @@
function Invoke-WinUtilGPU {
$gpuInfo = Get-CimInstance Win32_VideoController
-
- foreach ($gpu in $gpuInfo) {
- $gpuName = $gpu.Name
- if ($gpuName -like "*NVIDIA*") {
- return $true # NVIDIA GPU found
- }
- }
+
+ # GPUs to blacklist from using Demanding Theming
+ $lowPowerGPUs = (
+ "*NVIDIA GeForce*M*",
+ "*NVIDIA GeForce*Laptop*",
+ "*NVIDIA GeForce*GT*",
+ "*AMD Radeon(TM)*",
+ "*UHD*"
+ )
foreach ($gpu in $gpuInfo) {
- $gpuName = $gpu.Name
- if ($gpuName -like "*AMD Radeon RX*") {
- return $true # AMD GPU Found
- }
- }
- foreach ($gpu in $gpuInfo) {
- $gpuName = $gpu.Name
- if ($gpuName -like "*UHD*") {
- return $false # Intel Intergrated GPU Found
- }
- }
- foreach ($gpu in $gpuInfo) {
- $gpuName = $gpu.Name
- if ($gpuName -like "*AMD Radeon(TM)*") {
- return $false # AMD Intergrated GPU Found
+ foreach ($gpuPattern in $lowPowerGPUs){
+ if ($gpu.Name -like $gpuPattern) {
+ return $false
+ }
}
}
+ return $true
}
\ No newline at end of file
diff --git a/functions/private/Invoke-WinUtilTaskView.ps1 b/functions/private/Invoke-WinUtilTaskView.ps1
new file mode 100644
index 00000000..b9963294
--- /dev/null
+++ b/functions/private/Invoke-WinUtilTaskView.ps1
@@ -0,0 +1,34 @@
+function Invoke-WinUtilTaskView {
+ <#
+
+ .SYNOPSIS
+ Enable/Disable Task View
+
+ .PARAMETER Enabled
+ Indicates whether to enable or disable Task View
+
+ #>
+ Param($Enabled)
+ Try{
+ if ($Enabled -eq $false){
+ Write-Host "Enabling Task View"
+ $value = 1
+ }
+ else {
+ Write-Host "Disabling Task View"
+ $value = 0
+ }
+ $Path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"
+ Set-ItemProperty -Path $Path -Name ShowTaskViewButton -Value $value
+ }
+ Catch [System.Security.SecurityException] {
+ Write-Warning "Unable to set $Path\$Name to $Value due to a Security Exception"
+ }
+ Catch [System.Management.Automation.ItemNotFoundException] {
+ Write-Warning $psitem.Exception.ErrorRecord
+ }
+ Catch{
+ Write-Warning "Unable to set $Name due to unhandled exception"
+ Write-Warning $psitem.Exception.StackTrace
+ }
+}
diff --git a/functions/private/Invoke-WinUtilTaskbarSearch.ps1 b/functions/private/Invoke-WinUtilTaskbarSearch.ps1
new file mode 100644
index 00000000..e022cf89
--- /dev/null
+++ b/functions/private/Invoke-WinUtilTaskbarSearch.ps1
@@ -0,0 +1,34 @@
+function Invoke-WinUtilTaskbarSearch {
+ <#
+
+ .SYNOPSIS
+ Enable/Disable Taskbar Widgets
+
+ .PARAMETER Enabled
+ Indicates whether to enable or disable Taskbar Widgets
+
+ #>
+ Param($Enabled)
+ Try{
+ if ($Enabled -eq $false){
+ Write-Host "Enabling Search Button"
+ $value = 1
+ }
+ else {
+ Write-Host "Disabling Search Button"
+ $value = 0
+ }
+ $Path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search\"
+ Set-ItemProperty -Path $Path -Name SearchboxTaskbarMode -Value $value
+ }
+ Catch [System.Security.SecurityException] {
+ Write-Warning "Unable to set $Path\$Name to $Value due to a Security Exception"
+ }
+ Catch [System.Management.Automation.ItemNotFoundException] {
+ Write-Warning $psitem.Exception.ErrorRecord
+ }
+ Catch{
+ Write-Warning "Unable to set $Name due to unhandled exception"
+ Write-Warning $psitem.Exception.StackTrace
+ }
+}
diff --git a/functions/public/Invoke-WPFPanelAutologin.ps1 b/functions/public/Invoke-WPFPanelAutologin.ps1
index 5291869a..6a2da7b7 100644
--- a/functions/public/Invoke-WPFPanelAutologin.ps1
+++ b/functions/public/Invoke-WPFPanelAutologin.ps1
@@ -5,6 +5,8 @@ function Invoke-WPFPanelAutologin {
Enables autologin using Sysinternals Autologon.exe
#>
- curl.exe -ss "https://live.sysinternals.com/Autologon.exe" -o $env:temp\autologin.exe # Official Microsoft recommendation https://learn.microsoft.com/en-us/sysinternals/downloads/autologon
- cmd /c $env:temp\autologin.exe /accepteula
-}
\ No newline at end of file
+
+ # Official Microsoft recommendation: https://learn.microsoft.com/en-us/sysinternals/downloads/autologon
+ Invoke-WebRequest -Uri "https://live.sysinternals.com/Autologon.exe" -OutFile "$env:temp\autologin.exe"
+ cmd /c "$env:temp\autologin.exe" /accepteula
+}
diff --git a/functions/public/Invoke-WPFToggle.ps1 b/functions/public/Invoke-WPFToggle.ps1
index a3c94875..9d923edb 100644
--- a/functions/public/Invoke-WPFToggle.ps1
+++ b/functions/public/Invoke-WPFToggle.ps1
@@ -28,5 +28,7 @@ function Invoke-WPFToggle {
"WPFToggleMouseAcceleration" {Invoke-WinUtilMouseAcceleration $(Get-WinUtilToggleStatus WPFToggleMouseAcceleration)}
"WPFToggleStickyKeys" {Invoke-WinUtilStickyKeys $(Get-WinUtilToggleStatus WPFToggleStickyKeys)}
"WPFToggleTaskbarWidgets" {Invoke-WinUtilTaskbarWidgets $(Get-WinUtilToggleStatus WPFToggleTaskbarWidgets)}
+ "WPFToggleTaskbarSearch" {Invoke-WinUtilTaskbarSearch $(Get-WinUtilToggleStatus WPFToggleTaskbarSearch)}
+ "WPFToggleTaskView" {Invoke-WinUtilTaskView $(Get-WinUtilToggleStatus WPFToggleTaskView)}
}
}
diff --git a/functions/public/Invoke-WPFUnInstall.ps1 b/functions/public/Invoke-WPFUnInstall.ps1
index e7ba2b08..f3a9c64f 100644
--- a/functions/public/Invoke-WPFUnInstall.ps1
+++ b/functions/public/Invoke-WPFUnInstall.ps1
@@ -15,7 +15,7 @@ function Invoke-WPFUnInstall {
$PackagesToInstall = (Get-WinUtilCheckBoxes)["Install"]
if ($PackagesToInstall.Count -eq 0) {
- $WarningMsg = "Please select the program(s) to install"
+ $WarningMsg = "Please select the program(s) to uninstall"
[System.Windows.MessageBox]::Show($WarningMsg, $AppTitle, [System.Windows.MessageBoxButton]::OK, [System.Windows.MessageBoxImage]::Warning)
return
}
@@ -74,4 +74,4 @@ function Invoke-WPFUnInstall {
}
$sync.ProcessRunning = $False
}
-}
\ No newline at end of file
+}
diff --git a/scripts/main.ps1 b/scripts/main.ps1
index 572ecee4..48bf2b67 100644
--- a/scripts/main.ps1
+++ b/scripts/main.ps1
@@ -287,19 +287,37 @@ Add-Type @"
}
}
- # need to experiemnt more
- # setting icon for the windows is still not working
- # $pngUrl = "https://christitus.com/images/logo-full.png"
- # $pngPath = "$env:TEMP\cttlogo.png"
- # $iconPath = "$env:TEMP\cttlogo.ico"
- # # Download the PNG file
- # Invoke-WebRequest -Uri $pngUrl -OutFile $pngPath
- # if (Test-Path -Path $pngPath) {
- # ConvertTo-Icon -bitmapPath $pngPath -iconPath $iconPath
- # }
- # $icon = [System.Drawing.Icon]::ExtractAssociatedIcon($iconPath)
- # Write-Host $icon.Handle
- # [Window]::SendMessage($windowHandle, 0x80, [IntPtr]::Zero, $icon.Handle)
+
+ # Using a TaskbarItem Overlay until someone figures out how to replace the icon correctly
+
+ # URL of the image
+ $imageUrl = "https://christitus.com/images/logo-full.png"
+
+ # Download the image
+ $imagePath = "$env:TEMP\logo-full.png"
+ Invoke-WebRequest -Uri $imageUrl -OutFile $imagePath
+
+ # Read the image file as a byte array
+ $imageBytes = [System.IO.File]::ReadAllBytes($imagePath)
+
+ # Convert the byte array to a Base64 string
+ $base64String = [System.Convert]::ToBase64String($imageBytes)
+
+ # Create a streaming image by streaming the base64 string to a bitmap streamsource
+ $bitmap = New-Object System.Windows.Media.Imaging.BitmapImage
+ $bitmap.BeginInit()
+ $bitmap.StreamSource = [System.IO.MemoryStream][System.Convert]::FromBase64String($base64String)
+ $bitmap.EndInit()
+ $bitmap.Freeze()
+
+ # Ensure TaskbarItemInfo is created if not already
+ if (-not $sync["Form"].TaskbarItemInfo) {
+ $sync["Form"].TaskbarItemInfo = New-Object System.Windows.Shell.TaskbarItemInfo
+ }
+
+ # Set the overlay icon for the taskbar
+ $sync["Form"].TaskbarItemInfo.Overlay = $bitmap
+
$rect = New-Object RECT
[Window]::GetWindowRect($windowHandle, [ref]$rect)
@@ -475,7 +493,6 @@ $sync["AboutMenuItem"].Add_Click({
$authorInfo = @"
Author : @christitustech
Runspace : @DeveloperDurp
-GUI : @KonTy
MicroWin : @KonTy
GitHub : ChrisTitusTech/winutil
Version : $($sync.version)
diff --git a/winutil.ps1 b/winutil.ps1
index 682c746b..6c783f31 100644
--- a/winutil.ps1
+++ b/winutil.ps1
@@ -8,7 +8,7 @@
Author : Chris Titus @christitustech
Runspace Author: @DeveloperDurp
GitHub : https://github.com/ChrisTitusTech
- Version : 24.06.25
+ Version : 24.06.28
#>
param (
[switch]$Debug,
@@ -45,7 +45,7 @@ Add-Type -AssemblyName System.Windows.Forms
# Variable to sync between runspaces
$sync = [Hashtable]::Synchronized(@{})
$sync.PSScriptRoot = $PSScriptRoot
-$sync.version = "24.06.25"
+$sync.version = "24.06.28"
$sync.configs = @{}
$sync.ProcessRunning = $false
@@ -1118,7 +1118,13 @@ function Remove-ProvisionedPackages([switch] $keepSecurity = $false)
{
$status = "Removing Provisioned $($appx.PackageName)"
Write-Progress -Activity "Removing Provisioned Apps" -Status $status -PercentComplete ($counter++/$appxProvisionedPackages.Count*100)
- Remove-AppxProvisionedPackage -Path $scratchDir -PackageName $appx.PackageName -ErrorAction SilentlyContinue
+ try {
+ Remove-AppxProvisionedPackage -Path $scratchDir -PackageName $appx.PackageName -ErrorAction SilentlyContinue
+ }
+ catch {
+ Write-Host "Application $($appx.PackageName) could not be removed"
+ continue
+ }
}
Write-Progress -Activity "Removing Provisioned Apps" -Status "Ready" -Completed
}
@@ -1829,32 +1835,24 @@ function Invoke-WinUtilFeatureInstall {
}
function Invoke-WinUtilGPU {
$gpuInfo = Get-CimInstance Win32_VideoController
-
- foreach ($gpu in $gpuInfo) {
- $gpuName = $gpu.Name
- if ($gpuName -like "*NVIDIA*") {
- return $true # NVIDIA GPU found
- }
- }
+
+ # GPUs to blacklist from using Demanding Theming
+ $lowPowerGPUs = (
+ "*NVIDIA GeForce*M*",
+ "*NVIDIA GeForce*Laptop*",
+ "*NVIDIA GeForce*GT*",
+ "*AMD Radeon(TM)*",
+ "*UHD*"
+ )
foreach ($gpu in $gpuInfo) {
- $gpuName = $gpu.Name
- if ($gpuName -like "*AMD Radeon RX*") {
- return $true # AMD GPU Found
- }
- }
- foreach ($gpu in $gpuInfo) {
- $gpuName = $gpu.Name
- if ($gpuName -like "*UHD*") {
- return $false # Intel Intergrated GPU Found
- }
- }
- foreach ($gpu in $gpuInfo) {
- $gpuName = $gpu.Name
- if ($gpuName -like "*AMD Radeon(TM)*") {
- return $false # AMD Intergrated GPU Found
+ foreach ($gpuPattern in $lowPowerGPUs){
+ if ($gpu.Name -like $gpuPattern) {
+ return $false
+ }
}
}
+ return $true
}
Function Invoke-WinUtilMouseAcceleration {
<#
@@ -4418,8 +4416,10 @@ function Invoke-WPFPanelAutologin {
Enables autologin using Sysinternals Autologon.exe
#>
- curl.exe -ss "https://live.sysinternals.com/Autologon.exe" -o $env:temp\autologin.exe # Official Microsoft recommendation https://learn.microsoft.com/en-us/sysinternals/downloads/autologon
- cmd /c $env:temp\autologin.exe /accepteula
+
+ # Official Microsoft recommendation: https://learn.microsoft.com/en-us/sysinternals/downloads/autologon
+ Invoke-WebRequest -Uri "https://live.sysinternals.com/Autologon.exe" -OutFile "$env:temp\autologin.exe"
+ cmd /c "$env:temp\autologin.exe" /accepteula
}
function Invoke-WPFPanelDISM {
<#
@@ -5110,7 +5110,7 @@ function Invoke-WPFUnInstall {
$PackagesToInstall = (Get-WinUtilCheckBoxes)["Install"]
if ($PackagesToInstall.Count -eq 0) {
- $WarningMsg = "Please select the program(s) to install"
+ $WarningMsg = "Please select the program(s) to uninstall"
[System.Windows.MessageBox]::Show($WarningMsg, $AppTitle, [System.Windows.MessageBoxButton]::OK, [System.Windows.MessageBoxImage]::Warning)
return
}
@@ -5616,6 +5616,14 @@ $sync.configs.applications = '{
"link": "https://copyq.readthedocs.io/",
"winget": "hluk.CopyQ"
},
+ "WPFInstallditto": {
+ "category": "Utilities",
+ "choco": "ditto",
+ "content": "Ditto (Clipboard Manager)",
+ "description": "Ditto is an extension to the Windows Clipboard. You copy something to the Clipboard and Ditto takes what you copied and stores it in a database to retrieve at a later time.",
+ "link": "https://github.com/sabrogden/Ditto",
+ "winget": "Ditto.Ditto"
+ },
"WPFInstallcpuz": {
"category": "Utilities",
"choco": "cpu-z",
@@ -5686,7 +5694,7 @@ $sync.configs.applications = '{
"content": "DevToys",
"description": "DevToys is a collection of development-related utilities and tools for Windows. It includes tools for file management, code formatting, and productivity enhancements for developers.",
"link": "https://devtoys.app/",
- "winget": "9PGCV4V3BK4W"
+ "winget": "DevToys-app.DevToys"
},
"WPFInstalldigikam": {
"category": "Multimedia Tools",
@@ -5704,14 +5712,6 @@ $sync.configs.applications = '{
"link": "https://discord.com/",
"winget": "Discord.Discord"
},
- "WPFInstallditto": {
- "category": "Utilities",
- "choco": "ditto",
- "content": "Ditto",
- "description": "Ditto is an extension to the standard windows clipboard.",
- "link": "https://ditto-cp.sourceforge.io/",
- "winget": "Ditto.Ditto"
- },
"WPFInstalldockerdesktop": {
"category": "Development",
"choco": "docker-desktop",
@@ -5992,14 +5992,6 @@ $sync.configs.applications = '{
"link": "https://www.freecadweb.org/",
"winget": "FreeCAD.FreeCAD"
},
- "WPFInstallorcaslicer": {
- "category": "Multimedia Tools",
- "choco": "orcaslicer",
- "content": "OrcaSlicer",
- "description": "G-code generator for 3D printers (Bambu, Prusa, Voron, VzBot, RatRig, Creality, etc.)",
- "link": "https://github.com/SoftFever/OrcaSlicer",
- "winget": "SoftFever.OrcaSlicer"
- },
"WPFInstallfxsound": {
"category": "Multimedia Tools",
"choco": "fxsound",
@@ -6046,7 +6038,7 @@ $sync.configs.applications = '{
"content": "Git Extensions",
"description": "Git Extensions is a graphical user interface for Git, providing additional features for easier source code management.",
"link": "https://gitextensions.github.io/",
- "winget": "Git.Git;GitExtensionsTeam.GitExtensions"
+ "winget": "GitExtensionsTeam.GitExtensions"
},
"WPFInstallgithubcli": {
"category": "Development",
@@ -6054,7 +6046,7 @@ $sync.configs.applications = '{
"content": "GitHub CLI",
"description": "GitHub CLI is a command-line tool that simplifies working with GitHub directly from the terminal.",
"link": "https://cli.github.com/",
- "winget": "Git.Git;GitHub.cli"
+ "winget": "GitHub.cli"
},
"WPFInstallgithubdesktop": {
"category": "Development",
@@ -6062,7 +6054,7 @@ $sync.configs.applications = '{
"content": "GitHub Desktop",
"description": "GitHub Desktop is a visual Git client that simplifies collaboration on GitHub repositories with an easy-to-use interface.",
"link": "https://desktop.github.com/",
- "winget": "Git.Git;GitHub.GitHubDesktop"
+ "winget": "GitHub.GitHubDesktop"
},
"WPFInstallgitkrakenclient": {
"category": "Development",
@@ -6096,12 +6088,20 @@ $sync.configs.applications = '{
"link": "https://www.gog.com/galaxy",
"winget": "GOG.Galaxy"
},
+ "WPFInstallgitify": {
+ "category": "Development",
+ "choco": "na",
+ "content": "Gitify",
+ "description": "GitHub notifications on your menu bar.",
+ "link": "https://www.gitify.io/",
+ "winget": "Gitify.Gitify"
+ },
"WPFInstallgolang": {
"category": "Development",
"choco": "golang",
- "content": "GoLang",
- "description": "GoLang (or Golang) is a statically typed, compiled programming language designed for simplicity, reliability, and efficiency.",
- "link": "https://golang.org/",
+ "content": "Go",
+ "description": "Go (or Golang) is a statically typed, compiled programming language designed for simplicity, reliability, and efficiency.",
+ "link": "https://go.dev/",
"winget": "GoLang.Go"
},
"WPFInstallgoogledrive": {
@@ -6576,9 +6576,17 @@ $sync.configs.applications = '{
"link": "https://www.msi.com/Landing/afterburner",
"winget": "Guru3D.Afterburner"
},
+ "WPFInstallmullvadvpn": {
+ "category": "Pro Tools",
+ "choco": "mullvad-app",
+ "content": "Mullvad VPN",
+ "description": "This is the VPN client software for the Mullvad VPN service.",
+ "link": "https://github.com/mullvad/mullvadvpn-app",
+ "winget": "MullvadVPN.MullvadVPN"
+ },
"WPFInstallBorderlessGaming": {
"category": "Utilities",
- "choco": "na",
+ "choco": "borderlessgaming",
"content": "Borderless Gaming",
"description": "Play your favorite games in a borderless window; no more time consuming alt-tabs.",
"link": "https://github.com/Codeusa/Borderless-Gaming",
@@ -7040,6 +7048,14 @@ $sync.configs.applications = '{
"link": "https://docs.microsoft.com/en-us/sysinternals/downloads/procmon",
"winget": "Microsoft.Sysinternals.ProcessMonitor"
},
+ "WPFInstallorcaslicer": {
+ "category": "Utilities",
+ "choco": "orcaslicer",
+ "content": "OrcaSlicer",
+ "description": "G-code generator for 3D printers (Bambu, Prusa, Voron, VzBot, RatRig, Creality, etc.)",
+ "link": "https://github.com/SoftFever/OrcaSlicer",
+ "winget": "SoftFever.OrcaSlicer"
+ },
"WPFInstallprucaslicer": {
"category": "Utilities",
"choco": "prusaslicer",
@@ -7686,7 +7702,7 @@ $sync.configs.applications = '{
"content": "VS Code",
"description": "Visual Studio Code is a free, open-source code editor with support for multiple programming languages.",
"link": "https://code.visualstudio.com/",
- "winget": "Git.Git;Microsoft.VisualStudioCode"
+ "winget": "Microsoft.VisualStudioCode"
},
"WPFInstallvscodium": {
"category": "Development",
@@ -7694,7 +7710,7 @@ $sync.configs.applications = '{
"content": "VS Codium",
"description": "VSCodium is a community-driven, freely-licensed binary distribution of Microsoft's VS Code.",
"link": "https://vscodium.com/",
- "winget": "Git.Git;VSCodium.VSCodium"
+ "winget": "VSCodium.VSCodium"
},
"WPFInstallwaterfox": {
"category": "Browsers",
@@ -8135,6 +8151,22 @@ $sync.configs.applications = '{
"description": "Kicad is an open-source EDA tool. It's a good starting point for those who want to do electrical design and is even used by professionals in the industry.",
"link": "https://www.kicad.org/",
"winget": "KiCad.KiCad"
+ },
+ "WPFInstallFormatFactory": {
+ "category": "Utilities",
+ "choco": "formatfactory",
+ "content": "Format Factory",
+ "description": "FormatFactory is an ad-supported freeware multimedia converter that can convert video, audio, and picture files. It is also capable of ripping DVDs and CDs to other file formats, as well as creating .iso images. It can also join multiple video files together into one.",
+ "link": "http://www.pcfreetime.com/formatfactory/",
+ "winget": "na"
+ },
+ "WPFInstalldropox": {
+ "category": "Utilities",
+ "choco": "na",
+ "content": "Dropbox",
+ "description": "The Dropbox desktop app! Save hard drive space, share and edit files and send for signature ? all without the distraction of countless browser tabs.",
+ "link": "https://www.dropbox.com/en_GB/desktop",
+ "winget": "Dropbox.Dropbox"
}
}' | convertfrom-json
$sync.configs.dns = '{
@@ -8432,6 +8464,7 @@ $sync.configs.feature = '{
$sync.configs.preset = '{
"Standard": [
"WPFTweaksAH",
+ "WPFTweaksConsumerFeatures",
"WPFTweaksDVR",
"WPFTweaksHiber",
"WPFTweaksHome",
@@ -8447,6 +8480,7 @@ $sync.configs.preset = '{
"WPFTweaksTeredo"
],
"Minimal": [
+ "WPFTweaksConsumerFeatures",
"WPFTweaksHome",
"WPFTweaksServices",
"WPFTweaksTele"
@@ -10131,6 +10165,22 @@ $sync.configs.tweaks = '{
}
]
},
+ "WPFTweaksConsumerFeatures": {
+ "Content": "Disable ConsumerFeatures",
+ "Description": "Windows 10 will not automatically install any games, third-party apps, or application links from the Windows Store for the signed-in user. Some default Apps will be inaccessible (eg. Phone Link)",
+ "category": "Essential Tweaks",
+ "panel": "1",
+ "Order": "a003_",
+ "registry": [
+ {
+ "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\CloudContent",
+ "OriginalValue": "0",
+ "Name": "DisableWindowsConsumerFeatures",
+ "Value": "1",
+ "Type": "DWord"
+ }
+ ]
+ },
"WPFTweaksTele": {
"Content": "Disable Telemetry",
"Description": "Disables Microsoft Telemetry. Note: This will lock many Edge Browser settings. Microsoft spies heavily on you when using the Edge browser.",
@@ -10289,13 +10339,6 @@ $sync.configs.tweaks = '{
"Value": "0",
"Type": "DWord"
},
- {
- "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\CloudContent",
- "OriginalValue": "0",
- "Name": "DisableWindowsConsumerFeatures",
- "Value": "1",
- "Type": "DWord"
- },
{
"Path": "HKCU:\\SOFTWARE\\Microsoft\\Siuf\\Rules",
"OriginalValue": "0",
@@ -11247,7 +11290,7 @@ $sync.configs.tweaks = '{
},
"WPFTweaksBlockAdobeNet": {
"Content": "Adobe Network Block",
- "Description": "Reduce user interruptions by selectively blocking connections to Adobe's activation and telemetry servers. ",
+ "Description": "Reduce user interruptions by selectively blocking connections to Adobe's activation and telemetry servers. Credit: Ruddernation-Designs",
"category": "z__Advanced Tweaks - CAUTION",
"panel": "1",
"Order": "a021_",
@@ -12386,7 +12429,7 @@ $inputXML = '
-
+
@@ -12554,13 +12597,16 @@ $inputXML = '
+
+
+
-
+
@@ -12831,15 +12877,15 @@ $inputXML = '
+
+
+
-
-
-
@@ -13000,9 +13046,6 @@ $inputXML = '
-
-
-
@@ -13054,11 +13097,6 @@ $inputXML = '
-
-
-
-
-
@@ -13068,10 +13106,18 @@ $inputXML = '
+
+
+
+
+
+
+
+
@@ -13187,12 +13233,15 @@ $inputXML = '
-
+
+
+
+
@@ -13229,6 +13278,9 @@ $inputXML = '
+
+
+
@@ -13273,15 +13325,15 @@ $inputXML = '
+
+
+
-
-
-
@@ -13339,6 +13391,9 @@ $inputXML = '
+
+
+
@@ -13522,6 +13577,7 @@ $inputXML = '
+
@@ -13537,7 +13593,7 @@ $inputXML = '
-
+
@@ -14196,19 +14252,37 @@ Add-Type @"
}
}
- # need to experiemnt more
- # setting icon for the windows is still not working
- # $pngUrl = "https://christitus.com/images/logo-full.png"
- # $pngPath = "$env:TEMP\cttlogo.png"
- # $iconPath = "$env:TEMP\cttlogo.ico"
- # # Download the PNG file
- # Invoke-WebRequest -Uri $pngUrl -OutFile $pngPath
- # if (Test-Path -Path $pngPath) {
- # ConvertTo-Icon -bitmapPath $pngPath -iconPath $iconPath
- # }
- # $icon = [System.Drawing.Icon]::ExtractAssociatedIcon($iconPath)
- # Write-Host $icon.Handle
- # [Window]::SendMessage($windowHandle, 0x80, [IntPtr]::Zero, $icon.Handle)
+
+ # Using a TaskbarItem Overlay until someone figures out how to replace the icon correctly
+
+ # URL of the image
+ $imageUrl = "https://christitus.com/images/logo-full.png"
+
+ # Download the image
+ $imagePath = "$env:TEMP\logo-full.png"
+ Invoke-WebRequest -Uri $imageUrl -OutFile $imagePath
+
+ # Read the image file as a byte array
+ $imageBytes = [System.IO.File]::ReadAllBytes($imagePath)
+
+ # Convert the byte array to a Base64 string
+ $base64String = [System.Convert]::ToBase64String($imageBytes)
+
+ # Create a streaming image by streaming the base64 string to a bitmap streamsource
+ $bitmap = New-Object System.Windows.Media.Imaging.BitmapImage
+ $bitmap.BeginInit()
+ $bitmap.StreamSource = [System.IO.MemoryStream][System.Convert]::FromBase64String($base64String)
+ $bitmap.EndInit()
+ $bitmap.Freeze()
+
+ # Ensure TaskbarItemInfo is created if not already
+ if (-not $sync["Form"].TaskbarItemInfo) {
+ $sync["Form"].TaskbarItemInfo = New-Object System.Windows.Shell.TaskbarItemInfo
+ }
+
+ # Set the overlay icon for the taskbar
+ $sync["Form"].TaskbarItemInfo.Overlay = $bitmap
+
$rect = New-Object RECT
[Window]::GetWindowRect($windowHandle, [ref]$rect)
@@ -14384,7 +14458,6 @@ $sync["AboutMenuItem"].Add_Click({
$authorInfo = @"
Author : @christitustech
Runspace : @DeveloperDurp
-GUI : @KonTy
MicroWin : @KonTy
GitHub : ChrisTitusTech/winutil
Version : $($sync.version)
diff --git a/xaml/inputXML.xaml b/xaml/inputXML.xaml
index 9f6a1bfb..ca032916 100644
--- a/xaml/inputXML.xaml
+++ b/xaml/inputXML.xaml
@@ -713,7 +713,7 @@
-
+