mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-07-04 20:23:52 -05:00
Compare commits
1 Commits
50cb1be797
...
admin-elev
Author | SHA1 | Date | |
---|---|---|---|
ae57539640 |
10
Compile.ps1
10
Compile.ps1
@ -70,15 +70,7 @@ Get-ChildItem "$workingdir\config" | Where-Object {$psitem.extension -eq ".json"
|
|||||||
# Replace every XML Special Character so it'll render correctly in final build
|
# Replace every XML Special Character so it'll render correctly in final build
|
||||||
# Only do so if json files has content to be displayed (for example the applications, tweaks, features json files)
|
# Only do so if json files has content to be displayed (for example the applications, tweaks, features json files)
|
||||||
# Make an Array List containing every name at first level of Json File
|
# Make an Array List containing every name at first level of Json File
|
||||||
[PSCustomObject]$jsonAsObject = $json | convertfrom-json
|
$jsonAsObject = $json | convertfrom-json
|
||||||
|
|
||||||
# Remove properties like $schema and such from the json object (we don't need it at this point)
|
|
||||||
@(
|
|
||||||
"`$schema"
|
|
||||||
) | ForEach-Object {
|
|
||||||
$jsonAsObject.PSObject.Properties.Remove($_) | Out-Null
|
|
||||||
}
|
|
||||||
|
|
||||||
$firstLevelJsonList = [System.Collections.ArrayList]::new()
|
$firstLevelJsonList = [System.Collections.ArrayList]::new()
|
||||||
$jsonAsObject.PSObject.Properties.Name | ForEach-Object {$null = $firstLevelJsonList.Add($_)}
|
$jsonAsObject.PSObject.Properties.Name | ForEach-Object {$null = $firstLevelJsonList.Add($_)}
|
||||||
# Note:
|
# Note:
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
"$schema": "../schemas/config/applications.json",
|
|
||||||
"1password": {
|
"1password": {
|
||||||
"category": "Utilities",
|
"category": "Utilities",
|
||||||
"choco": "1password",
|
"choco": "1password",
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
"$schema": "../schemas/config/dns.json",
|
|
||||||
"Google":{
|
"Google":{
|
||||||
"Primary": "8.8.8.8",
|
"Primary": "8.8.8.8",
|
||||||
"Secondary": "8.8.4.4",
|
"Secondary": "8.8.4.4",
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
"$schema": "../schemas/config/feature.json",
|
|
||||||
"WPFFeaturesdotnet": {
|
"WPFFeaturesdotnet": {
|
||||||
"Content": "All .Net Framework (2,3,4)",
|
"Content": "All .Net Framework (2,3,4)",
|
||||||
"Description": ".NET and .NET Framework is a developer platform made up of tools, programming languages, and libraries for building many different types of applications.",
|
"Description": ".NET and .NET Framework is a developer platform made up of tools, programming languages, and libraries for building many different types of applications.",
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
"$schema": "../schemas/config/preset.json",
|
|
||||||
"Standard": [
|
"Standard": [
|
||||||
"WPFTweaksAH",
|
"WPFTweaksAH",
|
||||||
"WPFTweaksConsumerFeatures",
|
"WPFTweaksConsumerFeatures",
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
"$schema": "../schemas/config/themes.json",
|
|
||||||
"Classic": {
|
"Classic": {
|
||||||
"CustomDialogFontSize": "12",
|
"CustomDialogFontSize": "12",
|
||||||
"CustomDialogFontSizeHeader": "14",
|
"CustomDialogFontSizeHeader": "14",
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
"$schema": "../schemas/config/tweaks.json",
|
|
||||||
"WPFTweaksAH": {
|
"WPFTweaksAH": {
|
||||||
"Content": "Disable Activity History",
|
"Content": "Disable Activity History",
|
||||||
"Description": "This erases recent docs, clipboard, and run history.",
|
"Description": "This erases recent docs, clipboard, and run history.",
|
||||||
|
@ -132,8 +132,6 @@ function Remove-ProvisionedPackages() {
|
|||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
Remove-ProvisionedPackages
|
Remove-ProvisionedPackages
|
||||||
#>
|
#>
|
||||||
try
|
|
||||||
{
|
|
||||||
$appxProvisionedPackages = Get-AppxProvisionedPackage -Path "$($scratchDir)" | Where-Object {
|
$appxProvisionedPackages = Get-AppxProvisionedPackage -Path "$($scratchDir)" | Where-Object {
|
||||||
$_.PackageName -NotLike "*AppInstaller*" -AND
|
$_.PackageName -NotLike "*AppInstaller*" -AND
|
||||||
$_.PackageName -NotLike "*Store*" -and
|
$_.PackageName -NotLike "*Store*" -and
|
||||||
@ -155,6 +153,7 @@ function Remove-ProvisionedPackages() {
|
|||||||
$_.PackageName -NotLike "*Gaming*" -and
|
$_.PackageName -NotLike "*Gaming*" -and
|
||||||
$_.PackageName -NotLike "*Extension*" -and
|
$_.PackageName -NotLike "*Extension*" -and
|
||||||
$_.PackageName -NotLike "*SecHealthUI*"
|
$_.PackageName -NotLike "*SecHealthUI*"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$counter = 0
|
$counter = 0
|
||||||
@ -169,12 +168,6 @@ function Remove-ProvisionedPackages() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Write-Progress -Activity "Removing Provisioned Apps" -Status "Ready" -Completed
|
Write-Progress -Activity "Removing Provisioned Apps" -Status "Ready" -Completed
|
||||||
}
|
|
||||||
catch
|
|
||||||
{
|
|
||||||
# This can happen if getting AppX packages fails
|
|
||||||
Write-Host "Unable to get information about the AppX packages. MicroWin processing will continue, but AppX packages will not be processed"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function Copy-ToUSB([string]$fileToCopy) {
|
function Copy-ToUSB([string]$fileToCopy) {
|
||||||
|
@ -1,55 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
||||||
"type": "object",
|
|
||||||
"definitions": {
|
|
||||||
"url": {
|
|
||||||
"type": "string",
|
|
||||||
"format": "uri"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"patternProperties": {
|
|
||||||
"^[a-zA-Z_][a-zA-Z0-9_]*$": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"content": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"description": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"category": {
|
|
||||||
"type": "string",
|
|
||||||
"enum": [
|
|
||||||
"Utilities",
|
|
||||||
"Document",
|
|
||||||
"Pro Tools",
|
|
||||||
"Multimedia Tools",
|
|
||||||
"Development",
|
|
||||||
"Games",
|
|
||||||
"Microsoft Tools",
|
|
||||||
"Browsers",
|
|
||||||
"Communications"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"choco": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"winget": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"link": {
|
|
||||||
"$ref": "#/definitions/url"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": [
|
|
||||||
"content",
|
|
||||||
"description",
|
|
||||||
"category",
|
|
||||||
"link",
|
|
||||||
"choco",
|
|
||||||
"winget"
|
|
||||||
],
|
|
||||||
"additionalProperties": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,29 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
||||||
"type": "object",
|
|
||||||
"patternProperties": {
|
|
||||||
"^[a-zA-Z_][a-zA-Z0-9_]*$": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"Primary": {
|
|
||||||
"type": "string",
|
|
||||||
"format": "ipv4"
|
|
||||||
},
|
|
||||||
"Secondary": {
|
|
||||||
"type": "string",
|
|
||||||
"format": "ipv4"
|
|
||||||
},
|
|
||||||
"Primary6": {
|
|
||||||
"type": "string",
|
|
||||||
"format": "ipv6"
|
|
||||||
},
|
|
||||||
"Secondary6": {
|
|
||||||
"type": "string",
|
|
||||||
"format": "ipv6"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": ["Primary", "Secondary", "Primary6", "Secondary6"],
|
|
||||||
"additionalProperties": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,57 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
||||||
"type": "object",
|
|
||||||
"patternProperties": {
|
|
||||||
"^[a-zA-Z_][a-zA-Z0-9_]*$": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"Content": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"Description": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"category": {
|
|
||||||
"type": "string",
|
|
||||||
"enum": ["Features", "Fixes", "Legacy Windows Panels"]
|
|
||||||
},
|
|
||||||
"panel": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"Order": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^[0-9a-f]+_$"
|
|
||||||
},
|
|
||||||
"feature": {
|
|
||||||
"type": "array",
|
|
||||||
"items": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"InvokeScript": {
|
|
||||||
"type": "array",
|
|
||||||
"items": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"UndoScript": {
|
|
||||||
"type": "array",
|
|
||||||
"items": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"Type": {
|
|
||||||
"type": "string",
|
|
||||||
"enum": ["Button"]
|
|
||||||
},
|
|
||||||
"ButtonWidth": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": ["Content", "category", "panel"],
|
|
||||||
"additionalProperties": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
||||||
"type": "object",
|
|
||||||
"patternProperties": {
|
|
||||||
"^[a-zA-Z_][a-zA-Z0-9_]*$": {
|
|
||||||
"type": "array",
|
|
||||||
"items": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,297 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
||||||
"definitions": {
|
|
||||||
"color": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^Transparent|(#[0-9A-Fa-f]{6})$"
|
|
||||||
},
|
|
||||||
"decimal": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+(\\.\\d+)?$"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"type": "object",
|
|
||||||
"patternProperties": {
|
|
||||||
"^[a-zA-Z_][a-zA-Z0-9_]*$": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"CustomDialogFontSize": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"CustomDialogFontSizeHeader": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"CustomDialogIconSize": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"CustomDialogWidth": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"CustomDialogHeight": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"FontSize": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"FontFamily": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"FontSizeHeading": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"HeaderFontFamily": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"CheckBoxBulletDecoratorFontSize": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"CheckBoxMargin": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"TabButtonFontSize": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"TabButtonWidth": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"TabButtonHeight": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"TabRowHeightInPixels": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"IconFontSize": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"IconButtonSize": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"WinUtilIconSize": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"SettingsIconFontSize": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"MicroWinLogoSize": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"ProgressBarForegroundColor": {
|
|
||||||
"$ref": "#/definitions/color"
|
|
||||||
},
|
|
||||||
"ProgressBarBackgroundColor": {
|
|
||||||
"$ref": "#/definitions/color"
|
|
||||||
},
|
|
||||||
"ProgressBarTextColor": {
|
|
||||||
"$ref": "#/definitions/color"
|
|
||||||
},
|
|
||||||
"ComboBoxBackgroundColor": {
|
|
||||||
"$ref": "#/definitions/color"
|
|
||||||
},
|
|
||||||
"LabelboxForegroundColor": {
|
|
||||||
"$ref": "#/definitions/color"
|
|
||||||
},
|
|
||||||
"MainForegroundColor": {
|
|
||||||
"$ref": "#/definitions/color"
|
|
||||||
},
|
|
||||||
"MainBackgroundColor": {
|
|
||||||
"$ref": "#/definitions/color"
|
|
||||||
},
|
|
||||||
"LabelBackgroundColor": {
|
|
||||||
"$ref": "#/definitions/color"
|
|
||||||
},
|
|
||||||
"LinkForegroundColor": {
|
|
||||||
"$ref": "#/definitions/color"
|
|
||||||
},
|
|
||||||
"LinkHoverForegroundColor": {
|
|
||||||
"$ref": "#/definitions/color"
|
|
||||||
},
|
|
||||||
"GroupBorderBackgroundColor": {
|
|
||||||
"$ref": "#/definitions/color"
|
|
||||||
},
|
|
||||||
"ComboBoxForegroundColor": {
|
|
||||||
"$ref": "#/definitions/color"
|
|
||||||
},
|
|
||||||
"ButtonFontSize": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"ButtonFontFamily": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"ButtonWidth": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"ButtonHeight": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"ConfigTabButtonFontSize": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"SearchBarWidth": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"SearchBarHeight": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"SearchBarTextBoxFontSize": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"SearchBarClearButtonFontSize": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"ButtonInstallBackgroundColor": {
|
|
||||||
"$ref": "#/definitions/color"
|
|
||||||
},
|
|
||||||
"ButtonTweaksBackgroundColor": {
|
|
||||||
"$ref": "#/definitions/color"
|
|
||||||
},
|
|
||||||
"ButtonConfigBackgroundColor": {
|
|
||||||
"$ref": "#/definitions/color"
|
|
||||||
},
|
|
||||||
"ButtonUpdatesBackgroundColor": {
|
|
||||||
"$ref": "#/definitions/color"
|
|
||||||
},
|
|
||||||
"ButtonInstallForegroundColor": {
|
|
||||||
"$ref": "#/definitions/color"
|
|
||||||
},
|
|
||||||
"ButtonTweaksForegroundColor": {
|
|
||||||
"$ref": "#/definitions/color"
|
|
||||||
},
|
|
||||||
"ButtonConfigForegroundColor": {
|
|
||||||
"$ref": "#/definitions/color"
|
|
||||||
},
|
|
||||||
"ButtonUpdatesForegroundColor": {
|
|
||||||
"$ref": "#/definitions/color"
|
|
||||||
},
|
|
||||||
"ButtonBackgroundColor": {
|
|
||||||
"$ref": "#/definitions/color"
|
|
||||||
},
|
|
||||||
"ButtonBackgroundPressedColor": {
|
|
||||||
"$ref": "#/definitions/color"
|
|
||||||
},
|
|
||||||
"CheckboxMouseOverColor": {
|
|
||||||
"$ref": "#/definitions/color"
|
|
||||||
},
|
|
||||||
"ButtonBackgroundMouseoverColor": {
|
|
||||||
"$ref": "#/definitions/color"
|
|
||||||
},
|
|
||||||
"ButtonBackgroundSelectedColor": {
|
|
||||||
"$ref": "#/definitions/color"
|
|
||||||
},
|
|
||||||
"ButtonForegroundColor": {
|
|
||||||
"$ref": "#/definitions/color"
|
|
||||||
},
|
|
||||||
"ToggleButtonOnColor": {
|
|
||||||
"$ref": "#/definitions/color"
|
|
||||||
},
|
|
||||||
"ButtonBorderThickness": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"ButtonMargin": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"ButtonCornerRadius": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"BorderColor": {
|
|
||||||
"$ref": "#/definitions/color"
|
|
||||||
},
|
|
||||||
"BorderOpacity": {
|
|
||||||
"$ref": "#/definitions/decimal"
|
|
||||||
},
|
|
||||||
"ShadowPulse": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": [
|
|
||||||
"CustomDialogFontSize",
|
|
||||||
"CustomDialogFontSizeHeader",
|
|
||||||
"CustomDialogIconSize",
|
|
||||||
"CustomDialogWidth",
|
|
||||||
"CustomDialogHeight",
|
|
||||||
"FontSize",
|
|
||||||
"FontFamily",
|
|
||||||
"FontSizeHeading",
|
|
||||||
"HeaderFontFamily",
|
|
||||||
"CheckBoxBulletDecoratorFontSize",
|
|
||||||
"CheckBoxMargin",
|
|
||||||
"TabButtonFontSize",
|
|
||||||
"TabButtonWidth",
|
|
||||||
"TabButtonHeight",
|
|
||||||
"TabRowHeightInPixels",
|
|
||||||
"IconFontSize",
|
|
||||||
"IconButtonSize",
|
|
||||||
"WinUtilIconSize",
|
|
||||||
"SettingsIconFontSize",
|
|
||||||
"MicroWinLogoSize",
|
|
||||||
"ProgressBarForegroundColor",
|
|
||||||
"ProgressBarBackgroundColor",
|
|
||||||
"ProgressBarTextColor",
|
|
||||||
"ComboBoxBackgroundColor",
|
|
||||||
"LabelboxForegroundColor",
|
|
||||||
"MainForegroundColor",
|
|
||||||
"MainBackgroundColor",
|
|
||||||
"LabelBackgroundColor",
|
|
||||||
"LinkForegroundColor",
|
|
||||||
"LinkHoverForegroundColor",
|
|
||||||
"ComboBoxForegroundColor",
|
|
||||||
"ButtonFontSize",
|
|
||||||
"ButtonFontFamily",
|
|
||||||
"ButtonWidth",
|
|
||||||
"ButtonHeight",
|
|
||||||
"ConfigTabButtonFontSize",
|
|
||||||
"SearchBarWidth",
|
|
||||||
"SearchBarHeight",
|
|
||||||
"SearchBarTextBoxFontSize",
|
|
||||||
"SearchBarClearButtonFontSize",
|
|
||||||
"ButtonInstallBackgroundColor",
|
|
||||||
"ButtonTweaksBackgroundColor",
|
|
||||||
"ButtonConfigBackgroundColor",
|
|
||||||
"ButtonUpdatesBackgroundColor",
|
|
||||||
"ButtonInstallForegroundColor",
|
|
||||||
"ButtonTweaksForegroundColor",
|
|
||||||
"ButtonConfigForegroundColor",
|
|
||||||
"ButtonUpdatesForegroundColor",
|
|
||||||
"ButtonBackgroundColor",
|
|
||||||
"ButtonBackgroundPressedColor",
|
|
||||||
"ButtonBackgroundMouseoverColor",
|
|
||||||
"ButtonBackgroundSelectedColor",
|
|
||||||
"ButtonForegroundColor",
|
|
||||||
"ToggleButtonOnColor",
|
|
||||||
"ButtonBorderThickness",
|
|
||||||
"ButtonMargin",
|
|
||||||
"ButtonCornerRadius",
|
|
||||||
"BorderColor",
|
|
||||||
"BorderOpacity",
|
|
||||||
"ShadowPulse"
|
|
||||||
],
|
|
||||||
"additionalProperties": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,121 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
||||||
"type": "object",
|
|
||||||
"definitions": {
|
|
||||||
"toggle-state": {
|
|
||||||
"type": "string",
|
|
||||||
"enum": ["Enabled", "Disabled"]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"patternProperties": {
|
|
||||||
"^[a-zA-Z_][a-zA-Z0-9_]*$": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"Content": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"Description": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"category": {
|
|
||||||
"type": "string",
|
|
||||||
"enum": [
|
|
||||||
"Essential Tweaks",
|
|
||||||
"Performance Plans",
|
|
||||||
"Customize Preferences",
|
|
||||||
"z__Advanced Tweaks - CAUTION",
|
|
||||||
"Shortcuts"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"panel": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"Order": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^[0-9a-f]+_$"
|
|
||||||
},
|
|
||||||
"registry": {
|
|
||||||
"type": "array",
|
|
||||||
"items": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"Path": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"Name": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"Type": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"Value": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"OriginalValue": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": ["Path", "Name", "Type", "Value", "OriginalValue"]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"service": {
|
|
||||||
"type": "array",
|
|
||||||
"items": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"Name": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"StartupType": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"OriginalType": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": ["Name", "StartupType", "OriginalType"]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"appx": {
|
|
||||||
"type": "array",
|
|
||||||
"items": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"ScheduledTask": {
|
|
||||||
"type":"array",
|
|
||||||
"items": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"Name": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"State": {
|
|
||||||
"$ref": "#/definitions/toggle-state"
|
|
||||||
},
|
|
||||||
"OriginalState": {
|
|
||||||
"$ref": "#/definitions/toggle-state"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": ["Name", "State", "OriginalState"]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"InvokeScript": {
|
|
||||||
"type": "array",
|
|
||||||
"items": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"UndoScript": {
|
|
||||||
"type": "array",
|
|
||||||
"items": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": ["Content", "Description", "category", "panel", "Order"],
|
|
||||||
"additionalProperties": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -44,12 +44,23 @@ $sync.version = "#{replaceme}"
|
|||||||
$sync.configs = @{}
|
$sync.configs = @{}
|
||||||
$sync.ProcessRunning = $false
|
$sync.ProcessRunning = $false
|
||||||
|
|
||||||
# If script isn't running as admin, show error message and quit
|
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
|
||||||
If (([Security.Principal.WindowsIdentity]::GetCurrent()).Owner.Value -ne "S-1-5-32-544") {
|
Write-Output "Winutil needs to be run as Administrator. Attempting to relaunch."
|
||||||
Write-Host "===========================================" -Foregroundcolor Red
|
|
||||||
Write-Host "-- Scripts must be run as Administrator ---" -Foregroundcolor Red
|
$wtInstalled = Get-Command wt.exe -ErrorAction SilentlyContinue
|
||||||
Write-Host "-- Right-Click Start -> Terminal(Admin) ---" -Foregroundcolor Red
|
$pwshInstalled = Get-Command pwsh -ErrorAction SilentlyContinue
|
||||||
Write-Host "===========================================" -Foregroundcolor Red
|
if ($pwshInstalled) {
|
||||||
|
$powershellcmd = "pwsh"
|
||||||
|
} else {
|
||||||
|
$powershellcmd = "powershell"
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($wtInstalled) {
|
||||||
|
Start-Process wt.exe -ArgumentList "new-tab $powershellcmd -ExecutionPolicy Bypass -Command `"irm https://christitus.com/win | iex`"" -Verb RunAs
|
||||||
|
} else {
|
||||||
|
Start-Process $powershellcmd -ArgumentList "-ExecutionPolicy Bypass -Command `"irm https://christitus.com/win | iex`"" -Verb RunAs
|
||||||
|
}
|
||||||
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user