mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2026-08-09 17:41:14 +10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
50be7390e5 | ||
|
|
8ab02ae756 | ||
|
|
7d1a03dcc9 | ||
|
|
5a4c9c883d | ||
|
|
5c104d02e2 | ||
|
|
06f33e88ba | ||
|
|
b9dee86694 | ||
|
|
3d1904ebbe | ||
|
|
70f1c50bdd | ||
|
|
2e5df82979 | ||
|
|
29595f90e2 | ||
|
|
9ed06e793a | ||
|
|
51cb3811dd | ||
|
|
975616b58f | ||
|
|
11783c75a8 | ||
|
|
13a18eeeb2 | ||
|
|
822003d87f | ||
|
|
c8c3c7869f | ||
|
|
157a66b14d | ||
|
|
9791386f53 | ||
|
|
c8e756dc11 | ||
|
|
9e21c8f4a7 | ||
|
|
8cd8679512 | ||
|
|
ac11c73b64 | ||
|
|
9d67514bf9 | ||
|
|
fea9f4e869 | ||
|
|
1aa0dd90ef | ||
|
|
90a19685f5 | ||
|
|
007995c112 | ||
|
|
0dcd361c51 | ||
|
|
aeaef46e30 | ||
|
|
e0dfeb4f4d | ||
|
|
1c7ee06bbe | ||
|
|
ed6de94c46 | ||
|
|
640b02868a | ||
|
|
29b269201d | ||
|
|
9fed8d1c4c | ||
|
|
4ae3549b8a | ||
|
|
e72ac75d13 | ||
|
|
9846dd7b49 | ||
|
|
466d32e690 | ||
|
|
dce1536be0 | ||
|
|
894d62ca68 | ||
|
|
27e590577b | ||
|
|
8147903ff2 | ||
|
|
7a72c73906 | ||
|
|
32891ada55 | ||
|
|
e2d6f8534e | ||
|
|
299b68e82d | ||
|
|
de6652adc0 | ||
|
|
727ba52a4d | ||
|
|
d45c62e470 | ||
|
|
492d5b57d7 | ||
|
|
58d37bb461 | ||
|
|
b72bfb03ba | ||
|
|
cc2be2d5e8 | ||
|
|
93dc23dd66 | ||
|
|
916dc761ba | ||
|
|
2cb20893fc | ||
|
|
c3b4f85fce | ||
|
|
104c763132 | ||
|
|
8062815655 | ||
|
|
58be808823 | ||
|
|
77dc64cbea | ||
|
|
72d47ba020 | ||
|
|
b6b479685a | ||
|
|
c7dfbeb7fe | ||
|
|
7c71a39f7a | ||
|
|
0c42b9e458 | ||
|
|
26f89adf95 | ||
|
|
5003f14e0a | ||
|
|
8b6098b36a | ||
|
|
1f0756336f | ||
|
|
0f39648de6 | ||
|
|
7f0d2183e3 | ||
|
|
6ae24d071d |
+88
-114
@@ -1,149 +1,123 @@
|
|||||||
## Contributing Code
|
# How to Contribute?
|
||||||
|
|
||||||
### Before You Start
|
## Testing
|
||||||
|
|
||||||
- Keep each pull request focused on a single feature or fix.
|
* Test the latest changes to WinUtil by running the pre-release and reporting issues you are encountering to help us continually improve WinUtil!
|
||||||
- Avoid unnecessary formatting changes or large unrelated edits.
|
|
||||||
- Document what changed and why in your PR description.
|
|
||||||
|
|
||||||
---
|
#### **Run the latest pre-release**
|
||||||
|
```ps1
|
||||||
|
irm https://christitus.com/windev | iex
|
||||||
|
```
|
||||||
|
|
||||||
## Basic Git Workflow
|
!!! bug "Keep in mind"
|
||||||
|
|
||||||
### 1. Fork the Repository
|
This is a pre-release and should be treated as such. It exists for developers to test the utility and report or fix bugs before they get added to the stable release. Don't use it in production!
|
||||||
|
|
||||||
Go to the ChrisTitusTech/winutil repository on GitHub and click the Fork button in the top right corner.
|
## Issues
|
||||||
|
|
||||||
<img width="171" height="50" alt="{650A4723-F38A-44A4-9820-D232BC87C8A0}" src="https://github.com/user-attachments/assets/a214f27c-2fee-444a-920f-d87b14f5896f" />
|
* If you encounter any challenges or problems with the script, I kindly request that you submit them via the "Issues" tab on the GitHub repository. By filling out the provided template, you can provide specific details about the issue, allowing me (and others in the community) to promptly address any bugs or consider feature requests.
|
||||||
|
|
||||||
---
|
## Contribute Code
|
||||||
|
|
||||||
### 2. Clone Your Fork
|
* Pull requests are now handled directly on the **MAIN branch**. This was done since we can now select specific releases to launch via releases in GitHub.
|
||||||
|
|
||||||
```powershell
|
* If you're doing code changes, then you can submit a PR to the `main` branch.
|
||||||
git clone https://github.com/YOUR_USERNAME/winutil.git
|
|
||||||
cd winutil
|
!!! warning "Important"
|
||||||
|
|
||||||
|
Do not use a code formatter, make massive amounts of line changes, or make multiple feature changes. EACH FEATURE CHANGE SHOULD BE IT'S OWN PULL REQUEST!
|
||||||
|
|
||||||
|
Do not open a pull request that adds support for other languages to WinUtil for now, until we decide how we want to move forward with language support.
|
||||||
|
|
||||||
|
* When creating pull requests, it is essential to thoroughly document all changes made. This includes, but is not limited to, documenting any additions made to the `tweaks` section and corresponding `undo tweak`, so users are able to remove the newly added tweaks if necessary, and comprehensive documentation is required for all code changes. Document your changes and briefly explain why you made your changes in your Pull Request Description. Failure to adhere to this format may result in the denial of the pull request. Additionally, any code lacking sufficient documentation may also be denied.
|
||||||
|
|
||||||
|
* By following these guidelines, we can maintain a high standard of quality and ensure that the codebase remains organized and well-documented.
|
||||||
|
|
||||||
|
!!! note
|
||||||
|
|
||||||
|
When creating a function, please include "WPF" or "WinUtil" in the file name so it can be loaded into the runspace.
|
||||||
|
|
||||||
|
## Walk through
|
||||||
|
|
||||||
|
* This is a guide for beginners. If you are still having issues, look at the following official GitHub documentation:
|
||||||
|
* [Commit through WEB](https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/about-commits)
|
||||||
|
* [Commit through GitHub Desktop](https://docs.github.com/en/desktop/making-changes-in-a-branch/committing-and-reviewing-changes-to-your-project-in-github-desktop#about-commits)
|
||||||
|
* [Create a Pull Request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request)
|
||||||
|
|
||||||
|
|
||||||
|
### Overview
|
||||||
|
|
||||||
|
``` mermaid
|
||||||
|
%%{init: {"flowchart": {"curve": "cardinal"}} }%%
|
||||||
|
graph TD
|
||||||
|
A[Fork Project] --> B[Clone Repository];
|
||||||
|
B --> C[Create New Branch];
|
||||||
|
C --> D[Make Changes];
|
||||||
|
D --> G[Test Changes];
|
||||||
|
G --> H{Tests Passed?};
|
||||||
|
H -->|Yes| E[Commit Changes];
|
||||||
|
H -->|No| J[Fix Issues];
|
||||||
|
J --> G;
|
||||||
|
E --> F[Push Branch];
|
||||||
|
F --> K[Create Pull Request];
|
||||||
|
K --> L[Fill out PR template];
|
||||||
|
classDef default stroke:#333,stroke-width:4px,font-size:12pt;
|
||||||
```
|
```
|
||||||
|
!!! info
|
||||||
|
|
||||||
---
|
This is a diagram to guide you through the process. It may vary depending on the type of change you're making.
|
||||||
|
|
||||||
### 3. Create a Branch
|
### Fork the Repo
|
||||||
|
* Fork the WinUtil Repository [here](https://github.com/ChrisTitusTech/winutil) to create a copy that will be available in your repository list.
|
||||||
|
|
||||||
Never work directly on `main`.
|

|
||||||
|
|
||||||
Create a branch related to your change:
|

|
||||||
|
|
||||||
```powershell
|
### Clone the Fork
|
||||||
git checkout -b feature-name
|
!!! tip
|
||||||
```
|
|
||||||
|
|
||||||
Example:
|
While you can make your changes directly through the Web, we recommend cloning the repo to your device using the application GitHub Desktop (available in WinUtil) to test your fork easily.
|
||||||
|
|
||||||
```powershell
|
* Install GitHub Desktop if it is not already installed.
|
||||||
git checkout -b add-firefox-tweak
|
* Log in using the same GitHub account you used to fork WinUtil.
|
||||||
```
|
* Choose the fork under "Your Repositories" and press "clone {repo name}"
|
||||||
|
* Create a new branch and name it something relatable to your changes.
|
||||||
|
|
||||||
---
|
* Now you can modify WinUtil to your liking using your preferred text editor.
|
||||||
|
|
||||||
### 4. Edit the Code
|
|
||||||
|
|
||||||
Open the project in your preferred text editor and make your changes.
|
### Testing your changes
|
||||||
|
|
||||||
Keep changes small and focused.
|
* To test to see if your changes work as intended, run the following commands in a PowerShell terminal as admin:
|
||||||
|
|
||||||
---
|
* Change the directory where you are running the commands to the forked project.
|
||||||
|
* `cd {path to the folder with the compile.ps1}`
|
||||||
|
* Run the following command to compile and run WinUtil:
|
||||||
|
* `.\Compile.ps1 -run`
|
||||||
|
|
||||||
### 5. Test Your Changes
|

|
||||||
|
|
||||||
Open Powershell as Administrator.
|
|
||||||
|
|
||||||
Go to the project folder:
|
Open PowerShell as Administrator.
|
||||||
|
|
||||||
```powershell
|
* After seeing that your changes work properly, feel free to commit the changes to the repository and make a PR. For help on that, follow the documentation below.
|
||||||
cd path\to\winutil
|
|
||||||
```
|
|
||||||
|
|
||||||
Run:
|
|
||||||
|
|
||||||
```powershell
|
### Committing the changes
|
||||||
.\Compile.ps1 -Run
|
* Before committing your changes, please discard changes made to the `winutil.ps1` file, like the following:
|
||||||
```
|
|
||||||
|
|
||||||
Verify:
|

|
||||||
|
|
||||||
- WinUtil launches correctly
|
* Now, commit your changes once you are happy with the result.
|
||||||
- Your feature works
|
|
||||||
- Nothing else breaks
|
|
||||||
|
|
||||||
If something fails, fix it before committing.
|

|
||||||
|
|
||||||
---
|
* Push the changes to upload them to your fork on github.com.
|
||||||
|
|
||||||
### 6. Review Your Changes
|

|
||||||
|
|
||||||
Check what changed:
|
### Making a PR
|
||||||
|
* To make a PR on your repo under a new branch linking to the main branch, a button will show and say Preview and Create pull request. Click that button and fill in all the information that is provided on the template. Once all the information is filled in correctly, check your PR to make sure there is no WinUtil.ps1 file attached to the PR. Once everything is good, make the PR and wait for Chris (the maintainer) to accept or deny your PR. Once it is accepted by Chris, you will be able to see your changes in the "/windev" build.
|
||||||
```powershell
|
* If you do not see your feature in the main "/win" build, that is fine. All new changes go into the /windev build to make sure everything is working OK before going fully public.
|
||||||
git status
|
* Congratulations! You just submitted your first PR. Thank you so much for contributing to WinUtil.
|
||||||
```
|
|
||||||
|
|
||||||
Review the diff:
|
|
||||||
|
|
||||||
```powershell
|
|
||||||
git diff
|
|
||||||
```
|
|
||||||
|
|
||||||
Make sure you did not accidentally modify unrelated files.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### 7. Commit Your Changes
|
|
||||||
|
|
||||||
Stage files:
|
|
||||||
|
|
||||||
```powershell
|
|
||||||
git add .
|
|
||||||
```
|
|
||||||
|
|
||||||
Commit them:
|
|
||||||
|
|
||||||
```powershell
|
|
||||||
git commit -m "Add feature description"
|
|
||||||
```
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
```powershell
|
|
||||||
git commit -m "Add Firefox package tweak"
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### 8. Push Your Branch
|
|
||||||
|
|
||||||
```powershell
|
|
||||||
git push origin branch-name
|
|
||||||
```
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
```powershell
|
|
||||||
git push origin add-firefox-tweak
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### 9. Open a Pull Request
|
|
||||||
|
|
||||||
Go to your fork on GitHub.
|
|
||||||
|
|
||||||
GitHub will show a button to create a pull request.
|
|
||||||
<img width="1009" height="71" alt="{C8C6A3CC-79D4-44FD-A54C-4C5717F12730}" src="https://github.com/user-attachments/assets/0419d193-d4e7-47c0-87cf-b986742201a0" />
|
|
||||||
|
|
||||||
Before submitting:
|
|
||||||
|
|
||||||
- Explain what changed
|
|
||||||
- Explain why you changed it
|
|
||||||
- Make sure unrelated files are not included
|
|
||||||
|
|
||||||
Once submitted, maintainers will review your PR.
|
|
||||||
|
|||||||
@@ -18,6 +18,14 @@ body:
|
|||||||
- label: Yes, I did
|
- label: Yes, I did
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: winutil_version
|
||||||
|
attributes:
|
||||||
|
label: "Version of WinUtil"
|
||||||
|
description: "Provide a version that you are using when issue submitted (it can be found in right corner of app)"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
- type: dropdown
|
- type: dropdown
|
||||||
id: affected_part
|
id: affected_part
|
||||||
attributes:
|
attributes:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
name: Auto-merge Docs PRs
|
name: Auto-merge Automated Update PRs
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
@@ -8,7 +8,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
auto-merge:
|
auto-merge:
|
||||||
if: github.event.pull_request.head.ref == 'docs-update' && (github.event.pull_request.user.login == 'ChrisTitusTech' || github.event.pull_request.user.login == 'github-actions[bot]')
|
if: (github.event.pull_request.head.ref == 'docs-update' || github.event.pull_request.head.ref == 'sponsors-update') && (github.event.pull_request.user.login == 'ChrisTitusTech' || github.event.pull_request.user.login == 'github-actions[bot]')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ jobs:
|
|||||||
labels: |
|
labels: |
|
||||||
automated
|
automated
|
||||||
documentation
|
documentation
|
||||||
|
skip-changelog
|
||||||
|
|
||||||
- name: Check outputs
|
- name: Check outputs
|
||||||
run: |
|
run: |
|
||||||
@@ -81,7 +82,7 @@ jobs:
|
|||||||
run: "cd docs && [[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
|
run: "cd docs && [[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
|
||||||
- name: Cache Restore
|
- name: Cache Restore
|
||||||
id: cache-restore
|
id: cache-restore
|
||||||
uses: actions/cache/restore@v5
|
uses: actions/cache/restore@v6
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
${{ runner.temp }}/hugo_cache
|
${{ runner.temp }}/hugo_cache
|
||||||
@@ -97,7 +98,7 @@ jobs:
|
|||||||
--cacheDir "${{ runner.temp }}/hugo_cache"
|
--cacheDir "${{ runner.temp }}/hugo_cache"
|
||||||
- name: Cache Save
|
- name: Cache Save
|
||||||
id: cache-save
|
id: cache-save
|
||||||
uses: actions/cache/save@v5
|
uses: actions/cache/save@v6
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
${{ runner.temp }}/hugo_cache
|
${{ runner.temp }}/hugo_cache
|
||||||
|
|||||||
@@ -1,77 +0,0 @@
|
|||||||
name: Issue slash commands
|
|
||||||
|
|
||||||
on:
|
|
||||||
issue_comment:
|
|
||||||
types: [created, edited]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
issueCommands:
|
|
||||||
# Skip this job if the comment was created/edited on a PR
|
|
||||||
if: ${{ !github.event.issue.pull_request }}
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
issues: write
|
|
||||||
pull-requests: none
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Process slash command
|
|
||||||
uses: actions/github-script@v9
|
|
||||||
with:
|
|
||||||
script: |
|
|
||||||
const allowedUsers = ["ChrisTitusTech", "og-mrk", "Marterich", "MyDrift-user", "Real-MullaC", "CodingWonders", "GabiNun2", "FluffyPunk"];
|
|
||||||
const commenter = context.payload.comment.user.login;
|
|
||||||
|
|
||||||
// Authorization check first — before any parsing of comment content
|
|
||||||
if (!allowedUsers.includes(commenter)) {
|
|
||||||
console.log(`User ${commenter} is not in the allowlist. Skipping.`);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Read comment body as data, never interpolated into shell
|
|
||||||
const body = context.payload.comment.body;
|
|
||||||
const issueNumber = context.issue.number;
|
|
||||||
const owner = context.repo.owner;
|
|
||||||
const repo = context.repo.repo;
|
|
||||||
|
|
||||||
// /label 'name' or /label name
|
|
||||||
const labelMatch = body.match(/\/label\s+'([^']+)'|\/label\s+(\S+?)(?:\s|$)/);
|
|
||||||
if (labelMatch) {
|
|
||||||
const labelName = (labelMatch[1] || labelMatch[2]).trim();
|
|
||||||
console.log(`Adding label: ${labelName}`);
|
|
||||||
await github.rest.issues.addLabels({
|
|
||||||
owner, repo, issue_number: issueNumber,
|
|
||||||
labels: [labelName],
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// /unlabel 'name' or /unlabel name
|
|
||||||
const unlabelMatch = body.match(/\/unlabel\s+'([^']+)'|\/unlabel\s+(\S+?)(?:\s|$)/);
|
|
||||||
if (unlabelMatch) {
|
|
||||||
const labelName = (unlabelMatch[1] || unlabelMatch[2]).trim();
|
|
||||||
console.log(`Removing label: ${labelName}`);
|
|
||||||
await github.rest.issues.removeLabel({
|
|
||||||
owner, repo, issue_number: issueNumber,
|
|
||||||
name: labelName,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// /close (optionally with 'not planned')
|
|
||||||
if (body.includes('/close')) {
|
|
||||||
const stateReason = body.includes('not planned') ? 'not_planned' : 'completed';
|
|
||||||
console.log(`Closing issue (reason: ${stateReason})`);
|
|
||||||
await github.rest.issues.update({
|
|
||||||
owner, repo, issue_number: issueNumber,
|
|
||||||
state: 'closed',
|
|
||||||
state_reason: stateReason,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// /open or /reopen
|
|
||||||
if (body.includes('/open') || body.includes('/reopen')) {
|
|
||||||
console.log('Reopening issue');
|
|
||||||
await github.rest.issues.update({
|
|
||||||
owner, repo, issue_number: issueNumber,
|
|
||||||
state: 'open',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
@@ -37,7 +37,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
token: ${{ secrets.AUTO_MERGE }}
|
token: ${{ secrets.AUTO_MERGE }}
|
||||||
commit-message: 'chore: Update documentation links in JSON configs'
|
commit-message: 'chore: Update documentation links in JSON configs'
|
||||||
title: 'chore: Update Generated Dev Docs'
|
title: 'chore: Update documentation links in JSON configs'
|
||||||
body: 'Automated update of documentation links in JSON configs from pre-release build'
|
body: 'Automated update of documentation links in JSON configs from pre-release build'
|
||||||
branch: docs-update
|
branch: docs-update
|
||||||
delete-branch: true
|
delete-branch: true
|
||||||
@@ -109,6 +109,21 @@ jobs:
|
|||||||
config-name: release-drafter.yml
|
config-name: release-drafter.yml
|
||||||
version: ${{ env.VERSION }}
|
version: ${{ env.VERSION }}
|
||||||
|
|
||||||
|
- name: Remove Automated Updates from Release Notes
|
||||||
|
id: filter_notes
|
||||||
|
shell: pwsh
|
||||||
|
env:
|
||||||
|
RELEASE_NOTES: ${{ steps.generate_notes.outputs.body }}
|
||||||
|
run: |
|
||||||
|
$filteredNotes = ($env:RELEASE_NOTES -split '\r?\n' | Where-Object {
|
||||||
|
$_ -notmatch '(?i)Update (Generated Dev Docs|Sponsors)'
|
||||||
|
}) -join "`n"
|
||||||
|
|
||||||
|
$delimiter = [guid]::NewGuid().ToString()
|
||||||
|
"body<<$delimiter" >> $env:GITHUB_OUTPUT
|
||||||
|
$filteredNotes >> $env:GITHUB_OUTPUT
|
||||||
|
$delimiter >> $env:GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Create and Upload Release
|
- name: Create and Upload Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: softprops/action-gh-release@v3
|
uses: softprops/action-gh-release@v3
|
||||||
@@ -116,7 +131,7 @@ jobs:
|
|||||||
tag_name: ${{ env.VERSION }}
|
tag_name: ${{ env.VERSION }}
|
||||||
name: Pre-Release ${{ env.VERSION }}
|
name: Pre-Release ${{ env.VERSION }}
|
||||||
body: |
|
body: |
|
||||||
${{ steps.generate_notes.outputs.body }}
|
${{ steps.filter_notes.outputs.body }}
|
||||||
|
|
||||||

|

|
||||||
append_body: false
|
append_body: false
|
||||||
|
|||||||
@@ -26,13 +26,15 @@ jobs:
|
|||||||
id: cpr
|
id: cpr
|
||||||
uses: peter-evans/create-pull-request@v8
|
uses: peter-evans/create-pull-request@v8
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.AUTO_MERGE }}
|
||||||
commit-message: 'Update sponsors in README'
|
commit-message: 'Update sponsors in README'
|
||||||
title: 'chore: Update Sponsors README'
|
title: 'chore: Update Sponsors README'
|
||||||
body: 'Automated update of sponsors section'
|
body: 'Automated update of sponsors section'
|
||||||
branch: sponsors-update
|
branch: sponsors-update
|
||||||
delete-branch: true
|
delete-branch: true
|
||||||
labels: automated
|
labels: |
|
||||||
|
automated
|
||||||
|
skip-changelog
|
||||||
|
|
||||||
- name: Check outputs
|
- name: Check outputs
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -9,14 +9,22 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@v7
|
||||||
- name: lint
|
- name: Install PSScriptAnalyzer
|
||||||
uses: devblackops/github-action-psscriptanalyzer@master
|
run: |
|
||||||
with:
|
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
|
||||||
sendComment: false
|
Install-Module -Name PSScriptAnalyzer -RequiredVersion 1.20.0 -Scope CurrentUser -Force
|
||||||
settingsPath: lint/PSScriptAnalyser.ps1
|
Import-Module PSScriptAnalyzer -RequiredVersion 1.20.0 -Force
|
||||||
failOnErrors: false
|
Get-Module PSScriptAnalyzer | Select-Object Name, Version, Path
|
||||||
failOnWarnings: false
|
shell: pwsh
|
||||||
failOnInfos: false
|
- name: Run PSScriptAnalyzer
|
||||||
|
run: |
|
||||||
|
$results = Invoke-ScriptAnalyzer -Path . -Settings ./lint/PSScriptAnalyser.ps1 -Recurse
|
||||||
|
if ($results) {
|
||||||
|
$results | Format-Table -AutoSize | Out-String -Width 4096 | Write-Host
|
||||||
|
} else {
|
||||||
|
Write-Host "PSScriptAnalyzer found no diagnostics."
|
||||||
|
}
|
||||||
|
shell: pwsh
|
||||||
test:
|
test:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
@@ -27,13 +35,16 @@ jobs:
|
|||||||
- name: Install Pester
|
- name: Install Pester
|
||||||
run: |
|
run: |
|
||||||
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process
|
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process
|
||||||
Install-Module -Name Pester -Force -SkipPublisherCheck -AllowClobber
|
Install-Module -Name Pester -RequiredVersion 5.8.0 -Force -SkipPublisherCheck -AllowClobber
|
||||||
|
Import-Module Pester -RequiredVersion 5.8.0 -Force
|
||||||
|
Get-Module Pester | Select-Object Name, Version, Path
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
- name: Run Pester tests
|
- name: Run Pester tests
|
||||||
run: |
|
run: |
|
||||||
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process
|
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process
|
||||||
Invoke-Pester -Path 'pester/*.Tests.ps1' -Output Detailed
|
Import-Module Pester -RequiredVersion 5.8.0 -Force
|
||||||
|
Invoke-Pester -Path 'pester/*.Tests.ps1' -Output Detailed -CI
|
||||||
|
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ Microsoft.PowerShell.ConsoleHost.dll
|
|||||||
winutil.exe.config
|
winutil.exe.config
|
||||||
winutil.ps1
|
winutil.ps1
|
||||||
binary/
|
binary/
|
||||||
|
testResults.xml
|
||||||
|
|
||||||
# general software/os specific
|
# general software/os specific
|
||||||
desktop.ini
|
desktop.ini
|
||||||
|
|||||||
@@ -0,0 +1,193 @@
|
|||||||
|
# AGENTS.md
|
||||||
|
|
||||||
|
Drop-in operating instructions for coding agents. Read this file before every task.
|
||||||
|
|
||||||
|
**Working code only. Finish the job. Plausibility is not correctness.**
|
||||||
|
|
||||||
|
This repository follows the AGENTS.md convention: these instructions are for Codex, Claude Code, Cursor, Windsurf, Copilot, Aider, Devin, Amp, and other coding agents that read `AGENTS.md`.
|
||||||
|
|
||||||
|
## 0. Non-Negotiables
|
||||||
|
|
||||||
|
These rules override everything else in this file when in conflict:
|
||||||
|
|
||||||
|
1. **Do not edit `winutil.ps1` directly.** It is generated build output. Change source files and compile.
|
||||||
|
2. **Do not commit `winutil.ps1`.** It is ignored locally and generated by GitHub Actions for releases.
|
||||||
|
3. **Never fabricate.** Do not invent file paths, function names, command output, test results, commit hashes, or API behavior. Read the file or run the command.
|
||||||
|
4. **Disagree when the premise is wrong.** Say what is wrong before acting on it.
|
||||||
|
5. **Stop when genuinely ambiguous.** If two interpretations would produce materially different diffs, ask before editing.
|
||||||
|
6. **Touch only what the task requires.** No drive-by refactors, formatting sweeps, or unrelated cleanup.
|
||||||
|
7. **Verify before saying done.** A plausible-looking diff is not proof.
|
||||||
|
|
||||||
|
## 1. Project Context
|
||||||
|
|
||||||
|
WinUtil is a Windows PowerShell utility with a WPF interface. The repository is maintained as modular source, but the distributed artifact is one compiled PowerShell script.
|
||||||
|
|
||||||
|
### Stack
|
||||||
|
|
||||||
|
- Language: Windows PowerShell / PowerShell.
|
||||||
|
- UI: WPF via `xaml/inputXML.xaml`.
|
||||||
|
- Configuration: JSON files under `config/`.
|
||||||
|
- Tests: Pester tests under `pester/`.
|
||||||
|
- Lint: PowerShell Script Analyzer with settings in `lint/PSScriptAnalyser.ps1`.
|
||||||
|
- Docs: Hugo site under `docs/`.
|
||||||
|
- Release artifact: generated root `winutil.ps1`.
|
||||||
|
|
||||||
|
### Key Commands
|
||||||
|
|
||||||
|
- Compile:
|
||||||
|
```powershell
|
||||||
|
.\Compile.ps1
|
||||||
|
```
|
||||||
|
- Compile and run GUI:
|
||||||
|
```powershell
|
||||||
|
.\Compile.ps1 -Run
|
||||||
|
```
|
||||||
|
- Run tests:
|
||||||
|
```powershell
|
||||||
|
Import-Module Pester -RequiredVersion 5.8.0 -Force
|
||||||
|
Invoke-Pester -Path 'pester/*.Tests.ps1' -Output Detailed
|
||||||
|
```
|
||||||
|
- Run Script Analyzer with project settings when available:
|
||||||
|
```powershell
|
||||||
|
Invoke-ScriptAnalyzer -Path . -Settings .\lint\PSScriptAnalyser.ps1 -Recurse
|
||||||
|
```
|
||||||
|
|
||||||
|
Prefer the narrowest useful verification while iterating. Use the full relevant check before finishing.
|
||||||
|
|
||||||
|
## 2. Source Of Truth
|
||||||
|
|
||||||
|
Make durable changes only in files consumed by `Compile.ps1` or in documentation/test files:
|
||||||
|
|
||||||
|
- `scripts/start.ps1` for startup/bootstrap code.
|
||||||
|
- `functions/public/*.ps1` for UI-facing and user-facing workflows.
|
||||||
|
- `functions/private/*.ps1` for internal helpers.
|
||||||
|
- `config/*.json` for applications, tweaks, features, DNS, presets, navigation, themes, and related declarative data.
|
||||||
|
- `xaml/inputXML.xaml` for the WPF UI layout.
|
||||||
|
- `tools/autounattend.xml` for the embedded unattended Windows setup template.
|
||||||
|
- `scripts/main.ps1` for the final entrypoint and GUI initialization logic appended during compile.
|
||||||
|
- `pester/*.Tests.ps1` for automated checks.
|
||||||
|
- `docs/` for Hugo documentation.
|
||||||
|
|
||||||
|
If behavior changes require the compiled script to change, update these source files and run `.\Compile.ps1` only to verify generation.
|
||||||
|
|
||||||
|
## 3. Build Model
|
||||||
|
|
||||||
|
`Compile.ps1` combines the repository sources into `winutil.ps1` in this order:
|
||||||
|
|
||||||
|
1. Read `scripts/start.ps1` and replace `#{replaceme}` with the current `yy.MM.dd` build date.
|
||||||
|
2. Append every file under `functions/` recursively.
|
||||||
|
3. Convert each `config/*.json` file into embedded `$sync.configs` objects.
|
||||||
|
4. Special-case `config/applications.json` so keys receive the `WPFInstall` prefix in compiled config.
|
||||||
|
5. Embed `xaml/inputXML.xaml` into `$inputXML`.
|
||||||
|
6. Embed `tools/autounattend.xml` into `$WinUtilAutounattendXml`.
|
||||||
|
7. Append `scripts/main.ps1`.
|
||||||
|
8. Write the result to root `winutil.ps1`.
|
||||||
|
|
||||||
|
Because the final script is concatenated, do not rely on runtime module imports or source-relative dot-sourcing unless the compiled script will also contain the required code/data.
|
||||||
|
|
||||||
|
## 4. Before Editing
|
||||||
|
|
||||||
|
- State the plan in one or two sentences before editing. For non-trivial work, include the verification you intend to run.
|
||||||
|
- Read the files you will touch and the files that call them.
|
||||||
|
- Match existing patterns even when a different greenfield design would be cleaner.
|
||||||
|
- Surface assumptions when they affect behavior, compatibility, or user data.
|
||||||
|
- If two approaches have meaningful tradeoffs, name them before choosing. Trivial tasks can proceed directly.
|
||||||
|
|
||||||
|
## 5. Coding Guidelines
|
||||||
|
|
||||||
|
- Prefer the minimum code that solves the stated problem.
|
||||||
|
- Keep PowerShell functions in one function file when practical, with the file name matching the primary function name.
|
||||||
|
- Use approved PowerShell verb-noun names and follow the existing `WPF` / `WinUtil` naming conventions.
|
||||||
|
- Keep UI event handler names aligned with XAML element names. A button named `WPFExampleButton` is typically handled by `Invoke-WPFExampleButton`.
|
||||||
|
- Use `$sync` for shared state and UI references, consistent with the existing runspace model.
|
||||||
|
- Update WPF controls through the UI dispatcher when running work in a background runspace.
|
||||||
|
- Keep config-driven features in JSON when they fit the existing schema instead of hard-coding lists in PowerShell.
|
||||||
|
- Preserve undo/original-state data for tweaks so users can reverse changes.
|
||||||
|
- Do not add abstractions, configurability, hooks, or "future extensibility" unless the task needs them now.
|
||||||
|
- Clean up orphans created by your own changes, such as unused variables or functions made obsolete by the edit.
|
||||||
|
- Avoid broad formatting-only edits, especially in JSON config files, XAML, docs, and generated output.
|
||||||
|
|
||||||
|
## 6. Runtime And Safety Rules
|
||||||
|
|
||||||
|
- WinUtil performs system-level Windows changes. Treat registry, services, AppX removal, package manager, Windows Update, ISO, and unattended setup changes as high-risk.
|
||||||
|
- Prefer existing helper functions for WinGet, Chocolatey, registry, services, progress, and UI updates.
|
||||||
|
- Keep tweaks reversible where the schema supports it by including original values or original states.
|
||||||
|
- Never modify a user's original ISO in-place; follow existing copy/mount/export patterns.
|
||||||
|
- Avoid storing credentials, secrets, or machine-specific paths in repo files.
|
||||||
|
- Preserve logging and user feedback patterns for long-running or destructive operations.
|
||||||
|
|
||||||
|
## 7. Surgical Changes
|
||||||
|
|
||||||
|
- Do not improve adjacent code, comments, formatting, imports, or docs unless required.
|
||||||
|
- Do not refactor working code because you are already in the file.
|
||||||
|
- Do not delete pre-existing dead code unless asked; mention it in the summary if relevant.
|
||||||
|
- Keep diffs reviewable. Every changed line should trace to the user's request.
|
||||||
|
- If a change starts spreading across unrelated areas, pause and reassess the plan.
|
||||||
|
|
||||||
|
## 8. Verification
|
||||||
|
|
||||||
|
Define success in terms that can be checked, then check it.
|
||||||
|
|
||||||
|
- For compile/build changes, run `.\Compile.ps1`.
|
||||||
|
- For GUI behavior changes, run `.\Compile.ps1 -Run` when practical and verify the affected path manually.
|
||||||
|
- For config changes, run the compile check and relevant Pester tests.
|
||||||
|
- For function changes, run the relevant Pester tests or add/update focused tests when practical.
|
||||||
|
- For docs-only changes, proofread the changed files and skip runtime tests unless docs generation is affected.
|
||||||
|
- Read command output. Do not report tests as passing unless they actually passed.
|
||||||
|
- If verification fails, fix the cause rather than weakening the test.
|
||||||
|
|
||||||
|
If a check cannot be run, say exactly why and what residual risk remains.
|
||||||
|
|
||||||
|
## 9. Generated Files And Git Hygiene
|
||||||
|
|
||||||
|
- Treat local `winutil.ps1` changes as disposable compile output.
|
||||||
|
- Never stage or commit `winutil.ps1`, `docs/public/`, `docs/resources/`, `binary/`, editor folders, or other ignored build artifacts.
|
||||||
|
- Do not remove `.gitignore` rules that keep generated artifacts out of Git.
|
||||||
|
- Before finishing, check `git status --short` and separate your changes from pre-existing user changes.
|
||||||
|
- Do not revert user changes unless explicitly asked.
|
||||||
|
- Commit messages, when requested, should be descriptive: short subject under 72 characters, body explaining why when needed.
|
||||||
|
|
||||||
|
## 10. Documentation Expectations
|
||||||
|
|
||||||
|
- Update `docs/content/` when user-facing behavior changes.
|
||||||
|
- Update developer docs when architecture, build flow, config schema, or contribution workflow changes.
|
||||||
|
- Keep README changes brief and high-level.
|
||||||
|
- Put detailed user and developer documentation under `docs/`.
|
||||||
|
- Keep `SPEC.md` aligned with build/runtime contract changes.
|
||||||
|
|
||||||
|
## 11. Communication Style
|
||||||
|
|
||||||
|
- Be direct and concise. Start with the answer or action.
|
||||||
|
- No flattery, filler, ceremonial closings, or fake certainty.
|
||||||
|
- Use bullets only when they improve scanning.
|
||||||
|
- Report what changed, how it was verified, and anything not done.
|
||||||
|
- If the user asks for a review, lead with findings and file/line references.
|
||||||
|
|
||||||
|
## 12. When To Ask
|
||||||
|
|
||||||
|
Ask before proceeding when:
|
||||||
|
|
||||||
|
- The request has two plausible interpretations and the choice materially changes behavior or files touched.
|
||||||
|
- The change affects release generation, generated artifacts, migrations, or high-risk Windows behavior in a way the user did not specify.
|
||||||
|
- You need credentials, secrets, production resources, or access you do not have.
|
||||||
|
- The user's stated goal conflicts with the literal request.
|
||||||
|
|
||||||
|
Proceed without asking when:
|
||||||
|
|
||||||
|
- The task is trivial and reversible.
|
||||||
|
- Ambiguity can be resolved by reading the code or running a local command.
|
||||||
|
- The user already answered the question in this session.
|
||||||
|
|
||||||
|
## 13. Project Learnings
|
||||||
|
|
||||||
|
When the user corrects an agent approach, add or tighten one concrete rule here before ending the session. Keep this section short and prune rules that no longer matter.
|
||||||
|
|
||||||
|
- Keep `winutil.ps1` generated-only: change source files, compile to verify, and never stage the generated script.
|
||||||
|
- Keep WinUtil runtime logging in the existing timestamped `%LocalAppData%\winutil\logs\winutil_*.log` session file; do not create a separate root `winutil.log`.
|
||||||
|
- Import Pester 5.8.0 before running tests so `Invoke-Pester -Output Detailed -CI` does not resolve to Windows' inbox Pester 3.4.0.
|
||||||
|
- Keep package install/uninstall process launches simple unless explicitly requested; do not add a separate stdout/stderr process logging helper for winget or Chocolatey.
|
||||||
|
- When the active log file is owned by `Start-Transcript`, do not call `Add-Content` against that file; write to host output so the transcript captures the line in the same log file without recording a terminating-error diagnostic.
|
||||||
|
- Log install/uninstall package names and package-manager IDs before queuing background runspace work; do not rely on runspace host output for the package identity.
|
||||||
|
- For Win11 Creator, start each new ISO modification in a fresh `WinUtil_Win11ISO_*` temp directory; existing-work detection is only for resuming/exporting already modified media.
|
||||||
|
- For Script Analyzer cleanup, fix actionable source warnings first and do not globally suppress accepted convention warnings such as plural names, `ShouldProcess` on UI helpers, `$global:sync`, or compile-time cross-file false positives.
|
||||||
|
- For DNS DHCP reset, keep the cmdlet reset and explicitly set IPv4 and IPv6 DNS source to DHCP.
|
||||||
+3
-1
@@ -10,7 +10,9 @@ $sync.configs = @{}
|
|||||||
|
|
||||||
$script = (Get-Content -Path scripts\start.ps1) -replace '#{replaceme}', (Get-Date -Format 'yy.MM.dd')
|
$script = (Get-Content -Path scripts\start.ps1) -replace '#{replaceme}', (Get-Date -Format 'yy.MM.dd')
|
||||||
|
|
||||||
$script += Get-ChildItem -Path functions -Recurse -File | Get-Content -Raw
|
$script += Get-ChildItem -Path functions -Recurse -File | ForEach-Object {
|
||||||
|
Get-Content -Path $_.FullName -Raw
|
||||||
|
}
|
||||||
|
|
||||||
Get-ChildItem config | ForEach-Object {
|
Get-ChildItem config | ForEach-Object {
|
||||||
$obj = Get-Content -Path $_.FullName -Raw | ConvertFrom-Json
|
$obj = Get-Content -Path $_.FullName -Raw | ConvertFrom-Json
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ See https://github.com/ChrisTitusTech/winutil/blob/main/.github/CONTRIBUTING.md
|
|||||||
|
|
||||||
These are the sponsors that help keep this project alive with monthly contributions.
|
These are the sponsors that help keep this project alive with monthly contributions.
|
||||||
|
|
||||||
<!-- sponsors --><a href="https://github.com/dwelfusius"><img src="https://github.com/dwelfusius.png" width="60px" alt="User avatar: " /></a><a href="https://github.com/mews-se"><img src="https://github.com/mews-se.png" width="60px" alt="User avatar: Martin Stockzell" /></a><a href="https://github.com/jdiegmueller"><img src="https://github.com/jdiegmueller.png" width="60px" alt="User avatar: Jason A. Diegmueller" /></a><a href="https://github.com/robertsandrock"><img src="https://github.com/robertsandrock.png" width="60px" alt="User avatar: RMS" /></a><a href="https://github.com/paulsheets"><img src="https://github.com/paulsheets.png" width="60px" alt="User avatar: Paul" /></a><a href="https://github.com/djones369"><img src="https://github.com/djones369.png" width="60px" alt="User avatar: Dave J (WhamGeek)" /></a><a href="https://github.com/anthonymendez"><img src="https://github.com/anthonymendez.png" width="60px" alt="User avatar: Anthony Mendez" /></a><a href="https://github.com/FatBastard0"><img src="https://github.com/FatBastard0.png" width="60px" alt="User avatar: " /></a><a href="https://github.com/DursleyGuy"><img src="https://github.com/DursleyGuy.png" width="60px" alt="User avatar: DursleyGuy" /></a><a href="https://github.com/DwayneTheRockLobster1"><img src="https://github.com/DwayneTheRockLobster1.png" width="60px" alt="User avatar: " /></a><a href="https://github.com/KieraKujisawa"><img src="https://github.com/KieraKujisawa.png" width="60px" alt="User avatar: Kiera Meredith" /></a><a href="https://github.com/andrewpayne68"><img src="https://github.com/andrewpayne68.png" width="60px" alt="User avatar: Andrew P" /></a><!-- sponsors -->
|
<!-- sponsors --><a href="https://github.com/ysaito8015"><img src="https://github.com/ysaito8015.png" width="60px" alt="User avatar: Yusuke Saito" /></a><a href="https://github.com/dwelfusius"><img src="https://github.com/dwelfusius.png" width="60px" alt="User avatar: " /></a><a href="https://github.com/mews-se"><img src="https://github.com/mews-se.png" width="60px" alt="User avatar: Martin Stockzell" /></a><a href="https://github.com/jdiegmueller"><img src="https://github.com/jdiegmueller.png" width="60px" alt="User avatar: Jason A. Diegmueller" /></a><a href="https://github.com/robertsandrock"><img src="https://github.com/robertsandrock.png" width="60px" alt="User avatar: RMS" /></a><a href="https://github.com/paulsheets"><img src="https://github.com/paulsheets.png" width="60px" alt="User avatar: Paul" /></a><a href="https://github.com/djones369"><img src="https://github.com/djones369.png" width="60px" alt="User avatar: Dave J (WhamGeek)" /></a><a href="https://github.com/anthonymendez"><img src="https://github.com/anthonymendez.png" width="60px" alt="User avatar: Anthony Mendez" /></a><a href="https://github.com/FatBastard0"><img src="https://github.com/FatBastard0.png" width="60px" alt="User avatar: " /></a><a href="https://github.com/DursleyGuy"><img src="https://github.com/DursleyGuy.png" width="60px" alt="User avatar: DursleyGuy" /></a><a href="https://github.com/DwayneTheRockLobster1"><img src="https://github.com/DwayneTheRockLobster1.png" width="60px" alt="User avatar: " /></a><a href="https://github.com/KieraKujisawa"><img src="https://github.com/KieraKujisawa.png" width="60px" alt="User avatar: Kiera Meredith" /></a><a href="https://github.com/andrewpayne68"><img src="https://github.com/andrewpayne68.png" width="60px" alt="User avatar: Andrew P" /></a><a href="https://github.com/johanwildeboer"><img src="https://github.com/johanwildeboer.png" width="60px" alt="User avatar: " /></a><a href="https://github.com/lukas346"><img src="https://github.com/lukas346.png" width="60px" alt="User avatar: Wook" /></a><a href="https://github.com/tsv31"><img src="https://github.com/tsv31.png" width="60px" alt="User avatar: Sorin" /></a><a href="https://github.com/seanh1995"><img src="https://github.com/seanh1995.png" width="60px" alt="User avatar: Sean (ANGRYxScotsman)" /></a><!-- sponsors -->
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,105 @@
|
|||||||
|
# SPEC.md
|
||||||
|
|
||||||
|
## Project Contract
|
||||||
|
|
||||||
|
WinUtil is a Windows PowerShell utility with a WPF interface. The repository is maintained as modular source files, but the released artifact is a single generated `winutil.ps1` script.
|
||||||
|
|
||||||
|
The compiled `winutil.ps1` is not source code for editing or review. It is generated by `Compile.ps1` and produced during release automation. All durable changes must be made to the source files that feed the compiler.
|
||||||
|
|
||||||
|
## Goals
|
||||||
|
|
||||||
|
- Provide a single-script Windows utility that can be launched from PowerShell.
|
||||||
|
- Keep development modular enough for contributors to work on functions, config, UI, docs, and tooling independently.
|
||||||
|
- Make install, tweak, feature, repair, update, and ISO workflows discoverable from the WPF UI.
|
||||||
|
- Keep common lists and options declarative in JSON config where possible.
|
||||||
|
- Preserve a repeatable compile process so local builds and GitHub Actions builds produce the distributable script from the same inputs.
|
||||||
|
|
||||||
|
## Non-Goals
|
||||||
|
|
||||||
|
- `winutil.ps1` is not hand-maintained.
|
||||||
|
- The project is not structured as a PowerShell module at runtime.
|
||||||
|
- The GUI is not a separate packaged desktop application in this repository's normal release path.
|
||||||
|
- Generated files should not be reviewed as source changes.
|
||||||
|
|
||||||
|
## Repository Layout
|
||||||
|
|
||||||
|
- `Compile.ps1`: build script that creates `winutil.ps1`.
|
||||||
|
- `scripts/start.ps1`: startup/bootstrap segment used at the beginning of the compiled script.
|
||||||
|
- `scripts/main.ps1`: main entrypoint appended at the end of the compiled script.
|
||||||
|
- `functions/public/`: public/UI-facing PowerShell functions.
|
||||||
|
- `functions/private/`: internal helper PowerShell functions.
|
||||||
|
- `config/`: JSON configuration consumed at compile time and embedded into `$sync.configs`.
|
||||||
|
- `xaml/inputXML.xaml`: WPF UI markup embedded into the compiled script.
|
||||||
|
- `tools/autounattend.xml`: unattended setup XML embedded for Windows ISO workflows.
|
||||||
|
- `pester/`: Pester tests for config and function checks.
|
||||||
|
- `lint/PSScriptAnalyser.ps1`: PowerShell Script Analyzer settings.
|
||||||
|
- `docs/`: Hugo documentation site.
|
||||||
|
- `winutil.ps1`: ignored generated build artifact.
|
||||||
|
|
||||||
|
## Compile Specification
|
||||||
|
|
||||||
|
`Compile.ps1` must produce a standalone root `winutil.ps1` by combining all required project files.
|
||||||
|
|
||||||
|
The compile flow is:
|
||||||
|
|
||||||
|
1. Initialize shared state with `$sync = [Hashtable]::Synchronized(@{})` and `$sync.configs = @{}`.
|
||||||
|
2. Read `scripts/start.ps1`.
|
||||||
|
3. Replace `#{replaceme}` in startup code with the current `yy.MM.dd` build date.
|
||||||
|
4. Append raw content from all files under `functions/` recursively.
|
||||||
|
5. For every file in `config/`, parse JSON and embed it into `$sync.configs.<basename>`.
|
||||||
|
6. Special-case `config/applications.json` so application keys are emitted with the `WPFInstall` prefix.
|
||||||
|
7. Embed `xaml/inputXML.xaml` as `$inputXML`.
|
||||||
|
8. Embed `tools/autounattend.xml` as `$WinUtilAutounattendXml`.
|
||||||
|
9. Append `scripts/main.ps1`.
|
||||||
|
10. Write the combined script to `winutil.ps1`.
|
||||||
|
11. If `-Run` is supplied, execute the generated script.
|
||||||
|
|
||||||
|
The generated script must have everything it needs from repository sources embedded or appended by this process.
|
||||||
|
|
||||||
|
## Runtime Model
|
||||||
|
|
||||||
|
- WinUtil runs in PowerShell on Windows and uses WPF for the UI.
|
||||||
|
- Shared mutable state is stored in `$sync`, including configs, UI element references, runspace state, selections, and progress.
|
||||||
|
- Long-running operations should use runspaces or existing async patterns so the UI remains responsive.
|
||||||
|
- UI updates from background work must be dispatched back to the WPF UI thread.
|
||||||
|
- Declarative features such as apps, tweaks, presets, DNS providers, and navigation should stay in `config/*.json` unless code is required.
|
||||||
|
|
||||||
|
## UI And Event Contract
|
||||||
|
|
||||||
|
- UI layout lives in `xaml/inputXML.xaml`.
|
||||||
|
- Named WPF controls are discovered and stored in `$sync`.
|
||||||
|
- Button/action wiring follows existing naming conventions, where an element named like `WPFThingButton` maps to a function named like `Invoke-WPFThingButton`.
|
||||||
|
- When adding controls, ensure the XAML name, config key, and PowerShell function names line up with the existing event system.
|
||||||
|
|
||||||
|
## Configuration Contract
|
||||||
|
|
||||||
|
Config files must remain valid JSON and compile cleanly through `ConvertFrom-Json`.
|
||||||
|
|
||||||
|
`config/applications.json` defines installable applications. Each application entry should include the fields expected by tests and UI code, such as package manager IDs, category, display content, description, and link.
|
||||||
|
|
||||||
|
`config/tweaks.json` defines Windows tweaks. Registry and service changes should include original values or original states when applicable so undo workflows can restore user systems.
|
||||||
|
|
||||||
|
Preset and navigation files should reference valid config keys. Avoid renaming config keys unless all presets, UI references, docs, and code paths are updated together.
|
||||||
|
|
||||||
|
## Safety Requirements
|
||||||
|
|
||||||
|
- Registry, service, package manager, Windows Update, AppX removal, and ISO operations can affect the host system. Changes must be explicit, reversible where practical, and consistent with existing logging and confirmation patterns.
|
||||||
|
- Tweak changes should include undo metadata when the schema supports it.
|
||||||
|
- Package installation should prefer existing WinGet and Chocolatey helper functions.
|
||||||
|
- ISO workflows must not modify the user's original ISO file; they should work on copied/mounted content following existing patterns.
|
||||||
|
|
||||||
|
## Testing And CI
|
||||||
|
|
||||||
|
Expected validation for source changes:
|
||||||
|
|
||||||
|
- `.\Compile.ps1` verifies the compiler can generate `winutil.ps1`.
|
||||||
|
- `.\Compile.ps1 -Run` compiles and launches the generated utility for manual GUI verification.
|
||||||
|
- `Install-Module -Name Pester -RequiredVersion 5.8.0 -Scope CurrentUser -Force -SkipPublisherCheck` installs the supported Pester version.
|
||||||
|
- `Import-Module Pester -RequiredVersion 5.8.0 -Force; Invoke-Pester -Path 'pester/*.Tests.ps1' -Output Detailed -CI` runs the Pester suite.
|
||||||
|
- GitHub Actions also runs a compile check and PowerShell Script Analyzer with `lint/PSScriptAnalyser.ps1`.
|
||||||
|
|
||||||
|
The generated `winutil.ps1` may appear locally after compile. It remains ignored build output and must not be committed.
|
||||||
|
|
||||||
|
## Release Artifact
|
||||||
|
|
||||||
|
GitHub Actions is responsible for producing the release `winutil.ps1` from repository sources. A release should be considered valid only if the generated script came from the compile process, not from direct manual edits to `winutil.ps1`.
|
||||||
+103
-13
@@ -161,6 +161,15 @@
|
|||||||
"winget": "Cemu.Cemu",
|
"winget": "Cemu.Cemu",
|
||||||
"foss": true
|
"foss": true
|
||||||
},
|
},
|
||||||
|
"chatgpt": {
|
||||||
|
"category": "Development",
|
||||||
|
"choco": "na",
|
||||||
|
"content": "ChatGPT Desktop",
|
||||||
|
"description": "The official ChatGPT desktop app for Windows, distributed through the Microsoft Store.",
|
||||||
|
"link": "https://apps.microsoft.com/detail/9nt1r1c2hh7j",
|
||||||
|
"winget": "msstore:9NT1R1C2HH7J",
|
||||||
|
"foss": false
|
||||||
|
},
|
||||||
"chatterino": {
|
"chatterino": {
|
||||||
"category": "Communications",
|
"category": "Communications",
|
||||||
"choco": "chatterino",
|
"choco": "chatterino",
|
||||||
@@ -188,6 +197,33 @@
|
|||||||
"winget": "Hibbiki.Chromium",
|
"winget": "Hibbiki.Chromium",
|
||||||
"foss": true
|
"foss": true
|
||||||
},
|
},
|
||||||
|
"cinebenchr23": {
|
||||||
|
"category": "Pro Tools",
|
||||||
|
"choco": "na",
|
||||||
|
"content": "Cinebench R23",
|
||||||
|
"description": "Cinebench R23 is a benchmark tool for comparing CPU rendering performance across systems.",
|
||||||
|
"link": "https://www.maxon.net/en/cinebench",
|
||||||
|
"winget": "Maxon.CinebenchR23",
|
||||||
|
"foss": false
|
||||||
|
},
|
||||||
|
"claude": {
|
||||||
|
"category": "Development",
|
||||||
|
"choco": "claude",
|
||||||
|
"content": "Claude Desktop",
|
||||||
|
"description": "Anthropic's Claude desktop application for focused AI-assisted work and chat.",
|
||||||
|
"link": "https://claude.ai/download",
|
||||||
|
"winget": "Anthropic.Claude",
|
||||||
|
"foss": false
|
||||||
|
},
|
||||||
|
"claude-code": {
|
||||||
|
"category": "Development",
|
||||||
|
"choco": "claude-code",
|
||||||
|
"content": "Claude Code",
|
||||||
|
"description": "Anthropic's agentic coding tool for terminal and IDE development workflows.",
|
||||||
|
"link": "https://code.claude.com/",
|
||||||
|
"winget": "Anthropic.ClaudeCode",
|
||||||
|
"foss": false
|
||||||
|
},
|
||||||
"cmake": {
|
"cmake": {
|
||||||
"category": "Development",
|
"category": "Development",
|
||||||
"choco": "cmake",
|
"choco": "cmake",
|
||||||
@@ -197,6 +233,15 @@
|
|||||||
"winget": "Kitware.CMake",
|
"winget": "Kitware.CMake",
|
||||||
"foss": true
|
"foss": true
|
||||||
},
|
},
|
||||||
|
"codex": {
|
||||||
|
"category": "Development",
|
||||||
|
"choco": "codex",
|
||||||
|
"content": "Codex",
|
||||||
|
"description": "Codex CLI is an OpenAI coding agent that runs locally in your terminal.",
|
||||||
|
"link": "https://developers.openai.com/codex/cli",
|
||||||
|
"winget": "OpenAI.Codex",
|
||||||
|
"foss": true
|
||||||
|
},
|
||||||
"cpuz": {
|
"cpuz": {
|
||||||
"category": "Pro Tools",
|
"category": "Pro Tools",
|
||||||
"choco": "cpu-z",
|
"choco": "cpu-z",
|
||||||
@@ -314,6 +359,15 @@
|
|||||||
"winget": "Microsoft.DotNet.DesktopRuntime.10",
|
"winget": "Microsoft.DotNet.DesktopRuntime.10",
|
||||||
"foss": true
|
"foss": true
|
||||||
},
|
},
|
||||||
|
"dropbox": {
|
||||||
|
"category": "Utilities",
|
||||||
|
"choco": "dropbox",
|
||||||
|
"content": "Dropbox",
|
||||||
|
"description": "Dropbox is a cloud storage client for syncing files, sharing content, and keeping documents available across devices.",
|
||||||
|
"link": "https://www.dropbox.com/desktop",
|
||||||
|
"winget": "Dropbox.Dropbox",
|
||||||
|
"foss": false
|
||||||
|
},
|
||||||
"eaapp": {
|
"eaapp": {
|
||||||
"category": "Games",
|
"category": "Games",
|
||||||
"choco": "ea-app",
|
"choco": "ea-app",
|
||||||
@@ -476,6 +530,15 @@
|
|||||||
"winget": "TechPowerUp.GPU-Z",
|
"winget": "TechPowerUp.GPU-Z",
|
||||||
"foss": false
|
"foss": false
|
||||||
},
|
},
|
||||||
|
"gsudo": {
|
||||||
|
"category": "Pro Tools",
|
||||||
|
"choco": "gsudo",
|
||||||
|
"content": "gsudo",
|
||||||
|
"description": "gsudo is a sudo equivalent for Windows. It allows you to run commands with elevated administrative privileges directly within the current console window.",
|
||||||
|
"link": "https://github.com/gerardog/gsudo",
|
||||||
|
"winget": "gerardog.gsudo",
|
||||||
|
"foss": true
|
||||||
|
},
|
||||||
"helium": {
|
"helium": {
|
||||||
"category": "Browsers",
|
"category": "Browsers",
|
||||||
"choco": "helium",
|
"choco": "helium",
|
||||||
@@ -539,6 +602,15 @@
|
|||||||
"winget": "DuongDieuPhap.ImageGlass",
|
"winget": "DuongDieuPhap.ImageGlass",
|
||||||
"foss": true
|
"foss": true
|
||||||
},
|
},
|
||||||
|
"internetdownloadmanager": {
|
||||||
|
"category": "Utilities",
|
||||||
|
"choco": "internet-download-manager",
|
||||||
|
"content": "Internet Download Manager",
|
||||||
|
"description": "Internet Download Manager is a download manager for accelerating, resuming, and scheduling file downloads.",
|
||||||
|
"link": "https://www.internetdownloadmanager.com/",
|
||||||
|
"winget": "Tonec.InternetDownloadManager",
|
||||||
|
"foss": false
|
||||||
|
},
|
||||||
"irfanview": {
|
"irfanview": {
|
||||||
"category": "Multimedia Tools",
|
"category": "Multimedia Tools",
|
||||||
"choco": "irfanview",
|
"choco": "irfanview",
|
||||||
@@ -656,15 +728,6 @@
|
|||||||
"winget": "XBMCFoundation.Kodi",
|
"winget": "XBMCFoundation.Kodi",
|
||||||
"foss": true
|
"foss": true
|
||||||
},
|
},
|
||||||
"lightshot": {
|
|
||||||
"category": "Multimedia Tools",
|
|
||||||
"choco": "lightshot",
|
|
||||||
"content": "Lightshot",
|
|
||||||
"description": "The fastest way to take a customizable screenshot.",
|
|
||||||
"link": "https://app.prntscr.com/",
|
|
||||||
"winget": "Skillbrains.Lightshot",
|
|
||||||
"foss": false
|
|
||||||
},
|
|
||||||
"lazygit": {
|
"lazygit": {
|
||||||
"category": "Development",
|
"category": "Development",
|
||||||
"choco": "lazygit",
|
"choco": "lazygit",
|
||||||
@@ -719,6 +782,15 @@
|
|||||||
"winget": "Element.Element",
|
"winget": "Element.Element",
|
||||||
"foss": true
|
"foss": true
|
||||||
},
|
},
|
||||||
|
"minitoolpartitionwizard": {
|
||||||
|
"category": "Utilities",
|
||||||
|
"choco": "minitoolpartitionwizard",
|
||||||
|
"content": "MiniTool Partition Wizard",
|
||||||
|
"description": "Comprehensive free partition manager that performs advanced operations Windows natively cannot, such as merging partitions, converting file systems, and organizing disk capacity.",
|
||||||
|
"link": "https://www.partitionwizard.com/",
|
||||||
|
"winget": "MiniTool.PartitionWizard.Free",
|
||||||
|
"foss": false
|
||||||
|
},
|
||||||
"modrinth": {
|
"modrinth": {
|
||||||
"category": "Games",
|
"category": "Games",
|
||||||
"choco": "modrinth-app",
|
"choco": "modrinth-app",
|
||||||
@@ -1135,7 +1207,7 @@
|
|||||||
"processmonitor": {
|
"processmonitor": {
|
||||||
"category": "Microsoft Tools",
|
"category": "Microsoft Tools",
|
||||||
"choco": "procexp",
|
"choco": "procexp",
|
||||||
"content": "SysInternals Process Monitor",
|
"content": "Process Monitor",
|
||||||
"description": "SysInternals Process Monitor is an advanced monitoring tool that shows real-time file system, registry, and process/thread activity.",
|
"description": "SysInternals Process Monitor is an advanced monitoring tool that shows real-time file system, registry, and process/thread activity.",
|
||||||
"link": "https://docs.microsoft.com/en-us/sysinternals/downloads/procmon",
|
"link": "https://docs.microsoft.com/en-us/sysinternals/downloads/procmon",
|
||||||
"winget": "Microsoft.Sysinternals.ProcessMonitor",
|
"winget": "Microsoft.Sysinternals.ProcessMonitor",
|
||||||
@@ -1285,6 +1357,15 @@
|
|||||||
"winget": "SlackTechnologies.Slack",
|
"winget": "SlackTechnologies.Slack",
|
||||||
"foss": false
|
"foss": false
|
||||||
},
|
},
|
||||||
|
"startallback": {
|
||||||
|
"category": "Utilities",
|
||||||
|
"choco": "StartAllBack",
|
||||||
|
"content": "StartAllBack",
|
||||||
|
"description": "StartAllBack restores and improves Windows taskbar, Start menu, File Explorer, and shell UI behavior.",
|
||||||
|
"link": "https://www.startallback.com/",
|
||||||
|
"winget": "StartIsBack.StartAllBack",
|
||||||
|
"foss": false
|
||||||
|
},
|
||||||
"steam": {
|
"steam": {
|
||||||
"category": "Games",
|
"category": "Games",
|
||||||
"choco": "steam-client",
|
"choco": "steam-client",
|
||||||
@@ -1315,7 +1396,7 @@
|
|||||||
"tcpview": {
|
"tcpview": {
|
||||||
"category": "Microsoft Tools",
|
"category": "Microsoft Tools",
|
||||||
"choco": "tcpview",
|
"choco": "tcpview",
|
||||||
"content": "SysInternals TCPView",
|
"content": "TCPView",
|
||||||
"description": "SysInternals TCPView is a network monitoring tool that displays a detailed list of all TCP and UDP endpoints on your system.",
|
"description": "SysInternals TCPView is a network monitoring tool that displays a detailed list of all TCP and UDP endpoints on your system.",
|
||||||
"link": "https://docs.microsoft.com/en-us/sysinternals/downloads/tcpview",
|
"link": "https://docs.microsoft.com/en-us/sysinternals/downloads/tcpview",
|
||||||
"winget": "Microsoft.Sysinternals.TCPView",
|
"winget": "Microsoft.Sysinternals.TCPView",
|
||||||
@@ -1432,7 +1513,7 @@
|
|||||||
"ungoogled": {
|
"ungoogled": {
|
||||||
"category": "Browsers",
|
"category": "Browsers",
|
||||||
"choco": "ungoogled-chromium",
|
"choco": "ungoogled-chromium",
|
||||||
"content": "Ungoogled",
|
"content": "Ungoogled Chromium",
|
||||||
"description": "Ungoogled Chromium is a version of Chromium without Google's integration for enhanced privacy and control.",
|
"description": "Ungoogled Chromium is a version of Chromium without Google's integration for enhanced privacy and control.",
|
||||||
"link": "https://github.com/Eloston/ungoogled-chromium",
|
"link": "https://github.com/Eloston/ungoogled-chromium",
|
||||||
"winget": "eloston.ungoogled-chromium",
|
"winget": "eloston.ungoogled-chromium",
|
||||||
@@ -1450,7 +1531,7 @@
|
|||||||
"everything": {
|
"everything": {
|
||||||
"category": "Utilities",
|
"category": "Utilities",
|
||||||
"choco": "everything",
|
"choco": "everything",
|
||||||
"content": "VoidTools Everything",
|
"content": "Everything",
|
||||||
"description": "Everything is a search engine that locates files and folders by filename instantly for Windows. Unlike Windows search Everything initially displays every file and folder on your computer (hence the name Everything). You type in a search filter to limit what files and folders are displayed.",
|
"description": "Everything is a search engine that locates files and folders by filename instantly for Windows. Unlike Windows search Everything initially displays every file and folder on your computer (hence the name Everything). You type in a search filter to limit what files and folders are displayed.",
|
||||||
"link": "https://www.voidtools.com/",
|
"link": "https://www.voidtools.com/",
|
||||||
"winget": "voidtools.Everything",
|
"winget": "voidtools.Everything",
|
||||||
@@ -1573,6 +1654,15 @@
|
|||||||
"winget": "Waterfox.Waterfox",
|
"winget": "Waterfox.Waterfox",
|
||||||
"foss": true
|
"foss": true
|
||||||
},
|
},
|
||||||
|
"whatsapp": {
|
||||||
|
"category": "Communications",
|
||||||
|
"choco": "na",
|
||||||
|
"content": "WhatsApp Desktop",
|
||||||
|
"description": "WhatsApp Desktop is the official Windows desktop messaging app from Meta, distributed through the Microsoft Store.",
|
||||||
|
"link": "https://apps.microsoft.com/detail/9nksqgp7f2nh",
|
||||||
|
"winget": "msstore:9NKSQGP7F2NH",
|
||||||
|
"foss": false
|
||||||
|
},
|
||||||
"wingetui": {
|
"wingetui": {
|
||||||
"category": "Utilities",
|
"category": "Utilities",
|
||||||
"choco": "wingetui",
|
"choco": "wingetui",
|
||||||
|
|||||||
@@ -0,0 +1,263 @@
|
|||||||
|
{
|
||||||
|
"WPFAppxMicrosoft_WindowsFeedbackHub": {
|
||||||
|
"Category": "Microsoft Apps",
|
||||||
|
"Content": "Feedback Hub",
|
||||||
|
"Description": "Allows users to submit bug reports, feature suggestions, and diagnostic data directly to Microsoft.",
|
||||||
|
"Panel": "0",
|
||||||
|
"PackageId": "Microsoft.WindowsFeedbackHub",
|
||||||
|
"StoreId": "9NBLGGH4R32N"
|
||||||
|
},
|
||||||
|
"WPFAppxMicrosoft_GetHelp": {
|
||||||
|
"Category": "Microsoft Apps",
|
||||||
|
"Content": "Get Help",
|
||||||
|
"Description": "Provides access to automated troubleshooting guides, support documentation, and direct Microsoft customer assistance.",
|
||||||
|
"Panel": "0",
|
||||||
|
"PackageId": "Microsoft.GetHelp",
|
||||||
|
"StoreId": "9PKDZBMV1H3T"
|
||||||
|
},
|
||||||
|
"WPFAppxMicrosoft_OutlookForWindows": {
|
||||||
|
"Category": "Microsoft Apps",
|
||||||
|
"Content": "Outlook for Windows",
|
||||||
|
"Description": "Provides modern email management, calendar scheduling, and contact organization features.",
|
||||||
|
"Panel": "0",
|
||||||
|
"PackageId": "Microsoft.OutlookForWindows",
|
||||||
|
"StoreId": "9NRX63209R7B"
|
||||||
|
},
|
||||||
|
"WPFAppxMSTeams": {
|
||||||
|
"Category": "Microsoft Apps",
|
||||||
|
"Content": "Microsoft Teams",
|
||||||
|
"Description": "Facilitates instant messaging, video conferencing, file sharing, and workspace collaboration.",
|
||||||
|
"Panel": "0",
|
||||||
|
"PackageId": "MSTeams",
|
||||||
|
"StoreId": "XP8BT8DW290MPQ"
|
||||||
|
},
|
||||||
|
"WPFAppxClipchamp_Clipchamp": {
|
||||||
|
"Category": "Utilities & Productivity",
|
||||||
|
"Content": "Clipchamp",
|
||||||
|
"Description": "Provides a user-friendly video editor with built-in templates, effects, and timeline editing tools.",
|
||||||
|
"Panel": "0",
|
||||||
|
"PackageId": "Clipchamp.Clipchamp",
|
||||||
|
"StoreId": "9P1J8S7CCWWT"
|
||||||
|
},
|
||||||
|
"WPFAppxMicrosoft_MicrosoftOfficeHub": {
|
||||||
|
"Category": "Microsoft Apps",
|
||||||
|
"Content": "Microsoft 365",
|
||||||
|
"Description": "Serves as a centralized launcher and dashboard for accessing cloud-based Microsoft 365 apps and recent documents.",
|
||||||
|
"Panel": "0",
|
||||||
|
"PackageId": "Microsoft.MicrosoftOfficeHub",
|
||||||
|
"StoreId": "9WZDNCRD29V9"
|
||||||
|
},
|
||||||
|
"WPFAppxMicrosoft_ZuneMusic": {
|
||||||
|
"Category": "Utilities & Productivity",
|
||||||
|
"Content": "Media Player",
|
||||||
|
"Description": "Plays local audio and video files with modern playlist management and casting capabilities.",
|
||||||
|
"Panel": "0",
|
||||||
|
"PackageId": "Microsoft.ZuneMusic",
|
||||||
|
"StoreId": "9WZDNCRFJ3PT"
|
||||||
|
},
|
||||||
|
"WPFAppxMicrosoft_BingSearch": {
|
||||||
|
"Category": "Bing & Web Services",
|
||||||
|
"Content": "Bing Search",
|
||||||
|
"Description": "Integrates Microsoft Bing search capabilities and web services directly into the operating system.",
|
||||||
|
"Panel": "1",
|
||||||
|
"PackageId": "Microsoft.BingSearch",
|
||||||
|
"StoreId": "9NZBF4GT040C"
|
||||||
|
},
|
||||||
|
"WPFAppxMicrosoftCorporationII_QuickAssist": {
|
||||||
|
"Category": "Utilities & Productivity",
|
||||||
|
"Content": "Quick Assist",
|
||||||
|
"Description": "Enables secure remote technical support and screen sharing over an internet connection.",
|
||||||
|
"Panel": "0",
|
||||||
|
"PackageId": "MicrosoftCorporationII.QuickAssist",
|
||||||
|
"StoreId": "9P7BP5VNWKX5"
|
||||||
|
},
|
||||||
|
"WPFAppxMicrosoft_WindowsDevHome": {
|
||||||
|
"Category": "Developer Tools",
|
||||||
|
"Content": "Dev Home",
|
||||||
|
"Description": "Provides a specialized dashboard for software developer environment setups, repository syncing, and hardware widgets.",
|
||||||
|
"Panel": "1",
|
||||||
|
"PackageId": "Microsoft.Windows.DevHome",
|
||||||
|
"StoreId": "9N8MHTPHNGVV"
|
||||||
|
},
|
||||||
|
"WPFAppxMicrosoft_WindowsCrossDevice": {
|
||||||
|
"Category": "Microsoft Ecosystem",
|
||||||
|
"Content": "Mobile Devices",
|
||||||
|
"Description": "Manages system-level background connectivity with paired mobile devices. Removing this may disable cross-device features such as phone screen mirroring, file transfer, and mobile hotspot handoff integrated into Windows Settings.",
|
||||||
|
"Panel": "0",
|
||||||
|
"PackageId": "MicrosoftWindows.CrossDevice",
|
||||||
|
"StoreId": "9NTXGKQ8P7N0"
|
||||||
|
},
|
||||||
|
"WPFAppxMicrosoft_Todos": {
|
||||||
|
"Category": "Utilities & Productivity",
|
||||||
|
"Content": "To Do",
|
||||||
|
"Description": "Creates, tracks, and synchronizes personal tasks, smart lists, and daily reminders.",
|
||||||
|
"Panel": "0",
|
||||||
|
"PackageId": "Microsoft.Todos",
|
||||||
|
"StoreId": "9NBLGGH5R558"
|
||||||
|
},
|
||||||
|
"WPFAppxMicrosoft_PowerAutomateDesktop": {
|
||||||
|
"Category": "Developer Tools",
|
||||||
|
"Content": "Power Automate",
|
||||||
|
"Description": "Automates repetitive workflows and desktop tasks using low-code visual scripting.",
|
||||||
|
"Panel": "1",
|
||||||
|
"PackageId": "Microsoft.PowerAutomateDesktop",
|
||||||
|
"StoreId": "9NFTCH6J7FHV"
|
||||||
|
},
|
||||||
|
"WPFAppxMicrosoft_YourPhone": {
|
||||||
|
"Category": "Microsoft Ecosystem",
|
||||||
|
"Content": "Phone Link",
|
||||||
|
"Description": "Synchronizes text messages, phone notifications, photos, and calls from a mobile device to the desktop.",
|
||||||
|
"Panel": "0",
|
||||||
|
"PackageId": "Microsoft.YourPhone",
|
||||||
|
"StoreId": "9NMPJ99VJBWV"
|
||||||
|
},
|
||||||
|
"WPFAppxMicrosoft_MicrosoftStickyNotes": {
|
||||||
|
"Category": "Utilities & Productivity",
|
||||||
|
"Content": "Sticky Notes",
|
||||||
|
"Description": "Creates quick, floating text notes on the desktop that automatically sync across devices.",
|
||||||
|
"Panel": "0",
|
||||||
|
"PackageId": "Microsoft.MicrosoftStickyNotes",
|
||||||
|
"StoreId": "9NBLGGH4QGHW"
|
||||||
|
},
|
||||||
|
"WPFAppxMicrosoft_WindowsSoundRecorder": {
|
||||||
|
"Category": "Utilities & Productivity",
|
||||||
|
"Content": "Sound Recorder",
|
||||||
|
"Description": "Records and trims live audio inputs with simple microphone adjustment controls.",
|
||||||
|
"Panel": "0",
|
||||||
|
"PackageId": "Microsoft.WindowsSoundRecorder",
|
||||||
|
"StoreId": "9WZDNCRFHWKN"
|
||||||
|
},
|
||||||
|
"WPFAppxMicrosoft_WindowsAlarms": {
|
||||||
|
"Category": "Utilities & Productivity",
|
||||||
|
"Content": "Clock",
|
||||||
|
"Description": "Features world clocks, alarms, countdown timers, stopwatches, and dedicated focus session tracking.",
|
||||||
|
"Panel": "0",
|
||||||
|
"PackageId": "Microsoft.WindowsAlarms",
|
||||||
|
"StoreId": "9WZDNCRFJ3PR"
|
||||||
|
},
|
||||||
|
"WPFAppxMicrosoft_Paint": {
|
||||||
|
"Category": "Utilities & Productivity",
|
||||||
|
"Content": "Paint",
|
||||||
|
"Description": "Provides built-in digital sketching, basic image editing, and pixel-level graphic manipulation tools.",
|
||||||
|
"Panel": "0",
|
||||||
|
"PackageId": "Microsoft.Paint",
|
||||||
|
"StoreId": "9PCFS5B6T72H"
|
||||||
|
},
|
||||||
|
"WPFAppxMicrosoft_WindowsNotepad": {
|
||||||
|
"Category": "Utilities & Productivity",
|
||||||
|
"Content": "Notepad",
|
||||||
|
"Description": "Provides a lightweight text editor with multi-tab support for plain text files and code snippets.",
|
||||||
|
"Panel": "0",
|
||||||
|
"PackageId": "Microsoft.WindowsNotepad",
|
||||||
|
"StoreId": "9MSMLRH6LZF3"
|
||||||
|
},
|
||||||
|
"WPFAppxMicrosoft_ScreenSketch": {
|
||||||
|
"Category": "Utilities & Productivity",
|
||||||
|
"Content": "Snipping Tool",
|
||||||
|
"Description": "Captures screenshots or screen recordings with built-in markup, image cropping, and optical character recognition (OCR).",
|
||||||
|
"Panel": "0",
|
||||||
|
"PackageId": "Microsoft.ScreenSketch",
|
||||||
|
"StoreId": "9MZ95KL8MR0L"
|
||||||
|
},
|
||||||
|
"WPFAppxMicrosoft_Copilot": {
|
||||||
|
"Category": "Bing & Web Services",
|
||||||
|
"Content": "Copilot",
|
||||||
|
"Description": "Launches the Microsoft AI companion for contextual answers, creative writing assistance, and intelligent web search.",
|
||||||
|
"Panel": "1",
|
||||||
|
"PackageId": "Microsoft.Copilot",
|
||||||
|
"StoreId": "9NHT9RB2F4HD"
|
||||||
|
},
|
||||||
|
"WPFAppxMicrosoft_WindowsCalculator": {
|
||||||
|
"Category": "Utilities & Productivity",
|
||||||
|
"Content": "Calculator",
|
||||||
|
"Description": "Performs standard arithmetic, scientific operations, programming calculations, and unit conversions.",
|
||||||
|
"Panel": "0",
|
||||||
|
"PackageId": "Microsoft.WindowsCalculator",
|
||||||
|
"StoreId": "9WZDNCRFHVN5"
|
||||||
|
},
|
||||||
|
"WPFAppxMicrosoft_WindowsCamera": {
|
||||||
|
"Category": "Utilities & Productivity",
|
||||||
|
"Content": "Camera",
|
||||||
|
"Description": "Captures photographs and records video files via connected webcams or imaging hardware.",
|
||||||
|
"Panel": "0",
|
||||||
|
"PackageId": "Microsoft.WindowsCamera",
|
||||||
|
"StoreId": "9WZDNCRFJBBG"
|
||||||
|
},
|
||||||
|
"WPFAppxMicrosoft_WindowsPhotos": {
|
||||||
|
"Category": "Utilities & Productivity",
|
||||||
|
"Content": "Photos",
|
||||||
|
"Description": "Organizes, views, and crops local images with basic color adjustment and album creation tools.",
|
||||||
|
"Panel": "0",
|
||||||
|
"PackageId": "Microsoft.Windows.Photos",
|
||||||
|
"StoreId": "9WZDNCRFJBH4"
|
||||||
|
},
|
||||||
|
"WPFAppxMicrosoft_BingNews": {
|
||||||
|
"Category": "Bing & Web Services",
|
||||||
|
"Content": "News",
|
||||||
|
"Description": "Aggregates breaking news headlines, personalized article feeds, and world current events.",
|
||||||
|
"Panel": "1",
|
||||||
|
"PackageId": "Microsoft.BingNews",
|
||||||
|
"StoreId": "9WZDNCRFHVFW"
|
||||||
|
},
|
||||||
|
"WPFAppxMicrosoft_BingWeather": {
|
||||||
|
"Category": "Bing & Web Services",
|
||||||
|
"Content": "Weather",
|
||||||
|
"Description": "Displays local real-time weather tracking, radar maps, and historical meteorological forecasts.",
|
||||||
|
"Panel": "1",
|
||||||
|
"PackageId": "Microsoft.BingWeather",
|
||||||
|
"StoreId": "9WZDNCRFJ3Q2"
|
||||||
|
},
|
||||||
|
"WPFAppxMicrosoft_GamingApp": {
|
||||||
|
"Category": "Xbox & Gaming",
|
||||||
|
"Content": "Xbox App",
|
||||||
|
"Description": "Serves as the primary gaming library manager, social community interface, and PC Game Pass dashboard.",
|
||||||
|
"Panel": "1",
|
||||||
|
"PackageId": "Microsoft.GamingApp",
|
||||||
|
"StoreId": "9MV0B5HZVK9Z"
|
||||||
|
},
|
||||||
|
"WPFAppxMicrosoft_XboxGamingOverlay": {
|
||||||
|
"Category": "Xbox & Gaming",
|
||||||
|
"Content": "Xbox Game Bar",
|
||||||
|
"Description": "Provides customizable in-game status widgets, audio balancing sliders, system monitoring tools, and gameplay recording.",
|
||||||
|
"Panel": "1",
|
||||||
|
"PackageId": "Microsoft.XboxGamingOverlay",
|
||||||
|
"StoreId": "9NZKPSTSNW4P"
|
||||||
|
},
|
||||||
|
"WPFAppxMicrosoft_XboxIdentityProvider": {
|
||||||
|
"Category": "Xbox & Gaming",
|
||||||
|
"Content": "Xbox Identity Provider",
|
||||||
|
"Description": "Manages Xbox network user authentication and background account validation for connected titles. Warning: removing this may break Microsoft account sign-in for non-Xbox games and apps that rely on this authentication pipeline.",
|
||||||
|
"Panel": "1",
|
||||||
|
"PackageId": "Microsoft.XboxIdentityProvider",
|
||||||
|
"StoreId": "9WZDNCRD1HKW"
|
||||||
|
},
|
||||||
|
"WPFAppxMicrosoft_XboxSpeechToTextOverlay": {
|
||||||
|
"Category": "Xbox & Gaming",
|
||||||
|
"Content": "Xbox Speech To Text Overlay",
|
||||||
|
"Description": "Provides system-level live accessibility captions and voice-to-text translation for gaming chat networks.",
|
||||||
|
"Panel": "1",
|
||||||
|
"PackageId": "Microsoft.XboxSpeechToTextOverlay"
|
||||||
|
},
|
||||||
|
"WPFAppxMicrosoft_Xbox_TCUI": {
|
||||||
|
"Category": "Xbox & Gaming",
|
||||||
|
"Content": "Xbox TCUI",
|
||||||
|
"Description": "Provides core account connection UI modules for single sign-on flows within game titles. Warning: removing this may break Microsoft account authentication in games and apps that do not otherwise require the Xbox app.",
|
||||||
|
"Panel": "1",
|
||||||
|
"PackageId": "Microsoft.Xbox.TCUI"
|
||||||
|
},
|
||||||
|
"WPFAppxMicrosoft_StartExperiencesApp": {
|
||||||
|
"Category": "Bing & Web Services",
|
||||||
|
"Content": "Start Experiences App",
|
||||||
|
"Description": "Powers the Windows Widgets board, delivering a personalized feed of news, weather, sports, and finance content.",
|
||||||
|
"Panel": "1",
|
||||||
|
"PackageId": "Microsoft.StartExperiencesApp",
|
||||||
|
"StoreId": "9PC1H9VN18CM"
|
||||||
|
},
|
||||||
|
"WPFAppxMicrosoft_MicrosoftSolitaireCollection": {
|
||||||
|
"Category": "Xbox & Gaming",
|
||||||
|
"Content": "Solitaire Collection",
|
||||||
|
"Description": "Bundles built-in card game modes including Klondike, Spider, FreeCell, Pyramid, and TriPeaks alongside daily challenges.",
|
||||||
|
"Panel": "1",
|
||||||
|
"PackageId": "Microsoft.MicrosoftSolitaireCollection"
|
||||||
|
}
|
||||||
|
}
|
||||||
+52
-8
@@ -179,6 +179,17 @@
|
|||||||
"function": "Invoke-WPFFixesWinget",
|
"function": "Invoke-WPFFixesWinget",
|
||||||
"link": "https://winutil.christitus.com/dev/features/fixes/winget"
|
"link": "https://winutil.christitus.com/dev/features/fixes/winget"
|
||||||
},
|
},
|
||||||
|
"WPFPanelComputer": {
|
||||||
|
"Content": "Computer Management",
|
||||||
|
"category": "Legacy Windows Panels",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"InvokeScript": [
|
||||||
|
"compmgmt.msc"
|
||||||
|
],
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/computer"
|
||||||
|
},
|
||||||
"WPFPanelControl": {
|
"WPFPanelControl": {
|
||||||
"Content": "Control Panel",
|
"Content": "Control Panel",
|
||||||
"category": "Legacy Windows Panels",
|
"category": "Legacy Windows Panels",
|
||||||
@@ -190,16 +201,16 @@
|
|||||||
],
|
],
|
||||||
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/control"
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/control"
|
||||||
},
|
},
|
||||||
"WPFPanelComputer": {
|
"WPFPanelMouse": {
|
||||||
"Content": "Computer Management",
|
"Content": "Mouse Properties",
|
||||||
"category": "Legacy Windows Panels",
|
"category": "Legacy Windows Panels",
|
||||||
"panel": "2",
|
"panel": "2",
|
||||||
"Type": "Button",
|
"Type": "Button",
|
||||||
"ButtonWidth": "300",
|
"ButtonWidth": "300",
|
||||||
"InvokeScript": [
|
"InvokeScript": [
|
||||||
"compmgmt.msc"
|
"main.cpl"
|
||||||
],
|
],
|
||||||
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/computer"
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/mouse"
|
||||||
},
|
},
|
||||||
"WPFPanelNetwork": {
|
"WPFPanelNetwork": {
|
||||||
"Content": "Network Connections",
|
"Content": "Network Connections",
|
||||||
@@ -234,6 +245,17 @@
|
|||||||
],
|
],
|
||||||
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/printer"
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/printer"
|
||||||
},
|
},
|
||||||
|
"WPFPanelPrograms": {
|
||||||
|
"Content": "Programs and Features",
|
||||||
|
"category": "Legacy Windows Panels",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"InvokeScript": [
|
||||||
|
"appwiz.cpl"
|
||||||
|
],
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/programs"
|
||||||
|
},
|
||||||
"WPFPanelRegion": {
|
"WPFPanelRegion": {
|
||||||
"Content": "Region",
|
"Content": "Region",
|
||||||
"category": "Legacy Windows Panels",
|
"category": "Legacy Windows Panels",
|
||||||
@@ -245,16 +267,16 @@
|
|||||||
],
|
],
|
||||||
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/region"
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/region"
|
||||||
},
|
},
|
||||||
"WPFPanelRestore": {
|
"WPFPanelSecurity": {
|
||||||
"Content": "Windows Restore",
|
"Content": "Security and Maintenance",
|
||||||
"category": "Legacy Windows Panels",
|
"category": "Legacy Windows Panels",
|
||||||
"panel": "2",
|
"panel": "2",
|
||||||
"Type": "Button",
|
"Type": "Button",
|
||||||
"ButtonWidth": "300",
|
"ButtonWidth": "300",
|
||||||
"InvokeScript": [
|
"InvokeScript": [
|
||||||
"rstrui.exe"
|
"wscui.cpl"
|
||||||
],
|
],
|
||||||
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/restore"
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/security"
|
||||||
},
|
},
|
||||||
"WPFPanelSound": {
|
"WPFPanelSound": {
|
||||||
"Content": "Sound Settings",
|
"Content": "Sound Settings",
|
||||||
@@ -289,6 +311,28 @@
|
|||||||
],
|
],
|
||||||
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/timedate"
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/timedate"
|
||||||
},
|
},
|
||||||
|
"WPFPanelFirewall": {
|
||||||
|
"Content": "Windows Defender Firewall",
|
||||||
|
"category": "Legacy Windows Panels",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"InvokeScript": [
|
||||||
|
"firewall.cpl"
|
||||||
|
],
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/firewall"
|
||||||
|
},
|
||||||
|
"WPFPanelRestore": {
|
||||||
|
"Content": "Windows Restore",
|
||||||
|
"category": "Legacy Windows Panels",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"InvokeScript": [
|
||||||
|
"rstrui.exe"
|
||||||
|
],
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/restore"
|
||||||
|
},
|
||||||
"WPFWinUtilInstallPSProfile": {
|
"WPFWinUtilInstallPSProfile": {
|
||||||
"Content": "CTT PowerShell Profile - Install",
|
"Content": "CTT PowerShell Profile - Install",
|
||||||
"category": "Powershell Profile Powershell 7+ Only",
|
"category": "Powershell Profile Powershell 7+ Only",
|
||||||
|
|||||||
+21
-3
@@ -4,7 +4,6 @@
|
|||||||
"WPFTweaksConsumerFeatures",
|
"WPFTweaksConsumerFeatures",
|
||||||
"WPFTweaksDisableExplorerAutoDiscovery",
|
"WPFTweaksDisableExplorerAutoDiscovery",
|
||||||
"WPFTweaksWPBT",
|
"WPFTweaksWPBT",
|
||||||
"WPFTweaksDeBloat",
|
|
||||||
"WPFTweaksLocation",
|
"WPFTweaksLocation",
|
||||||
"WPFTweaksServices",
|
"WPFTweaksServices",
|
||||||
"WPFTweaksTelemetry",
|
"WPFTweaksTelemetry",
|
||||||
@@ -16,17 +15,16 @@
|
|||||||
],
|
],
|
||||||
"Minimal": [
|
"Minimal": [
|
||||||
"WPFTweaksConsumerFeatures",
|
"WPFTweaksConsumerFeatures",
|
||||||
"WPFTweaksDeBloat",
|
|
||||||
"WPFTweaksWPBT",
|
"WPFTweaksWPBT",
|
||||||
"WPFTweaksServices",
|
"WPFTweaksServices",
|
||||||
"WPFTweaksTelemetry"
|
"WPFTweaksTelemetry"
|
||||||
],
|
],
|
||||||
"Advanced": [
|
"Advanced": [
|
||||||
|
"WPFTweaksRestorePoint",
|
||||||
"WPFTweaksActivity",
|
"WPFTweaksActivity",
|
||||||
"WPFTweaksConsumerFeatures",
|
"WPFTweaksConsumerFeatures",
|
||||||
"WPFTweaksDisableExplorerAutoDiscovery",
|
"WPFTweaksDisableExplorerAutoDiscovery",
|
||||||
"WPFTweaksWPBT",
|
"WPFTweaksWPBT",
|
||||||
"WPFTweaksDeBloat",
|
|
||||||
"WPFTweaksLocation",
|
"WPFTweaksLocation",
|
||||||
"WPFTweaksServices",
|
"WPFTweaksServices",
|
||||||
"WPFTweaksTelemetry",
|
"WPFTweaksTelemetry",
|
||||||
@@ -39,5 +37,25 @@
|
|||||||
"WPFTweaksRemoveOneDrive",
|
"WPFTweaksRemoveOneDrive",
|
||||||
"WPFTweaksWindowsAI",
|
"WPFTweaksWindowsAI",
|
||||||
"WPFTweaksRightClickMenu"
|
"WPFTweaksRightClickMenu"
|
||||||
|
],
|
||||||
|
"AppxDefault": [
|
||||||
|
"WPFAppxMicrosoft_WindowsFeedbackHub",
|
||||||
|
"WPFAppxMicrosoft_GetHelp",
|
||||||
|
"WPFAppxMicrosoft_MicrosoftOfficeHub",
|
||||||
|
"WPFAppxMicrosoft_WindowsCalculator",
|
||||||
|
"WPFAppxClipchamp_Clipchamp",
|
||||||
|
"WPFAppxMicrosoft_WindowsAlarms",
|
||||||
|
"WPFAppxMicrosoftCorporationII_QuickAssist",
|
||||||
|
"WPFAppxMicrosoft_WindowsSoundRecorder",
|
||||||
|
"WPFAppxMicrosoft_MicrosoftStickyNotes",
|
||||||
|
"WPFAppxMicrosoft_Todos",
|
||||||
|
"WPFAppxMicrosoft_MicrosoftSolitaireCollection",
|
||||||
|
"WPFAppxMicrosoft_PowerAutomateDesktop",
|
||||||
|
"WPFAppxMicrosoft_WindowsDevHome",
|
||||||
|
"WPFAppxMicrosoft_BingWeather",
|
||||||
|
"WPFAppxMicrosoft_StartExperiencesApp",
|
||||||
|
"WPFAppxMicrosoft_BingNews",
|
||||||
|
"WPFAppxMicrosoft_Copilot",
|
||||||
|
"WPFAppxMicrosoft_BingSearch"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
+11
-10
@@ -1,9 +1,10 @@
|
|||||||
{
|
{
|
||||||
"shared": {
|
"shared": {
|
||||||
"AppEntryWidth": "200",
|
"AppEntryWidth": "220",
|
||||||
"AppEntryFontSize": "11",
|
"AppEntryFontSize": "13.2",
|
||||||
"AppEntryMargin": "1,0,1,0",
|
"AppEntryIconSize": "28",
|
||||||
"AppEntryBorderThickness": "0",
|
"AppEntryMargin": "3",
|
||||||
|
"AppEntryBorderThickness": "1",
|
||||||
"CustomDialogFontSize": "12",
|
"CustomDialogFontSize": "12",
|
||||||
"CustomDialogFontSizeHeader": "14",
|
"CustomDialogFontSizeHeader": "14",
|
||||||
"CustomDialogLogoSize": "25",
|
"CustomDialogLogoSize": "25",
|
||||||
@@ -24,7 +25,7 @@
|
|||||||
"IconFontSize": "14",
|
"IconFontSize": "14",
|
||||||
"IconButtonSize": "35",
|
"IconButtonSize": "35",
|
||||||
"SettingsIconFontSize": "18",
|
"SettingsIconFontSize": "18",
|
||||||
"CloseIconFontSize": "18",
|
"CloseIconFontSize": "12",
|
||||||
"GroupBorderBackgroundColor": "#232629",
|
"GroupBorderBackgroundColor": "#232629",
|
||||||
"ButtonFontSize": "12",
|
"ButtonFontSize": "12",
|
||||||
"ButtonFontFamily": "Arial",
|
"ButtonFontFamily": "Arial",
|
||||||
@@ -45,7 +46,6 @@
|
|||||||
"AppInstallUnselectedColor": "#F7F7F7",
|
"AppInstallUnselectedColor": "#F7F7F7",
|
||||||
"AppInstallHighlightedColor": "#CFCFCF",
|
"AppInstallHighlightedColor": "#CFCFCF",
|
||||||
"AppInstallSelectedColor": "#C2C2C2",
|
"AppInstallSelectedColor": "#C2C2C2",
|
||||||
"AppInstallOverlayBackgroundColor": "#6A6D72",
|
|
||||||
"ComboBoxForegroundColor": "#232629",
|
"ComboBoxForegroundColor": "#232629",
|
||||||
"ComboBoxBackgroundColor": "#F7F7F7",
|
"ComboBoxBackgroundColor": "#F7F7F7",
|
||||||
"LabelboxForegroundColor": "#232629",
|
"LabelboxForegroundColor": "#232629",
|
||||||
@@ -59,17 +59,18 @@
|
|||||||
"ScrollBarDraggingColor": "#6A6D72",
|
"ScrollBarDraggingColor": "#6A6D72",
|
||||||
"ProgressBarForegroundColor": "#2E77FF",
|
"ProgressBarForegroundColor": "#2E77FF",
|
||||||
"ProgressBarBackgroundColor": "Transparent",
|
"ProgressBarBackgroundColor": "Transparent",
|
||||||
"ProgressBarTextColor": "#232629",
|
|
||||||
"ButtonInstallBackgroundColor": "#F7F7F7",
|
"ButtonInstallBackgroundColor": "#F7F7F7",
|
||||||
"ButtonTweaksBackgroundColor": "#F7F7F7",
|
"ButtonTweaksBackgroundColor": "#F7F7F7",
|
||||||
"ButtonConfigBackgroundColor": "#F7F7F7",
|
"ButtonConfigBackgroundColor": "#F7F7F7",
|
||||||
"ButtonUpdatesBackgroundColor": "#F7F7F7",
|
"ButtonUpdatesBackgroundColor": "#F7F7F7",
|
||||||
"ButtonWin11ISOBackgroundColor": "#F7F7F7",
|
"ButtonWin11ISOBackgroundColor": "#F7F7F7",
|
||||||
|
"ButtonAppxBackgroundColor": "#F7F7F7",
|
||||||
"ButtonInstallForegroundColor": "#232629",
|
"ButtonInstallForegroundColor": "#232629",
|
||||||
"ButtonTweaksForegroundColor": "#232629",
|
"ButtonTweaksForegroundColor": "#232629",
|
||||||
"ButtonConfigForegroundColor": "#232629",
|
"ButtonConfigForegroundColor": "#232629",
|
||||||
"ButtonUpdatesForegroundColor": "#232629",
|
"ButtonUpdatesForegroundColor": "#232629",
|
||||||
"ButtonWin11ISOForegroundColor": "#232629",
|
"ButtonWin11ISOForegroundColor": "#232629",
|
||||||
|
"ButtonAppxForegroundColor": "#232629",
|
||||||
"ButtonBackgroundColor": "#F5F5F5",
|
"ButtonBackgroundColor": "#F5F5F5",
|
||||||
"ButtonBackgroundPressedColor": "#1A1A1A",
|
"ButtonBackgroundPressedColor": "#1A1A1A",
|
||||||
"ButtonBackgroundMouseoverColor": "#C2C2C2",
|
"ButtonBackgroundMouseoverColor": "#C2C2C2",
|
||||||
@@ -85,7 +86,6 @@
|
|||||||
"AppInstallUnselectedColor": "#232629",
|
"AppInstallUnselectedColor": "#232629",
|
||||||
"AppInstallHighlightedColor": "#3C3C3C",
|
"AppInstallHighlightedColor": "#3C3C3C",
|
||||||
"AppInstallSelectedColor": "#4C4C4C",
|
"AppInstallSelectedColor": "#4C4C4C",
|
||||||
"AppInstallOverlayBackgroundColor": "#2E3135",
|
|
||||||
"ComboBoxForegroundColor": "#F7F7F7",
|
"ComboBoxForegroundColor": "#F7F7F7",
|
||||||
"ComboBoxBackgroundColor": "#1E3747",
|
"ComboBoxBackgroundColor": "#1E3747",
|
||||||
"LabelboxForegroundColor": "#5BDCFF",
|
"LabelboxForegroundColor": "#5BDCFF",
|
||||||
@@ -97,19 +97,20 @@
|
|||||||
"ScrollBarBackgroundColor": "#2E3135",
|
"ScrollBarBackgroundColor": "#2E3135",
|
||||||
"ScrollBarHoverColor": "#3B4252",
|
"ScrollBarHoverColor": "#3B4252",
|
||||||
"ScrollBarDraggingColor": "#5E81AC",
|
"ScrollBarDraggingColor": "#5E81AC",
|
||||||
"ProgressBarForegroundColor": "#222222",
|
"ProgressBarForegroundColor": "#6EFF72",
|
||||||
"ProgressBarBackgroundColor": "Transparent",
|
"ProgressBarBackgroundColor": "Transparent",
|
||||||
"ProgressBarTextColor": "#232629",
|
|
||||||
"ButtonInstallBackgroundColor": "#222222",
|
"ButtonInstallBackgroundColor": "#222222",
|
||||||
"ButtonTweaksBackgroundColor": "#333333",
|
"ButtonTweaksBackgroundColor": "#333333",
|
||||||
"ButtonConfigBackgroundColor": "#444444",
|
"ButtonConfigBackgroundColor": "#444444",
|
||||||
"ButtonUpdatesBackgroundColor": "#555555",
|
"ButtonUpdatesBackgroundColor": "#555555",
|
||||||
"ButtonWin11ISOBackgroundColor": "#666666",
|
"ButtonWin11ISOBackgroundColor": "#666666",
|
||||||
|
"ButtonAppxBackgroundColor": "#777777",
|
||||||
"ButtonInstallForegroundColor": "#F7F7F7",
|
"ButtonInstallForegroundColor": "#F7F7F7",
|
||||||
"ButtonTweaksForegroundColor": "#F7F7F7",
|
"ButtonTweaksForegroundColor": "#F7F7F7",
|
||||||
"ButtonConfigForegroundColor": "#F7F7F7",
|
"ButtonConfigForegroundColor": "#F7F7F7",
|
||||||
"ButtonUpdatesForegroundColor": "#F7F7F7",
|
"ButtonUpdatesForegroundColor": "#F7F7F7",
|
||||||
"ButtonWin11ISOForegroundColor": "#F7F7F7",
|
"ButtonWin11ISOForegroundColor": "#F7F7F7",
|
||||||
|
"ButtonAppxForegroundColor": "#F7F7F7",
|
||||||
"ButtonBackgroundColor": "#1E3747",
|
"ButtonBackgroundColor": "#1E3747",
|
||||||
"ButtonBackgroundPressedColor": "#F7F7F7",
|
"ButtonBackgroundPressedColor": "#F7F7F7",
|
||||||
"ButtonBackgroundMouseoverColor": "#3B4252",
|
"ButtonBackgroundMouseoverColor": "#3B4252",
|
||||||
|
|||||||
+59
-76
@@ -91,7 +91,6 @@
|
|||||||
"OriginalValue": "<RemoveEntry>"
|
"OriginalValue": "<RemoveEntry>"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/revertstartmenu",
|
|
||||||
"link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/revertstartmenu"
|
"link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/revertstartmenu"
|
||||||
},
|
},
|
||||||
"WPFTweaksDisableStoreSearch": {
|
"WPFTweaksDisableStoreSearch": {
|
||||||
@@ -430,7 +429,7 @@
|
|||||||
},
|
},
|
||||||
"WPFTweaksConsumerFeatures": {
|
"WPFTweaksConsumerFeatures": {
|
||||||
"Content": "ConsumerFeatures - Disable",
|
"Content": "ConsumerFeatures - Disable",
|
||||||
"Description": "Windows 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 (e.g. Phone Link).",
|
"Description": "Stops promoted app installs and reduces app suggestions from Microsoft Store content.",
|
||||||
"category": "Essential Tweaks",
|
"category": "Essential Tweaks",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"registry": [
|
"registry": [
|
||||||
@@ -587,15 +586,25 @@
|
|||||||
},
|
},
|
||||||
"WPFTweaksRemoveEdge": {
|
"WPFTweaksRemoveEdge": {
|
||||||
"Content": "Microsoft Edge - Remove",
|
"Content": "Microsoft Edge - Remove",
|
||||||
"Description": "Unblocks Microsoft Edge uninstaller restrictions then uses that uninstaller to remove Microsoft Edge.",
|
"Description": "Uninstalls Microsoft Edge by creating dummy MicrosoftEdge.exe file in the legacy Edge folder. This tricks Windows into unlocking the official Edge uninstaller allowing for a system-level removal.",
|
||||||
"category": "z__Advanced Tweaks - CAUTION",
|
"category": "z__Advanced Tweaks - CAUTION",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"InvokeScript": [
|
"InvokeScript": [
|
||||||
"Invoke-WinUtilRemoveEdge"
|
"
|
||||||
|
$Path = Resolve-Path -Path \"$Env:ProgramFiles (x86)\\Microsoft\\Edge\\Application\\*\\Installer\\setup.exe\" | Select-Object -Last 1
|
||||||
|
|
||||||
|
if (Test-Path $Path) {
|
||||||
|
New-Item -Path \"$Env:SystemRoot\\SystemApps\\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\\MicrosoftEdge.exe\" -Force
|
||||||
|
Start-Process -FilePath $Path -ArgumentList \"--uninstall --system-level --force-uninstall --delete-profile\" -Wait
|
||||||
|
Write-Host \"Microsoft Edge was removed\"
|
||||||
|
} else {
|
||||||
|
Write-Host \"Microsoft Edge is not installed\"
|
||||||
|
}
|
||||||
|
"
|
||||||
],
|
],
|
||||||
"UndoScript": [
|
"UndoScript": [
|
||||||
"
|
"
|
||||||
Write-Host 'Installing Microsoft Edge...'
|
Write-Host \"Installing Microsoft Edge...\"
|
||||||
winget install Microsoft.Edge --source winget
|
winget install Microsoft.Edge --source winget
|
||||||
"
|
"
|
||||||
],
|
],
|
||||||
@@ -641,7 +650,7 @@
|
|||||||
icacls $Env:OneDrive /deny \"Administrators:(D,DC)\"
|
icacls $Env:OneDrive /deny \"Administrators:(D,DC)\"
|
||||||
|
|
||||||
Write-Host \"Uninstalling OneDrive...\"
|
Write-Host \"Uninstalling OneDrive...\"
|
||||||
Start-Process 'C:\\Windows\\System32\\OneDriveSetup.exe' -ArgumentList '/uninstall' -Wait
|
Start-Process -FilePath (Join-Path $Env:SystemRoot \"System32\\OneDriveSetup.exe\") -ArgumentList '/uninstall' -Wait
|
||||||
|
|
||||||
# Some of OneDrive files use explorer, and OneDrive uses FileCoAuth
|
# Some of OneDrive files use explorer, and OneDrive uses FileCoAuth
|
||||||
Write-Host \"Removing leftover OneDrive Files...\"
|
Write-Host \"Removing leftover OneDrive Files...\"
|
||||||
@@ -649,7 +658,7 @@
|
|||||||
Stop-Process -Name FileCoAuth,Explorer
|
Stop-Process -Name FileCoAuth,Explorer
|
||||||
|
|
||||||
Remove-Item \"$Env:LocalAppData\\Microsoft\\OneDrive\" -Recurse -Force
|
Remove-Item \"$Env:LocalAppData\\Microsoft\\OneDrive\" -Recurse -Force
|
||||||
Remove-Item \"C:\\ProgramData\\Microsoft OneDrive\" -Recurse -Force
|
Remove-Item \"$Env:ProgramData\\Microsoft OneDrive\" -Recurse -Force
|
||||||
|
|
||||||
# Grant back permission to access OneDrive folder
|
# Grant back permission to access OneDrive folder
|
||||||
icacls $Env:OneDrive /grant \"Administrators:(D,DC)\"
|
icacls $Env:OneDrive /grant \"Administrators:(D,DC)\"
|
||||||
@@ -803,70 +812,6 @@
|
|||||||
],
|
],
|
||||||
"link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/display"
|
"link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/display"
|
||||||
},
|
},
|
||||||
"WPFTweaksXboxRemoval": {
|
|
||||||
"Content": "Xbox & Gaming Components - Remove",
|
|
||||||
"Description": "Removes Xbox services, the Xbox app, Game Bar, and related authentication components.",
|
|
||||||
"category": "z__Advanced Tweaks - CAUTION",
|
|
||||||
"panel": "1",
|
|
||||||
"registry": [
|
|
||||||
{
|
|
||||||
"Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\GameDVR",
|
|
||||||
"Name": "AppCaptureEnabled",
|
|
||||||
"Value": "0",
|
|
||||||
"Type": "DWord",
|
|
||||||
"OriginalValue": "1"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"appx": [
|
|
||||||
"Microsoft.XboxIdentityProvider",
|
|
||||||
"Microsoft.XboxSpeechToTextOverlay",
|
|
||||||
"Microsoft.GamingApp",
|
|
||||||
"Microsoft.Xbox.TCUI",
|
|
||||||
"Microsoft.XboxGamingOverlay"
|
|
||||||
],
|
|
||||||
"link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/xboxremoval"
|
|
||||||
},
|
|
||||||
"WPFTweaksDeBloat": {
|
|
||||||
"Content": "Unwanted Pre-Installed Apps - Remove",
|
|
||||||
"Description": "This will remove a bunch of Windows pre-installed applications which most people dont want on their system.",
|
|
||||||
"category": "Essential Tweaks",
|
|
||||||
"panel": "1",
|
|
||||||
"appx": [
|
|
||||||
"Microsoft.WindowsFeedbackHub",
|
|
||||||
"Microsoft.BingNews",
|
|
||||||
"Microsoft.BingSearch",
|
|
||||||
"Microsoft.BingWeather",
|
|
||||||
"Clipchamp.Clipchamp",
|
|
||||||
"Microsoft.Todos",
|
|
||||||
"Microsoft.PowerAutomateDesktop",
|
|
||||||
"Microsoft.MicrosoftSolitaireCollection",
|
|
||||||
"Microsoft.WindowsSoundRecorder",
|
|
||||||
"Microsoft.MicrosoftStickyNotes",
|
|
||||||
"Microsoft.Windows.DevHome",
|
|
||||||
"Microsoft.Paint",
|
|
||||||
"Microsoft.OutlookForWindows",
|
|
||||||
"Microsoft.WindowsAlarms",
|
|
||||||
"Microsoft.StartExperiencesApp",
|
|
||||||
"Microsoft.GetHelp",
|
|
||||||
"Microsoft.ZuneMusic",
|
|
||||||
"MicrosoftCorporationII.QuickAssist",
|
|
||||||
"MSTeams"
|
|
||||||
],
|
|
||||||
"InvokeScript": [
|
|
||||||
"
|
|
||||||
$TeamsPath = \"$Env:LocalAppData\\Microsoft\\Teams\\Update.exe\"
|
|
||||||
|
|
||||||
if (Test-Path $TeamsPath) {
|
|
||||||
Write-Host \"Uninstalling Teams\"
|
|
||||||
Start-Process $TeamsPath -ArgumentList -uninstall -wait
|
|
||||||
|
|
||||||
Write-Host \"Deleting Teams directory\"
|
|
||||||
Remove-Item $TeamsPath -Recurse -Force
|
|
||||||
}
|
|
||||||
"
|
|
||||||
],
|
|
||||||
"link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/debloat"
|
|
||||||
},
|
|
||||||
"WPFTweaksReservedStorage": {
|
"WPFTweaksReservedStorage": {
|
||||||
"Content": "Disable Reserved Storage",
|
"Content": "Disable Reserved Storage",
|
||||||
"Description": "Disables Windows Reserved Storage (7-10 GB held for updates/temp files). Recommended only on small drives. Re-enable before major Windows feature updates to avoid installation failures.",
|
"Description": "Disables Windows Reserved Storage (7-10 GB held for updates/temp files). Recommended only on small drives. Re-enable before major Windows feature updates to avoid installation failures.",
|
||||||
@@ -968,8 +913,12 @@
|
|||||||
New-Item \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Appx\\AppxAllUserStore\\EndOfLife\\$Sid\\$Appx\" -Force
|
New-Item \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Appx\\AppxAllUserStore\\EndOfLife\\$Sid\\$Appx\" -Force
|
||||||
|
|
||||||
Get-AppxPackage -AllUsers \"*Copilot*\" | Remove-AppxPackage -AllUsers
|
Get-AppxPackage -AllUsers \"*Copilot*\" | Remove-AppxPackage -AllUsers
|
||||||
|
winget uninstall -e --name \"Copilot\" --silent --force --accept-source-agreements 2>$null
|
||||||
Get-AppxPackage -AllUsers Microsoft.MicrosoftOfficeHub | Remove-AppxPackage -AllUsers
|
Get-AppxPackage -AllUsers Microsoft.MicrosoftOfficeHub | Remove-AppxPackage -AllUsers
|
||||||
|
|
||||||
|
if ($Appx) {
|
||||||
Remove-AppxPackage $Appx
|
Remove-AppxPackage $Appx
|
||||||
|
}
|
||||||
|
|
||||||
Set-Service -Name WSAIFabricSvc -StartupType Disabled
|
Set-Service -Name WSAIFabricSvc -StartupType Disabled
|
||||||
Disable-WindowsOptionalFeature -FeatureName Recall -Online -NoRestart
|
Disable-WindowsOptionalFeature -FeatureName Recall -Online -NoRestart
|
||||||
@@ -995,6 +944,22 @@
|
|||||||
],
|
],
|
||||||
"link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/wpbt"
|
"link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/wpbt"
|
||||||
},
|
},
|
||||||
|
"WPFTweaksPreventDeviceMetadataFromNetwork": {
|
||||||
|
"Content": "Prevent Device Companion Apps",
|
||||||
|
"Description": "Prevents additional software from being installed when plugging in devices (e.g. Ads when plugging in a monitor). Poses potential security risk.",
|
||||||
|
"category": "Essential Tweaks",
|
||||||
|
"panel": "1",
|
||||||
|
"registry": [
|
||||||
|
{
|
||||||
|
"Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Device Metadata",
|
||||||
|
"Name": "PreventDeviceMetadataFromNetwork",
|
||||||
|
"Value": "1",
|
||||||
|
"Type": "DWord",
|
||||||
|
"OriginalValue": "<RemoveEntry>"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/preventdevicemetadatafromnetwork"
|
||||||
|
},
|
||||||
"WPFTweaksRazerBlock": {
|
"WPFTweaksRazerBlock": {
|
||||||
"Content": "Razer Software Auto-Install - Disable",
|
"Content": "Razer Software Auto-Install - Disable",
|
||||||
"Description": "Blocks ALL Razer Software installations. The hardware works fine without any software.",
|
"Description": "Blocks ALL Razer Software installations. The hardware works fine without any software.",
|
||||||
@@ -1018,7 +983,7 @@
|
|||||||
],
|
],
|
||||||
"InvokeScript": [
|
"InvokeScript": [
|
||||||
"
|
"
|
||||||
$RazerPath = \"C:\\Windows\\Installer\\Razer\"
|
$RazerPath = \"$Env:SystemRoot\\Installer\\Razer\"
|
||||||
|
|
||||||
if (Test-Path $RazerPath) {
|
if (Test-Path $RazerPath) {
|
||||||
Remove-Item $RazerPath\\* -Recurse -Force
|
Remove-Item $RazerPath\\* -Recurse -Force
|
||||||
@@ -1031,7 +996,7 @@
|
|||||||
],
|
],
|
||||||
"UndoScript": [
|
"UndoScript": [
|
||||||
"
|
"
|
||||||
icacls \"C:\\Windows\\Installer\\Razer\" /remove:d Everyone
|
icacls \"$Env:SystemRoot\\Installer\\Razer\" /remove:d Everyone
|
||||||
"
|
"
|
||||||
],
|
],
|
||||||
"link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/razerblock"
|
"link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/razerblock"
|
||||||
@@ -1513,10 +1478,10 @@
|
|||||||
{
|
{
|
||||||
"Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\GraphicsDrivers",
|
"Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\GraphicsDrivers",
|
||||||
"Name": "DisableOverlays",
|
"Name": "DisableOverlays",
|
||||||
"Value": "1",
|
"Value": "0",
|
||||||
"Type": "DWord",
|
"Type": "DWord",
|
||||||
"OriginalValue": "0",
|
"OriginalValue": "1",
|
||||||
"DefaultState": "false"
|
"DefaultState": "true"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"link": "https://winutil.christitus.com/dev/tweaks/customize-preferences/multiplaneoverlay"
|
"link": "https://winutil.christitus.com/dev/tweaks/customize-preferences/multiplaneoverlay"
|
||||||
@@ -1581,6 +1546,24 @@
|
|||||||
],
|
],
|
||||||
"link": "https://winutil.christitus.com/dev/tweaks/customize-preferences/numlock"
|
"link": "https://winutil.christitus.com/dev/tweaks/customize-preferences/numlock"
|
||||||
},
|
},
|
||||||
|
"WPFToggleWindowSnapping": {
|
||||||
|
"Content": "Window Snapping",
|
||||||
|
"Description": "Toggles the window snapping feature when dragging windows.",
|
||||||
|
"category": "Customize Preferences",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Toggle",
|
||||||
|
"registry": [
|
||||||
|
{
|
||||||
|
"Path": "HKCU:\\Control Panel\\Desktop",
|
||||||
|
"Name": "WindowArrangementActive",
|
||||||
|
"Value": "1",
|
||||||
|
"Type": "String",
|
||||||
|
"OriginalValue": "0",
|
||||||
|
"DefaultState": "true"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"link": "https://winutil.christitus.com/dev/tweaks/customize-preferences/windowsnapping"
|
||||||
|
},
|
||||||
"WPFToggleStandbyFix": {
|
"WPFToggleStandbyFix": {
|
||||||
"Content": "S0 Sleep Network Connectivity",
|
"Content": "S0 Sleep Network Connectivity",
|
||||||
"Description": "Toggles network connectivity during S0 Sleep which is low power idle in modern laptops.",
|
"Description": "Toggles network connectivity during S0 Sleep which is low power idle in modern laptops.",
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 194 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 6.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 77 KiB |
+88
-119
@@ -2,152 +2,121 @@
|
|||||||
toc: true
|
toc: true
|
||||||
---
|
---
|
||||||
|
|
||||||
## Contributing Code
|
# How to Contribute?
|
||||||
|
|
||||||
### Before You Start
|
## Testing
|
||||||
|
|
||||||
- Keep each pull request focused on a single feature or fix.
|
* Test the latest changes to WinUtil by running the pre-release and reporting issues you are encountering to help us continually improve WinUtil!
|
||||||
- Avoid unnecessary formatting changes or large unrelated edits.
|
|
||||||
- Document what changed and why in your PR description.
|
|
||||||
|
|
||||||
---
|
#### Run the latest pre-release
|
||||||
|
|
||||||
## Basic Git Workflow
|
```ps1
|
||||||
|
irm https://christitus.com/windev | iex
|
||||||
### 1. Fork the Repository
|
|
||||||
|
|
||||||
Go to the ChrisTitusTech/winutil repository on GitHub and click the Fork button in the top right corner.
|
|
||||||
|
|
||||||
<img width="171" height="50" alt="{650A4723-F38A-44A4-9820-D232BC87C8A0}" src="https://github.com/user-attachments/assets/a214f27c-2fee-444a-920f-d87b14f5896f" />
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### 2. Clone Your Fork
|
|
||||||
|
|
||||||
```bash
|
|
||||||
git clone https://github.com/YOUR_USERNAME/winutil.git
|
|
||||||
cd winutil
|
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
> [!IMPORTANT]
|
||||||
|
> **Keep in mind** That this is a pre-release and should be treated as such. It exists for developers to test the utility and report or fix bugs before they get added to the stable release. Don't use it in production!
|
||||||
|
|
||||||
### 3. Create a Branch
|
## Issues
|
||||||
|
|
||||||
Never work directly on `main`.
|
* If you encounter any challenges or problems with the script, I kindly request that you submit them via the "Issues" tab on the GitHub repository. By filling out the provided template, you can provide specific details about the issue, allowing me (and others in the community) to promptly address any bugs or consider feature requests.
|
||||||
|
|
||||||
Create a branch related to your change:
|
## Contribute Code
|
||||||
|
|
||||||
```bash
|
* Pull requests are now handled directly on the **MAIN branch**. This was done since we can now select specific releases to launch via releases in GitHub.
|
||||||
git checkout -b feature-name
|
|
||||||
|
* If you're doing code changes, then you can submit a PR to the `main` branch.
|
||||||
|
|
||||||
|
> [!IMPORTANT]
|
||||||
|
> Do not use a code formatter, make massive amounts of line changes, or make multiple feature changes. EACH FEATURE CHANGE SHOULD BE IT'S OWN PULL REQUEST!
|
||||||
|
|
||||||
|
> [!IMPORTANT]
|
||||||
|
> Do not open a pull request that adds support for other languages to WinUtil for now, until we decide how we want to move forward with language support.
|
||||||
|
|
||||||
|
* When creating pull requests, it is essential to thoroughly document all changes made. This includes, but is not limited to, documenting any additions made to the `tweaks` section and corresponding `undo tweak`, so users are able to remove the newly added tweaks if necessary, and comprehensive documentation is required for all code changes. Document your changes and briefly explain why you made your changes in your Pull Request Description. Failure to adhere to this format may result in the denial of the pull request. Additionally, any code lacking sufficient documentation may also be denied.
|
||||||
|
|
||||||
|
* By following these guidelines, we can maintain a high standard of quality and ensure that the codebase remains organized and well-documented.
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
>
|
||||||
|
> When creating a function, please include "WPF" or "WinUtil" in the file name so it can be loaded into the runspace.
|
||||||
|
|
||||||
|
## Walk through
|
||||||
|
|
||||||
|
* This is a guide for beginners. If you are still having issues, look at the following official GitHub documentation:
|
||||||
|
* [Commit through WEB](https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/about-commits)
|
||||||
|
* [Commit through GitHub Desktop](https://docs.github.com/en/desktop/making-changes-in-a-branch/committing-and-reviewing-changes-to-your-project-in-github-desktop#about-commits)
|
||||||
|
* [Create a Pull Request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request)
|
||||||
|
|
||||||
|
|
||||||
|
### Overview
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
%%{init: {"flowchart": {"curve": "cardinal"}} }%%
|
||||||
|
graph TD
|
||||||
|
A[Fork Project] --> B[Clone Repository];
|
||||||
|
B --> C[Create New Branch];
|
||||||
|
C --> D[Make Changes];
|
||||||
|
D --> G[Test Changes];
|
||||||
|
G --> H{Tests Passed?};
|
||||||
|
H -->|Yes| E[Commit Changes];
|
||||||
|
H -->|No| J[Fix Issues];
|
||||||
|
J --> G;
|
||||||
|
E --> F[Push Branch];
|
||||||
|
F --> K[Create Pull Request];
|
||||||
|
K --> L[Fill out PR template];
|
||||||
|
classDef default stroke:#333,stroke-width:4px,font-size:12pt;
|
||||||
```
|
```
|
||||||
|
|
||||||
Example:
|
> [!NOTE]
|
||||||
|
>
|
||||||
|
> This is a diagram to guide you through the process. It may vary depending on the type of change you're making.
|
||||||
|
|
||||||
```bash
|
### Fork the Repo
|
||||||
git checkout -b add-firefox-tweak
|
* Fork the WinUtil Repository [here](https://github.com/ChrisTitusTech/winutil) to create a copy that will be available in your repository list.
|
||||||
```
|
|
||||||
|
|
||||||
---
|
{{< image src="images/Fork-Button" alt="Fork Image" >}}
|
||||||
|
|
||||||
### 4. Edit the Code
|
### Clone the Fork
|
||||||
|
> [!TIP]
|
||||||
|
>
|
||||||
|
> While you can make your changes directly through the Web, we recommend cloning the repo to your device using the application GitHub Desktop (available in WinUtil) to test your fork easily.
|
||||||
|
|
||||||
Open the project in your preferred text editor and make your changes.
|
* Install GitHub Desktop if it is not already installed.
|
||||||
|
* Log in using the same GitHub account you used to fork WinUtil.
|
||||||
|
* Choose the fork under "Your Repositories" and press "clone {repo name}"
|
||||||
|
* Create a new branch and name it something relatable to your changes.
|
||||||
|
|
||||||
Keep changes small and focused.
|
* Now you can modify WinUtil to your liking using your preferred text editor.
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### 5. Test Your Changes
|
### Testing your changes
|
||||||
|
|
||||||
Open PowerShell as Administrator.
|
* To test to see if your changes work as intended, run the following commands in a PowerShell terminal as admin:
|
||||||
|
|
||||||
Go to the project folder:
|
* Change the directory where you are running the commands to the forked project.
|
||||||
|
* `cd {path to the folder with the compile.ps1}`
|
||||||
|
* Run the following command to compile and run WinUtil:
|
||||||
|
* `.\Compile.ps1 -run`
|
||||||
|
|
||||||
```powershell
|
{{< image src="images/Complie" alt="Compile" >}}
|
||||||
cd path\to\winutil
|
|
||||||
```
|
|
||||||
|
|
||||||
Run:
|
* After seeing that your changes work properly, feel free to commit the changes to the repository and make a PR. For help on that, follow the documentation below.
|
||||||
|
|
||||||
```powershell
|
### Committing the changes
|
||||||
.\Compile.ps1 -Run
|
* Before committing your changes, please discard changes made to the `winutil.ps1` file, like the following:
|
||||||
```
|
|
||||||
|
|
||||||
Verify:
|
{{< image src="images/Discard-GHD" alt="Push Commit Image" >}}
|
||||||
|
|
||||||
- WinUtil launches correctly
|
* Now, commit your changes once you are happy with the result.
|
||||||
- Your feature works
|
|
||||||
- Nothing else breaks
|
|
||||||
|
|
||||||
If something fails, fix it before committing.
|
{{< image src="images/Commit-GHD" alt="Commit Image" >}}
|
||||||
|
|
||||||
---
|
* Push the changes to upload them to your fork on github.com.
|
||||||
|
|
||||||
### 6. Review Your Changes
|
{{< image src="images/Push-Commit" alt="Push Commit Image" >}}
|
||||||
|
|
||||||
Check what changed:
|
### Making a PR
|
||||||
|
* To make a PR on your repo under a new branch linking to the main branch, a button will show and say Preview and Create pull request. Click that button and fill in all the information that is provided on the template. Once all the information is filled in correctly, check your PR to make sure there is no WinUtil.ps1 file attached to the PR. Once everything is good, make the PR and wait for Chris (the maintainer) to accept or deny your PR. Once it is accepted by Chris, you will be able to see your changes in the "/windev" build.
|
||||||
```bash
|
* If you do not see your feature in the main "/win" build, that is fine. All new changes go into the /windev build to make sure everything is working OK before going fully public.
|
||||||
git status
|
* Congratulations! You just submitted your first PR. Thank you so much for contributing to WinUtil.
|
||||||
```
|
|
||||||
|
|
||||||
Review the diff:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
git diff
|
|
||||||
```
|
|
||||||
|
|
||||||
Make sure you did not accidentally modify unrelated files.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### 7. Commit Your Changes
|
|
||||||
|
|
||||||
Stage files:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
git add .
|
|
||||||
```
|
|
||||||
|
|
||||||
Commit them:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
git commit -m "Add feature description"
|
|
||||||
```
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
git commit -m "Add Firefox package tweak"
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### 8. Push Your Branch
|
|
||||||
|
|
||||||
```bash
|
|
||||||
git push origin branch-name
|
|
||||||
```
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
git push origin add-firefox-tweak
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### 9. Open a Pull Request
|
|
||||||
|
|
||||||
Go to your fork on GitHub.
|
|
||||||
|
|
||||||
GitHub will show a button to create a pull request.
|
|
||||||
<img width="1009" height="71" alt="{C8C6A3CC-79D4-44FD-A54C-4C5717F12730}" src="https://github.com/user-attachments/assets/0419d193-d4e7-47c0-87cf-b986742201a0" />
|
|
||||||
|
|
||||||
Before submitting:
|
|
||||||
|
|
||||||
- Explain what changed
|
|
||||||
- Explain why you changed it
|
|
||||||
- Make sure unrelated files are not included
|
|
||||||
|
|
||||||
Once submitted, maintainers will review your PR.
|
|
||||||
|
|||||||
@@ -30,3 +30,18 @@ In these cases, the power plan may fail to apply, This is expected behavior on u
|
|||||||
Revert start menu tweak stops working starting with **Windows 11 update KB5089573** (released in May 2026).
|
Revert start menu tweak stops working starting with **Windows 11 update KB5089573** (released in May 2026).
|
||||||
|
|
||||||
In this update, Microsoft completely removed the old Start Menu code from Windows, so we aren't able to bring it back.
|
In this update, Microsoft completely removed the old Start Menu code from Windows, so we aren't able to bring it back.
|
||||||
|
|
||||||
|
### Issues with PowerShell 7 or Class not registered Error
|
||||||
|
Installing PowerShell 7 from the Microsoft Store (MSIX package) is known to cause issues with DISM cmdlets such as `Get-WindowsOptionalFeature` and `Enable-WindowsOptionalFeature`, resulting in a `Class not registered` COM error.
|
||||||
|
|
||||||
|
This might also make it so running the "pre-installed app removal" will take a indefinite amount of time
|
||||||
|
|
||||||
|
Instead, install PowerShell 7 using one of the following methods:
|
||||||
|
|
||||||
|
**winget (recommended):**
|
||||||
|
```powershell
|
||||||
|
winget install --id Microsoft.PowerShell --source winget --installer-type wix
|
||||||
|
```
|
||||||
|
**Direct MSI from GitHub Releases:** Download the `.msi` installer from the [PowerShell GitHub Releases](https://github.com/PowerShell/PowerShell/releases) page.
|
||||||
|
|
||||||
|
For more details see https://github.com/PowerShell/PowerShell/issues/13866
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ toc: false
|
|||||||
---
|
---
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
> This section contains technical documentation for developers. For end-user documentation, see the [User Guide](../userguide/).
|
> This section contains code-only references. For end-user documentation, see the [User Guide](../userguide/).
|
||||||
|
|
||||||
## Architecture
|
## Architecture
|
||||||
|
|
||||||
|
|||||||
@@ -578,7 +578,9 @@ Tests are in `/pester/`:
|
|||||||
|
|
||||||
Run tests:
|
Run tests:
|
||||||
```powershell
|
```powershell
|
||||||
Invoke-Pester
|
Install-Module -Name Pester -RequiredVersion 5.8.0 -Scope CurrentUser -Force -SkipPublisherCheck
|
||||||
|
Import-Module Pester -RequiredVersion 5.8.0 -Force
|
||||||
|
Invoke-Pester -Path 'pester/*.Tests.ps1' -Output Detailed -CI
|
||||||
```
|
```
|
||||||
|
|
||||||
## Build Process
|
## Build Process
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Computer Management"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/feature.json",linenos=inline,linenostart=193}
|
```json {filename="config/feature.json",linenos=inline,linenostart=182}
|
||||||
"WPFPanelComputer": {
|
"WPFPanelComputer": {
|
||||||
"Content": "Computer Management",
|
"Content": "Computer Management",
|
||||||
"category": "Legacy Windows Panels",
|
"category": "Legacy Windows Panels",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Control Panel"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/feature.json",linenos=inline,linenostart=182}
|
```json {filename="config/feature.json",linenos=inline,linenostart=193}
|
||||||
"WPFPanelControl": {
|
"WPFPanelControl": {
|
||||||
"Content": "Control Panel",
|
"Content": "Control Panel",
|
||||||
"category": "Legacy Windows Panels",
|
"category": "Legacy Windows Panels",
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
title: "Windows Defender Firewall"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
```json {filename="config/feature.json",linenos=inline,linenostart=314}
|
||||||
|
"WPFPanelFirewall": {
|
||||||
|
"Content": "Windows Defender Firewall",
|
||||||
|
"category": "Legacy Windows Panels",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"InvokeScript": [
|
||||||
|
"firewall.cpl"
|
||||||
|
],
|
||||||
|
```
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
title: "Mouse Properties"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
```json {filename="config/feature.json",linenos=inline,linenostart=204}
|
||||||
|
"WPFPanelMouse": {
|
||||||
|
"Content": "Mouse Properties",
|
||||||
|
"category": "Legacy Windows Panels",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"InvokeScript": [
|
||||||
|
"main.cpl"
|
||||||
|
],
|
||||||
|
```
|
||||||
@@ -3,7 +3,7 @@ title: "Network Connections"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/feature.json",linenos=inline,linenostart=204}
|
```json {filename="config/feature.json",linenos=inline,linenostart=215}
|
||||||
"WPFPanelNetwork": {
|
"WPFPanelNetwork": {
|
||||||
"Content": "Network Connections",
|
"Content": "Network Connections",
|
||||||
"category": "Legacy Windows Panels",
|
"category": "Legacy Windows Panels",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Power Panel"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/feature.json",linenos=inline,linenostart=215}
|
```json {filename="config/feature.json",linenos=inline,linenostart=226}
|
||||||
"WPFPanelPower": {
|
"WPFPanelPower": {
|
||||||
"Content": "Power Panel",
|
"Content": "Power Panel",
|
||||||
"category": "Legacy Windows Panels",
|
"category": "Legacy Windows Panels",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Printer Panel"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/feature.json",linenos=inline,linenostart=226}
|
```json {filename="config/feature.json",linenos=inline,linenostart=237}
|
||||||
"WPFPanelPrinter": {
|
"WPFPanelPrinter": {
|
||||||
"Content": "Printer Panel",
|
"Content": "Printer Panel",
|
||||||
"category": "Legacy Windows Panels",
|
"category": "Legacy Windows Panels",
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
title: "Programs and Features"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
```json {filename="config/feature.json",linenos=inline,linenostart=248}
|
||||||
|
"WPFPanelPrograms": {
|
||||||
|
"Content": "Programs and Features",
|
||||||
|
"category": "Legacy Windows Panels",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"InvokeScript": [
|
||||||
|
"appwiz.cpl"
|
||||||
|
],
|
||||||
|
```
|
||||||
@@ -3,7 +3,7 @@ title: "Region"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/feature.json",linenos=inline,linenostart=237}
|
```json {filename="config/feature.json",linenos=inline,linenostart=259}
|
||||||
"WPFPanelRegion": {
|
"WPFPanelRegion": {
|
||||||
"Content": "Region",
|
"Content": "Region",
|
||||||
"category": "Legacy Windows Panels",
|
"category": "Legacy Windows Panels",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Windows Restore"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/feature.json",linenos=inline,linenostart=248}
|
```json {filename="config/feature.json",linenos=inline,linenostart=325}
|
||||||
"WPFPanelRestore": {
|
"WPFPanelRestore": {
|
||||||
"Content": "Windows Restore",
|
"Content": "Windows Restore",
|
||||||
"category": "Legacy Windows Panels",
|
"category": "Legacy Windows Panels",
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
title: "Security and Maintenance"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
```json {filename="config/feature.json",linenos=inline,linenostart=270}
|
||||||
|
"WPFPanelSecurity": {
|
||||||
|
"Content": "Security and Maintenance",
|
||||||
|
"category": "Legacy Windows Panels",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"InvokeScript": [
|
||||||
|
"wscui.cpl"
|
||||||
|
],
|
||||||
|
```
|
||||||
@@ -3,7 +3,7 @@ title: "Sound Settings"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/feature.json",linenos=inline,linenostart=259}
|
```json {filename="config/feature.json",linenos=inline,linenostart=281}
|
||||||
"WPFPanelSound": {
|
"WPFPanelSound": {
|
||||||
"Content": "Sound Settings",
|
"Content": "Sound Settings",
|
||||||
"category": "Legacy Windows Panels",
|
"category": "Legacy Windows Panels",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "System Properties"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/feature.json",linenos=inline,linenostart=270}
|
```json {filename="config/feature.json",linenos=inline,linenostart=292}
|
||||||
"WPFPanelSystem": {
|
"WPFPanelSystem": {
|
||||||
"Content": "System Properties",
|
"Content": "System Properties",
|
||||||
"category": "Legacy Windows Panels",
|
"category": "Legacy Windows Panels",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Time and Date"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/feature.json",linenos=inline,linenostart=281}
|
```json {filename="config/feature.json",linenos=inline,linenostart=303}
|
||||||
"WPFPanelTimedate": {
|
"WPFPanelTimedate": {
|
||||||
"Content": "Time and Date",
|
"Content": "Time and Date",
|
||||||
"category": "Legacy Windows Panels",
|
"category": "Legacy Windows Panels",
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ function Invoke-WinUtilInstallPSProfile {
|
|||||||
if (-not (Get-Command pwsh)) {
|
if (-not (Get-Command pwsh)) {
|
||||||
Write-Host "PowerShell 7 not found. Installing..."
|
Write-Host "PowerShell 7 not found. Installing..."
|
||||||
Install-WinUtilWinget
|
Install-WinUtilWinget
|
||||||
winget install Microsoft.PowerShell --source winget --silent
|
winget install Microsoft.PowerShell --source winget --installer-type wix --silent
|
||||||
}
|
}
|
||||||
|
|
||||||
wt new-tab pwsh -NoExit -Command "irm https://github.com/ChrisTitusTech/powershell-profile/raw/main/setup.ps1 | iex"
|
wt new-tab pwsh -NoExit -Command "irm https://github.com/ChrisTitusTech/powershell-profile/raw/main/setup.ps1 | iex"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "System Tray Battery Percentage"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1303}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1268}
|
||||||
"WPFToggleBatteryPercentage": {
|
"WPFToggleBatteryPercentage": {
|
||||||
"Content": "System Tray Battery Percentage",
|
"Content": "System Tray Battery Percentage",
|
||||||
"Description": "Shows numeric battery percentage next to the battery icon in the system tray.",
|
"Description": "Shows numeric battery percentage next to the battery icon in the system tray.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Start Menu Bing Search"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1638}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1621}
|
||||||
"WPFToggleBingSearch": {
|
"WPFToggleBingSearch": {
|
||||||
"Content": "Start Menu Bing Search",
|
"Content": "Start Menu Bing Search",
|
||||||
"Description": "Toggles Bing web search results in Windows Search.",
|
"Description": "Toggles Bing web search results in Windows Search.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Dark Theme for Windows"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1321}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1286}
|
||||||
"WPFToggleDarkMode": {
|
"WPFToggleDarkMode": {
|
||||||
"Content": "Dark Theme for Windows",
|
"Content": "Dark Theme for Windows",
|
||||||
"Description": "Dark Mode for the system and applications.",
|
"Description": "Dark Mode for the system and applications.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "BSoD Verbose Mode"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1277}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1242}
|
||||||
"WPFToggleDetailedBSoD": {
|
"WPFToggleDetailedBSoD": {
|
||||||
"Content": "BSoD Verbose Mode",
|
"Content": "BSoD Verbose Mode",
|
||||||
"Description": "Gives more information when you blue screen.",
|
"Description": "Gives more information when you blue screen.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Lock Screen - Disable"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1674}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1657}
|
||||||
"WPFTweaksDisableLockscreen": {
|
"WPFTweaksDisableLockscreen": {
|
||||||
"Content": "Lock Screen - Disable",
|
"Content": "Lock Screen - Disable",
|
||||||
"Description": "Skips the lock screen entirely and goes directly to the sign-in screen on boot and wake.",
|
"Description": "Skips the lock screen entirely and goes directly to the sign-in screen on boot and wake.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Game Mode"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1817}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1800}
|
||||||
"WPFToggleGameMode": {
|
"WPFToggleGameMode": {
|
||||||
"Content": "Game Mode",
|
"Content": "Game Mode",
|
||||||
"Description": "Toggles Windows prioritizes gaming performance by allocating system resources to games.",
|
"Description": "Toggles Windows prioritizes gaming performance by allocating system resources to games.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "File Explorer Hidden Files"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1391}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1356}
|
||||||
"WPFToggleHiddenFiles": {
|
"WPFToggleHiddenFiles": {
|
||||||
"Content": "File Explorer Hidden Files",
|
"Content": "File Explorer Hidden Files",
|
||||||
"Description": "Reveals hidden files in Explorer.",
|
"Description": "Reveals hidden files in Explorer.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Settings Home Page"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1620}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1603}
|
||||||
"WPFToggleHideSettingsHome": {
|
"WPFToggleHideSettingsHome": {
|
||||||
"Content": "Settings Home Page",
|
"Content": "Settings Home Page",
|
||||||
"Description": "Toggles the Home Page in the Windows Settings app.",
|
"Description": "Toggles the Home Page in the Windows Settings app.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Logon Screen Acrylic Blur"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1656}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1639}
|
||||||
"WPFToggleLoginBlur": {
|
"WPFToggleLoginBlur": {
|
||||||
"Content": "Logon Screen Acrylic Blur",
|
"Content": "Logon Screen Acrylic Blur",
|
||||||
"Description": "Toggles the acrylic blur effect on login screen background.",
|
"Description": "Toggles the acrylic blur effect on login screen background.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Enable Long Paths"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1843}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1826}
|
||||||
"WPFToggleLongPaths": {
|
"WPFToggleLongPaths": {
|
||||||
"Content": "Enable Long Paths",
|
"Content": "Enable Long Paths",
|
||||||
"Description": "Toggles support for file paths longer than 260 characters in Explorer.",
|
"Description": "Toggles support for file paths longer than 260 characters in Explorer.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Mouse Acceleration"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1524}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1489}
|
||||||
"WPFToggleMouseAcceleration": {
|
"WPFToggleMouseAcceleration": {
|
||||||
"Content": "Mouse Acceleration",
|
"Content": "Mouse Acceleration",
|
||||||
"Description": "Makes it so Cursor movement is affected by the speed of your physical mouse movements.",
|
"Description": "Makes it so Cursor movement is affected by the speed of your physical mouse movements.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Multiplane Overlay"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1498}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1463}
|
||||||
"WPFToggleMultiplaneOverlay": {
|
"WPFToggleMultiplaneOverlay": {
|
||||||
"Content": "Multiplane Overlay",
|
"Content": "Multiplane Overlay",
|
||||||
"Description": "Multiplane Overlay compose multiple image layers, which can sometimes cause issues with graphics cards.",
|
"Description": "Multiplane Overlay compose multiple image layers, which can sometimes cause issues with graphics cards.",
|
||||||
@@ -22,10 +22,10 @@ description: ""
|
|||||||
{
|
{
|
||||||
"Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\GraphicsDrivers",
|
"Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\GraphicsDrivers",
|
||||||
"Name": "DisableOverlays",
|
"Name": "DisableOverlays",
|
||||||
"Value": "1",
|
"Value": "0",
|
||||||
"Type": "DWord",
|
"Type": "DWord",
|
||||||
"OriginalValue": "0",
|
"OriginalValue": "1",
|
||||||
"DefaultState": "false"
|
"DefaultState": "true"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Microsoft Outlook New Version"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1437}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1402}
|
||||||
"WPFToggleNewOutlook": {
|
"WPFToggleNewOutlook": {
|
||||||
"Content": "Microsoft Outlook New Version",
|
"Content": "Microsoft Outlook New Version",
|
||||||
"Description": "This will ensures the classic Outlook application is used.",
|
"Description": "This will ensures the classic Outlook application is used.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Num Lock on Startup"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1558}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1523}
|
||||||
"WPFToggleNumLock": {
|
"WPFToggleNumLock": {
|
||||||
"Content": "Num Lock on Startup",
|
"Content": "Num Lock on Startup",
|
||||||
"Description": "Toggle the Num Lock key state when your computer starts.",
|
"Description": "Toggle the Num Lock key state when your computer starts.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "S3 Sleep"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1602}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1585}
|
||||||
"WPFToggleS3Sleep": {
|
"WPFToggleS3Sleep": {
|
||||||
"Content": "S3 Sleep",
|
"Content": "S3 Sleep",
|
||||||
"Description": "Toggles between Modern Standby and S3 Sleep, which cuts off power to the CPU while continuing to refresh the memory.",
|
"Description": "Toggles between Modern Standby and S3 Sleep, which cuts off power to the CPU while continuing to refresh the memory.",
|
||||||
|
|||||||
@@ -3,6 +3,25 @@ title: "Scrollbars Always Visible"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1444}
|
||||||
|
"WPFToggleScrollbars": {
|
||||||
|
"Content": "Scrollbars Always Visible",
|
||||||
|
"Description": "If enabled, scrollbars will always be visible. If disabled, Windows will automatically hide scrollbars when not in use.",
|
||||||
|
"category": "Customize Preferences",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Toggle",
|
||||||
|
"registry": [
|
||||||
|
{
|
||||||
|
"Path": "HKCU:\\Control Panel\\Accessibility",
|
||||||
|
"Name": "DynamicScrollbars",
|
||||||
|
"Value": "0",
|
||||||
|
"Type": "DWord",
|
||||||
|
"OriginalValue": "1",
|
||||||
|
"DefaultState": "false",
|
||||||
|
"link": "https://winutil.christitus.com/dev/tweaks/customize-preferences/scrollbars"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
```
|
||||||
|
|
||||||
## Registry Changes
|
## Registry Changes
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "File Explorer File Extensions"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1363}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1328}
|
||||||
"WPFToggleShowExt": {
|
"WPFToggleShowExt": {
|
||||||
"Content": "File Explorer File Extensions",
|
"Content": "File Explorer File Extensions",
|
||||||
"Description": "Shows .file extensions in Explorer (.exe, .png, etc.)",
|
"Description": "Shows .file extensions in Explorer (.exe, .png, etc.)",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "S0 Sleep Network Connectivity"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1584}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1567}
|
||||||
"WPFToggleStandbyFix": {
|
"WPFToggleStandbyFix": {
|
||||||
"Content": "S0 Sleep Network Connectivity",
|
"Content": "S0 Sleep Network Connectivity",
|
||||||
"Description": "Toggles network connectivity during S0 Sleep which is low power idle in modern laptops.",
|
"Description": "Toggles network connectivity during S0 Sleep which is low power idle in modern laptops.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Start Menu Recommendations"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1691}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1674}
|
||||||
"WPFToggleStartMenuRecommendations": {
|
"WPFToggleStartMenuRecommendations": {
|
||||||
"Content": "Start Menu Recommendations",
|
"Content": "Start Menu Recommendations",
|
||||||
"Description": "Toggles the recommendations section in the Start Menu. WARNING: This will also disable Windows Spotlight on your Lock Screen as a side effect.",
|
"Description": "Toggles the recommendations section in the Start Menu. WARNING: This will also disable Windows Spotlight on your Lock Screen as a side effect.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Sticky Keys"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1735}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1718}
|
||||||
"WPFToggleStickyKeys": {
|
"WPFToggleStickyKeys": {
|
||||||
"Content": "Sticky Keys",
|
"Content": "Sticky Keys",
|
||||||
"Description": "Toggles the Sticky Keys, which activate when clicking shift rapidly.",
|
"Description": "Toggles the Sticky Keys, which activate when clicking shift rapidly.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Taskbar Task View Icon"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1799}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1782}
|
||||||
"WPFToggleTaskView": {
|
"WPFToggleTaskView": {
|
||||||
"Content": "Taskbar Task View Icon",
|
"Content": "Taskbar Task View Icon",
|
||||||
"Description": "Toggles the Task View Button in the Taskbar.",
|
"Description": "Toggles the Task View Button in the Taskbar.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Taskbar Centered Icons"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1753}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1736}
|
||||||
"WPFToggleTaskbarAlignment": {
|
"WPFToggleTaskbarAlignment": {
|
||||||
"Content": "Taskbar Centered Icons",
|
"Content": "Taskbar Centered Icons",
|
||||||
"Description": "Toggles the Taskbar alignment either to the left or center.",
|
"Description": "Toggles the Taskbar alignment either to the left or center.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Taskbar Search Icon"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1781}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1764}
|
||||||
"WPFToggleTaskbarSearch": {
|
"WPFToggleTaskbarSearch": {
|
||||||
"Content": "Taskbar Search Icon",
|
"Content": "Taskbar Search Icon",
|
||||||
"Description": "Toggles the Search Button on the Taskbar.",
|
"Description": "Toggles the Search Button on the Taskbar.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Logon Verbose Mode"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1419}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1384}
|
||||||
"WPFToggleVerboseLogon": {
|
"WPFToggleVerboseLogon": {
|
||||||
"Content": "Logon Verbose Mode",
|
"Content": "Logon Verbose Mode",
|
||||||
"Description": "Show detailed messages during startup/shutdown.",
|
"Description": "Show detailed messages during startup/shutdown.",
|
||||||
|
|||||||
@@ -0,0 +1,29 @@
|
|||||||
|
---
|
||||||
|
title: "Window Snapping"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1549}
|
||||||
|
"WPFToggleWindowSnapping": {
|
||||||
|
"Content": "Window Snapping",
|
||||||
|
"Description": "Toggles the window snapping feature when dragging windows.",
|
||||||
|
"category": "Customize Preferences",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Toggle",
|
||||||
|
"registry": [
|
||||||
|
{
|
||||||
|
"Path": "HKCU:\\Control Panel\\Desktop",
|
||||||
|
"Name": "WindowArrangementActive",
|
||||||
|
"Value": "1",
|
||||||
|
"Type": "String",
|
||||||
|
"OriginalValue": "0",
|
||||||
|
"DefaultState": "true"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
```
|
||||||
|
|
||||||
|
## Registry Changes
|
||||||
|
|
||||||
|
Applications and System Components store and retrieve configuration data to modify Windows settings, so we can use the registry to change many settings in one place.
|
||||||
|
|
||||||
|
You can find information about the registry on [Wikipedia](https://en.wikipedia.org/wiki/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry).
|
||||||
@@ -3,10 +3,10 @@ title: "ConsumerFeatures - Disable"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=431}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=430}
|
||||||
"WPFTweaksConsumerFeatures": {
|
"WPFTweaksConsumerFeatures": {
|
||||||
"Content": "ConsumerFeatures - Disable",
|
"Content": "ConsumerFeatures - Disable",
|
||||||
"Description": "Windows 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 (e.g. Phone Link).",
|
"Description": "Stops promoted app installs and reduces app suggestions from Microsoft Store content.",
|
||||||
"category": "Essential Tweaks",
|
"category": "Essential Tweaks",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"registry": [
|
"registry": [
|
||||||
|
|||||||
@@ -1,46 +0,0 @@
|
|||||||
---
|
|
||||||
title: "Unwanted Pre-Installed Apps - Remove"
|
|
||||||
description: ""
|
|
||||||
---
|
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=829}
|
|
||||||
"WPFTweaksDeBloat": {
|
|
||||||
"Content": "Unwanted Pre-Installed Apps - Remove",
|
|
||||||
"Description": "This will remove a bunch of Windows pre-installed applications which most people dont want on their system.",
|
|
||||||
"category": "Essential Tweaks",
|
|
||||||
"panel": "1",
|
|
||||||
"appx": [
|
|
||||||
"Microsoft.WindowsFeedbackHub",
|
|
||||||
"Microsoft.BingNews",
|
|
||||||
"Microsoft.BingSearch",
|
|
||||||
"Microsoft.BingWeather",
|
|
||||||
"Clipchamp.Clipchamp",
|
|
||||||
"Microsoft.Todos",
|
|
||||||
"Microsoft.PowerAutomateDesktop",
|
|
||||||
"Microsoft.MicrosoftSolitaireCollection",
|
|
||||||
"Microsoft.WindowsSoundRecorder",
|
|
||||||
"Microsoft.MicrosoftStickyNotes",
|
|
||||||
"Microsoft.Windows.DevHome",
|
|
||||||
"Microsoft.Paint",
|
|
||||||
"Microsoft.OutlookForWindows",
|
|
||||||
"Microsoft.WindowsAlarms",
|
|
||||||
"Microsoft.StartExperiencesApp",
|
|
||||||
"Microsoft.GetHelp",
|
|
||||||
"Microsoft.ZuneMusic",
|
|
||||||
"MicrosoftCorporationII.QuickAssist",
|
|
||||||
"MSTeams"
|
|
||||||
],
|
|
||||||
"InvokeScript": [
|
|
||||||
"
|
|
||||||
$TeamsPath = \"$Env:LocalAppData\\Microsoft\\Teams\\Update.exe\"
|
|
||||||
|
|
||||||
if (Test-Path $TeamsPath) {
|
|
||||||
Write-Host \"Uninstalling Teams\"
|
|
||||||
Start-Process $TeamsPath -ArgumentList -uninstall -wait
|
|
||||||
|
|
||||||
Write-Host \"Deleting Teams directory\"
|
|
||||||
Remove-Item $TeamsPath -Recurse -Force
|
|
||||||
}
|
|
||||||
"
|
|
||||||
],
|
|
||||||
```
|
|
||||||
@@ -3,7 +3,7 @@ title: "Temporary Files - Remove"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1117}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1082}
|
||||||
"WPFTweaksDeleteTempFiles": {
|
"WPFTweaksDeleteTempFiles": {
|
||||||
"Content": "Temporary Files - Remove",
|
"Content": "Temporary Files - Remove",
|
||||||
"Description": "Erases TEMP Folders.",
|
"Description": "Erases TEMP Folders.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Delivery Optimization - Disable"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=572}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=571}
|
||||||
"WPFTweaksDeliveryOptimization": {
|
"WPFTweaksDeliveryOptimization": {
|
||||||
"Content": "Delivery Optimization - Disable",
|
"Content": "Delivery Optimization - Disable",
|
||||||
"Description": "Stops Windows from using your bandwidth to upload updates to other PCs on the internet or local network.",
|
"Description": "Stops Windows from using your bandwidth to upload updates to other PCs on the internet or local network.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "BitLocker - Disable"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=604}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=613}
|
||||||
"WPFTweaksDisableBitLocker": {
|
"WPFTweaksDisableBitLocker": {
|
||||||
"Content": "BitLocker - Disable",
|
"Content": "BitLocker - Disable",
|
||||||
"Description": "Disables BitLocker.",
|
"Description": "Disables BitLocker.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "File Explorer Automatic Folder Discovery - Disable"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1222}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1187}
|
||||||
"WPFTweaksDisableExplorerAutoDiscovery": {
|
"WPFTweaksDisableExplorerAutoDiscovery": {
|
||||||
"Content": "File Explorer Automatic Folder Discovery - Disable",
|
"Content": "File Explorer Automatic Folder Discovery - Disable",
|
||||||
"Description": "Windows Explorer automatically tries to guess the type of the folder based on its contents, slowing down the browsing experience. WARNING! Will disable File Explorer grouping.",
|
"Description": "Windows Explorer automatically tries to guess the type of the folder based on its contents, slowing down the browsing experience. WARNING! Will disable File Explorer grouping.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Microsoft Store Recommended Search Results - Disable"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=97}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=96}
|
||||||
"WPFTweaksDisableStoreSearch": {
|
"WPFTweaksDisableStoreSearch": {
|
||||||
"Content": "Microsoft Store Recommended Search Results - Disable",
|
"Content": "Microsoft Store Recommended Search Results - Disable",
|
||||||
"Description": "Will not display recommended Microsoft Store apps when searching for apps in the Start menu.",
|
"Description": "Will not display recommended Microsoft Store apps when searching for apps in the Start menu.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Disk Cleanup - Run"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1104}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1069}
|
||||||
"WPFTweaksDiskCleanup": {
|
"WPFTweaksDiskCleanup": {
|
||||||
"Content": "Disk Cleanup - Run",
|
"Content": "Disk Cleanup - Run",
|
||||||
"Description": "Runs Disk Cleanup on Drive C: and removes old Windows Updates.",
|
"Description": "Runs Disk Cleanup on Drive C: and removes old Windows Updates.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "End Task With Right Click - Enable"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=910}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=855}
|
||||||
"WPFTweaksEndTaskOnTaskbar": {
|
"WPFTweaksEndTaskOnTaskbar": {
|
||||||
"Content": "End Task With Right Click - Enable",
|
"Content": "End Task With Right Click - Enable",
|
||||||
"Description": "Enables option to end task when right clicking a program in the taskbar.",
|
"Description": "Enables option to end task when right clicking a program in the taskbar.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Location Tracking - Disable"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=110}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=109}
|
||||||
"WPFTweaksLocation": {
|
"WPFTweaksLocation": {
|
||||||
"Content": "Location Tracking - Disable",
|
"Content": "Location Tracking - Disable",
|
||||||
"Description": "Disables Location Tracking.",
|
"Description": "Disables Location Tracking.",
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
---
|
||||||
|
title: "Prevent Device Companion Apps"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=947}
|
||||||
|
"WPFTweaksPreventDeviceMetadataFromNetwork": {
|
||||||
|
"Content": "Prevent Device Companion Apps",
|
||||||
|
"Description": "Prevents additional software from being installed when plugging in devices (e.g. Ads when plugging in a monitor). Poses potential security risk.",
|
||||||
|
"category": "Essential Tweaks",
|
||||||
|
"panel": "1",
|
||||||
|
"registry": [
|
||||||
|
{
|
||||||
|
"Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Device Metadata",
|
||||||
|
"Name": "PreventDeviceMetadataFromNetwork",
|
||||||
|
"Value": "1",
|
||||||
|
"Type": "DWord",
|
||||||
|
"OriginalValue": "<RemoveEntry>"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
```
|
||||||
|
|
||||||
|
## Registry Changes
|
||||||
|
|
||||||
|
Applications and System Components store and retrieve configuration data to modify Windows settings, so we can use the registry to change many settings in one place.
|
||||||
|
|
||||||
|
You can find information about the registry on [Wikipedia](https://en.wikipedia.org/wiki/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry).
|
||||||
@@ -3,7 +3,7 @@ title: "Restore Point - Create"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=883}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=828}
|
||||||
"WPFTweaksRestorePoint": {
|
"WPFTweaksRestorePoint": {
|
||||||
"Content": "Restore Point - Create",
|
"Content": "Restore Point - Create",
|
||||||
"Description": "Creates a restore point at runtime in case a revert is needed from WinUtil modifications.",
|
"Description": "Creates a restore point at runtime in case a revert is needed from WinUtil modifications.",
|
||||||
|
|||||||
@@ -3,6 +3,22 @@ title: "Start Menu Previous Layout - Enable"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=80}
|
||||||
|
"WPFTweaksRevertStartMenu": {
|
||||||
|
"Content": "Start Menu Previous Layout - Enable",
|
||||||
|
"Description": "Bring back the old Start Menu layout from before the gradual rollout of the new one in 25H2. On newer versions of Windows !!THIS TWEAK WILL NOT WORK!!",
|
||||||
|
"category": "Essential Tweaks",
|
||||||
|
"panel": "1",
|
||||||
|
"registry": [
|
||||||
|
{
|
||||||
|
"Path": "HKLM:\\SYSTEM\\ControlSet001\\Control\\FeatureManagement\\Overrides\\8\\3036241548",
|
||||||
|
"Name": "EnabledState",
|
||||||
|
"Value": "1",
|
||||||
|
"Type": "DWord",
|
||||||
|
"OriginalValue": "<RemoveEntry>"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
```
|
||||||
|
|
||||||
## Registry Changes
|
## Registry Changes
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Services - Set to Manual"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=147}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=146}
|
||||||
"WPFTweaksServices": {
|
"WPFTweaksServices": {
|
||||||
"Content": "Services - Set to Manual",
|
"Content": "Services - Set to Manual",
|
||||||
"Description": "Sets some services to Manual startup and adjusts the SvcHostSplitThresholdInKB registry value to better match system memory, which can significantly reduce the number of svchost.exe processes.",
|
"Description": "Sets some services to Manual startup and adjusts the SvcHostSplitThresholdInKB registry value to better match system memory, which can significantly reduce the number of svchost.exe processes.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Telemetry - Disable"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=447}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=446}
|
||||||
"WPFTweaksTelemetry": {
|
"WPFTweaksTelemetry": {
|
||||||
"Content": "Telemetry - Disable",
|
"Content": "Telemetry - Disable",
|
||||||
"Description": "Disables Microsoft Telemetry.",
|
"Description": "Disables Microsoft Telemetry.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Windows Platform Binary Table (WPBT) - Disable"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=982}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=931}
|
||||||
"WPFTweaksWPBT": {
|
"WPFTweaksWPBT": {
|
||||||
"Content": "Windows Platform Binary Table (WPBT) - Disable",
|
"Content": "Windows Platform Binary Table (WPBT) - Disable",
|
||||||
"Description": "If enabled, WPBT allows your computer vendor to execute programs at boot time, such as anti-theft software, software drivers, as well as force install software without user consent. Poses potential security risk.",
|
"Description": "If enabled, WPBT allows your computer vendor to execute programs at boot time, such as anti-theft software, software drivers, as well as force install software without user consent. Poses potential security risk.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Adobe URL Block List - Enable"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1062}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1027}
|
||||||
"WPFTweaksBlockAdobeNet": {
|
"WPFTweaksBlockAdobeNet": {
|
||||||
"Content": "Adobe URL Block List - Enable",
|
"Content": "Adobe URL Block List - Enable",
|
||||||
"Description": "Reduces user interruptions by selectively blocking connections to Adobe's activation and telemetry servers. Credit: Ruddernation-Designs",
|
"Description": "Reduces user interruptions by selectively blocking connections to Adobe's activation and telemetry servers. Credit: Ruddernation-Designs",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Brave Browser - Debloat"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=187}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=186}
|
||||||
"WPFTweaksBraveDebloat": {
|
"WPFTweaksBraveDebloat": {
|
||||||
"Content": "Brave Browser - Debloat",
|
"Content": "Brave Browser - Debloat",
|
||||||
"Description": "Disables various annoyances like Brave Rewards, Leo AI, Crypto Wallet and VPN.",
|
"Description": "Disables various annoyances like Brave Rewards, Leo AI, Crypto Wallet and VPN.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Background Apps - Disable"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1190}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1155}
|
||||||
"WPFTweaksDisableBGapps": {
|
"WPFTweaksDisableBGapps": {
|
||||||
"Content": "Background Apps - Disable",
|
"Content": "Background Apps - Disable",
|
||||||
"Description": "Disables all Microsoft Store apps from running in the background, which has to be done individually since Windows 11.",
|
"Description": "Disables all Microsoft Store apps from running in the background, which has to be done individually since Windows 11.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Fullscreen Optimizations - Disable"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1206}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1171}
|
||||||
"WPFTweaksDisableFSO": {
|
"WPFTweaksDisableFSO": {
|
||||||
"Content": "Fullscreen Optimizations - Disable",
|
"Content": "Fullscreen Optimizations - Disable",
|
||||||
"Description": "Disables FSO in all applications. NOTE: This will disable Color Management in Exclusive Fullscreen.",
|
"Description": "Disables FSO in all applications. NOTE: This will disable Color Management in Exclusive Fullscreen.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "IPv6 - Disable"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1168}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1133}
|
||||||
"WPFTweaksDisableIPv6": {
|
"WPFTweaksDisableIPv6": {
|
||||||
"Content": "IPv6 - Disable",
|
"Content": "IPv6 - Disable",
|
||||||
"Description": "Disables IPv6.",
|
"Description": "Disables IPv6.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "System Tray Notifications & Calendar - Disable"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1039}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1004}
|
||||||
"WPFTweaksDisableNotifications": {
|
"WPFTweaksDisableNotifications": {
|
||||||
"Content": "System Tray Notifications & Calendar - Disable",
|
"Content": "System Tray Notifications & Calendar - Disable",
|
||||||
"Description": "Disables all Notifications INCLUDING Calendar.",
|
"Description": "Disables all Notifications INCLUDING Calendar.",
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ title: "RDP Unsigned File Warnings - Disable"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=280}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=279}
|
||||||
"WPFTweaksDisableWarningForUnsignedRdp": {
|
"WPFTweaksDisableWarningForUnsignedRdp": {
|
||||||
"Content": "RDP Unsigned File Warnings - Disable",
|
"Content": "RDP Unsigned File Warnings - Disable",
|
||||||
"Description": "Disables warnings shown when launching unsigned RDP files introduced with the latest Windows 10 and 11 updates.",
|
"Description": "Disables warnings shown when launching unsigned RDP files introduced with the latest Windows 10 and 11 updates.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Visual Effects - Set to Best Performance"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=707}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=716}
|
||||||
"WPFTweaksDisplay": {
|
"WPFTweaksDisplay": {
|
||||||
"Content": "Visual Effects - Set to Best Performance",
|
"Content": "Visual Effects - Set to Best Performance",
|
||||||
"Description": "Sets the system preferences to performance. You can do this manually with sysdm.cpl as well.",
|
"Description": "Sets the system preferences to performance. You can do this manually with sysdm.cpl as well.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Microsoft Edge - Debloat"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=303}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=302}
|
||||||
"WPFTweaksEdgeDebloat": {
|
"WPFTweaksEdgeDebloat": {
|
||||||
"Content": "Microsoft Edge - Debloat",
|
"Content": "Microsoft Edge - Debloat",
|
||||||
"Description": "Disables various telemetry options, popups, and other annoyances in Edge.",
|
"Description": "Disables various telemetry options, popups, and other annoyances in Edge.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "IPv6 - Set IPv4 as Preferred"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1130}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=1095}
|
||||||
"WPFTweaksIPv46": {
|
"WPFTweaksIPv46": {
|
||||||
"Content": "IPv6 - Set IPv4 as Preferred",
|
"Content": "IPv6 - Set IPv4 as Preferred",
|
||||||
"Description": "Setting the IPv4 preference can have latency and security benefits on private networks where IPv6 is not configured.",
|
"Description": "Setting the IPv4 preference can have latency and security benefits on private networks where IPv6 is not configured.",
|
||||||
|
|||||||
@@ -5,15 +5,53 @@ description: ""
|
|||||||
|
|
||||||
```powershell {filename="functions/public/Invoke-WPFOOSU.ps1",linenos=inline,linenostart=1}
|
```powershell {filename="functions/public/Invoke-WPFOOSU.ps1",linenos=inline,linenostart=1}
|
||||||
function Invoke-WPFOOSU {
|
function Invoke-WPFOOSU {
|
||||||
|
if ($sync.ProcessRunning) {
|
||||||
|
Show-WinUtilMessage -Message "Another process is currently running." -Title "WinUtil" -Button "OK" -Icon "Warning"
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
$downloadPath = Join-Path $sync.winutildir "ooshutup10.exe"
|
||||||
|
$sync.ProcessRunning = $true
|
||||||
|
|
||||||
|
Invoke-WPFRunspace -ParameterList @(,("downloadPath", $downloadPath)) -ScriptBlock {
|
||||||
|
param($downloadPath)
|
||||||
|
|
||||||
|
$hasUI = $null -ne $sync.Form -and $null -ne $sync.Form.Dispatcher
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$ProgressPreference = 'SilentlyContinue'
|
Write-WinUtilLog -Component "OOSU" -Message "Downloading O&O ShutUp10++."
|
||||||
|
if ($hasUI) {
|
||||||
|
Set-WinUtilTweaksProgressIndicator -Visible $true -Label "Downloading O&O ShutUp10++ (0%)" -Percent 0
|
||||||
|
}
|
||||||
|
|
||||||
Invoke-WebRequest -Uri https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe -OutFile "$winutildir\ooshutup10.exe"
|
Save-WinUtilFile -Uri "https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe" -DestinationPath $downloadPath -ProgressCallback {
|
||||||
Start-Process -FilePath "$winutildir\ooshutup10.exe"
|
param($percent)
|
||||||
|
|
||||||
$ProgressPreference = 'Continue'
|
if ($hasUI) {
|
||||||
} catch {
|
Set-WinUtilTweaksProgressIndicator -Visible $true -Label "Downloading O&O ShutUp10++ ($percent%)" -Percent $percent
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($hasUI) {
|
||||||
|
Set-WinUtilTweaksProgressIndicator -Visible $true -Label "Launching O&O ShutUp10++" -Percent 100
|
||||||
|
}
|
||||||
|
Start-Process -FilePath $downloadPath
|
||||||
|
|
||||||
|
Write-WinUtilLog -Component "OOSU" -Message "O&O ShutUp10++ launched."
|
||||||
|
if ($hasUI) {
|
||||||
|
Set-WinUtilTweaksProgressIndicator -Visible $true -Label "O&O ShutUp10++ launched" -Percent 100
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch {
|
||||||
|
Write-WinUtilLog -Level "ERROR" -Component "OOSU" -Message "O&O ShutUp10++ download failed: $($_.Exception.Message)"
|
||||||
|
if ($hasUI) {
|
||||||
|
Set-WinUtilTweaksProgressIndicator -Visible $true -Label "O&O ShutUp10++ download failed" -Percent 100
|
||||||
|
}
|
||||||
Write-Error "Couldn't download O&O ShutUp10. Please make sure you have an active Internet connection."
|
Write-Error "Couldn't download O&O ShutUp10. Please make sure you have an active Internet connection."
|
||||||
}
|
}
|
||||||
|
finally {
|
||||||
|
$sync.ProcessRunning = $false
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Razer Software Auto-Install - Disable"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=998}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=963}
|
||||||
"WPFTweaksRazerBlock": {
|
"WPFTweaksRazerBlock": {
|
||||||
"Content": "Razer Software Auto-Install - Disable",
|
"Content": "Razer Software Auto-Install - Disable",
|
||||||
"Description": "Blocks ALL Razer Software installations. The hardware works fine without any software.",
|
"Description": "Blocks ALL Razer Software installations. The hardware works fine without any software.",
|
||||||
@@ -27,7 +27,7 @@ description: ""
|
|||||||
],
|
],
|
||||||
"InvokeScript": [
|
"InvokeScript": [
|
||||||
"
|
"
|
||||||
$RazerPath = \"C:\\Windows\\Installer\\Razer\"
|
$RazerPath = \"$Env:SystemRoot\\Installer\\Razer\"
|
||||||
|
|
||||||
if (Test-Path $RazerPath) {
|
if (Test-Path $RazerPath) {
|
||||||
Remove-Item $RazerPath\\* -Recurse -Force
|
Remove-Item $RazerPath\\* -Recurse -Force
|
||||||
@@ -40,7 +40,7 @@ description: ""
|
|||||||
],
|
],
|
||||||
"UndoScript": [
|
"UndoScript": [
|
||||||
"
|
"
|
||||||
icacls \"C:\\Windows\\Installer\\Razer\" /remove:d Everyone
|
icacls \"$Env:SystemRoot\\Installer\\Razer\" /remove:d Everyone
|
||||||
"
|
"
|
||||||
],
|
],
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -3,18 +3,28 @@ title: "Microsoft Edge - Remove"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=588}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=587}
|
||||||
"WPFTweaksRemoveEdge": {
|
"WPFTweaksRemoveEdge": {
|
||||||
"Content": "Microsoft Edge - Remove",
|
"Content": "Microsoft Edge - Remove",
|
||||||
"Description": "Unblocks Microsoft Edge uninstaller restrictions then uses that uninstaller to remove Microsoft Edge.",
|
"Description": "Uninstalls Microsoft Edge by creating dummy MicrosoftEdge.exe file in the legacy Edge folder. This tricks Windows into unlocking the official Edge uninstaller allowing for a system-level removal.",
|
||||||
"category": "z__Advanced Tweaks - CAUTION",
|
"category": "z__Advanced Tweaks - CAUTION",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"InvokeScript": [
|
"InvokeScript": [
|
||||||
"Invoke-WinUtilRemoveEdge"
|
"
|
||||||
|
$Path = Resolve-Path -Path \"$Env:ProgramFiles (x86)\\Microsoft\\Edge\\Application\\*\\Installer\\setup.exe\" | Select-Object -Last 1
|
||||||
|
|
||||||
|
if (Test-Path $Path) {
|
||||||
|
New-Item -Path \"$Env:SystemRoot\\SystemApps\\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\\MicrosoftEdge.exe\" -Force
|
||||||
|
Start-Process -FilePath $Path -ArgumentList \"--uninstall --system-level --force-uninstall --delete-profile\" -Wait
|
||||||
|
Write-Host \"Microsoft Edge was removed\"
|
||||||
|
} else {
|
||||||
|
Write-Host \"Microsoft Edge is not installed\"
|
||||||
|
}
|
||||||
|
"
|
||||||
],
|
],
|
||||||
"UndoScript": [
|
"UndoScript": [
|
||||||
"
|
"
|
||||||
Write-Host 'Installing Microsoft Edge...'
|
Write-Host \"Installing Microsoft Edge...\"
|
||||||
winget install Microsoft.Edge --source winget
|
winget install Microsoft.Edge --source winget
|
||||||
"
|
"
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "File Explorer Home and Gallery - Disable"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=677}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=686}
|
||||||
"WPFTweaksRemoveHomeAndGallery": {
|
"WPFTweaksRemoveHomeAndGallery": {
|
||||||
"Content": "File Explorer Home and Gallery - Disable",
|
"Content": "File Explorer Home and Gallery - Disable",
|
||||||
"Description": "Removes the Home and Gallery from Explorer and sets This PC as default.",
|
"Description": "Removes the Home and Gallery from Explorer and sets This PC as default.",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "Microsoft OneDrive - Remove"
|
|||||||
description: ""
|
description: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=633}
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=642}
|
||||||
"WPFTweaksRemoveOneDrive": {
|
"WPFTweaksRemoveOneDrive": {
|
||||||
"Content": "Microsoft OneDrive - Remove",
|
"Content": "Microsoft OneDrive - Remove",
|
||||||
"Description": "Denies permission to remove OneDrive user files, then uses its own uninstaller to remove it and restores the original permission afterward.",
|
"Description": "Denies permission to remove OneDrive user files, then uses its own uninstaller to remove it and restores the original permission afterward.",
|
||||||
@@ -15,7 +15,7 @@ description: ""
|
|||||||
icacls $Env:OneDrive /deny \"Administrators:(D,DC)\"
|
icacls $Env:OneDrive /deny \"Administrators:(D,DC)\"
|
||||||
|
|
||||||
Write-Host \"Uninstalling OneDrive...\"
|
Write-Host \"Uninstalling OneDrive...\"
|
||||||
Start-Process 'C:\\Windows\\System32\\OneDriveSetup.exe' -ArgumentList '/uninstall' -Wait
|
Start-Process -FilePath (Join-Path $Env:SystemRoot \"System32\\OneDriveSetup.exe\") -ArgumentList '/uninstall' -Wait
|
||||||
|
|
||||||
# Some of OneDrive files use explorer, and OneDrive uses FileCoAuth
|
# Some of OneDrive files use explorer, and OneDrive uses FileCoAuth
|
||||||
Write-Host \"Removing leftover OneDrive Files...\"
|
Write-Host \"Removing leftover OneDrive Files...\"
|
||||||
@@ -23,7 +23,7 @@ description: ""
|
|||||||
Stop-Process -Name FileCoAuth,Explorer
|
Stop-Process -Name FileCoAuth,Explorer
|
||||||
|
|
||||||
Remove-Item \"$Env:LocalAppData\\Microsoft\\OneDrive\" -Recurse -Force
|
Remove-Item \"$Env:LocalAppData\\Microsoft\\OneDrive\" -Recurse -Force
|
||||||
Remove-Item \"C:\\ProgramData\\Microsoft OneDrive\" -Recurse -Force
|
Remove-Item \"$Env:ProgramData\\Microsoft OneDrive\" -Recurse -Force
|
||||||
|
|
||||||
# Grant back permission to access OneDrive folder
|
# Grant back permission to access OneDrive folder
|
||||||
icacls $Env:OneDrive /grant \"Administrators:(D,DC)\"
|
icacls $Env:OneDrive /grant \"Administrators:(D,DC)\"
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user