2024-06-10 15:24:12 -05:00
param (
2024-06-25 14:10:16 -05:00
[ switch ] $Debug ,
2024-07-25 17:39:37 -05:00
[ switch ] $Run ,
[ switch ] $SkipPreprocessing
2024-06-10 15:24:12 -05:00
)
2023-03-07 14:28:00 -06:00
$OFS = " `r `n "
$scriptname = " winutil.ps1 "
2024-07-25 19:32:23 -05:00
$workingdir = $PSScriptRoot
2024-06-10 15:24:12 -05:00
2024-02-21 16:06:27 -06:00
# Variable to sync between runspaces
$sync = [ Hashtable ] :: Synchronized ( @ { } )
$sync . PSScriptRoot = $PSScriptRoot
$sync . configs = @ { }
2023-03-07 14:28:00 -06:00
2024-06-28 16:59:38 -05:00
function Update-Progress {
param (
[ Parameter ( Mandatory , position = 0 ) ]
[ string ] $StatusMessage ,
2024-07-25 16:27:29 -05:00
[ Parameter ( Mandatory , position = 1 ) ]
[ ValidateRange ( 0 , 100 ) ]
2024-06-28 16:59:38 -05:00
[ int ] $Percent ,
2024-07-25 16:27:29 -05:00
[ Parameter ( position = 2 ) ]
[ string ] $Activity = " Compiling "
2024-06-28 16:59:38 -05:00
)
Write-Progress -Activity $Activity -Status $StatusMessage -PercentComplete $Percent
}
2024-07-25 17:39:37 -05:00
function Do-PreProcessing {
param (
[ Parameter ( Mandatory , position = 0 ) ]
[ string ] $ProgressStatusMessage ,
[ Parameter ( position = 1 ) ]
[ string ] $ProgressActivity = " Pre-Processing "
)
2024-07-25 19:32:23 -05:00
$excludedFiles = @ ( 'git\' , '.gitignore' , '.gitattributes' , '.github\CODEOWNERS' , 'LICENSE' , 'winutil.ps1' , 'docs\changelog.md' , '*.png' , '*.jpg' , '*.jpeg' , '*.exe' )
2024-07-25 17:39:37 -05:00
2024-07-25 19:32:23 -05:00
$files = Get-ChildItem $workingdir -Recurse -Exclude $excludedFiles -Attributes ! Directory
2024-07-25 17:39:37 -05:00
$numOfFiles = $files . Count
for ( $i = 0 ; $i -lt $numOfFiles ; $i + + ) {
$file = $files [ $i ]
( Get-Content " $file " ) . TrimEnd ( ) | Set-Content " $file "
Write-Progress -Activity $ProgressActivity -Status " $ProgressStatusMessage - Finished $i out of $numOfFiles " -PercentComplete ( ( $i / $numOfFiles ) * 100 )
}
Write-Progress -Activity $ProgressActivity -Status " $ProgressStatusMessage - Finished Task Successfully " -Completed
}
2024-06-10 15:24:12 -05:00
$header = @"
2023-03-07 14:28:00 -06:00
################################################################################################################
### ###
### WARNING: This file is automatically generated DO NOT modify this file directly as it will be overwritten ###
### ###
################################################################################################################
2024-06-10 15:24:12 -05:00
" @
2023-03-07 14:28:00 -06:00
2024-07-25 17:39:37 -05:00
if ( -NOT $SkipPreprocessing ) {
$msg = " Pre-req: Code Formatting "
Update-Progress " Pre-req: Allocating Memory " 0
Do-PreProcessing $msg
}
2024-06-28 16:59:38 -05:00
2024-06-10 15:24:12 -05:00
# Create the script in memory.
2024-06-28 16:59:38 -05:00
Update-Progress " Pre-req: Allocating Memory " 0
2024-06-10 15:24:12 -05:00
$script_content = [ System.Collections.Generic.List[string] ] :: new ( )
2023-03-07 14:28:00 -06:00
2024-06-28 16:59:38 -05:00
Update-Progress " Adding: Header " 5
2024-06-10 15:24:12 -05:00
$script_content . Add ( $header )
2024-06-28 16:59:38 -05:00
Update-Progress " Adding: Version " 10
2024-07-25 19:32:23 -05:00
$script_content . Add ( $ ( Get-Content " $workingdir \scripts\start.ps1 " ) . replace ( '#{replaceme}' , " $( Get-Date -Format yy . MM . dd ) " ) )
2023-03-07 14:28:00 -06:00
2024-06-28 16:59:38 -05:00
Update-Progress " Adding: Functions " 20
2024-07-25 19:32:23 -05:00
Get-ChildItem " $workingdir \functions " -Recurse -File | ForEach-Object {
2024-06-10 15:24:12 -05:00
$script_content . Add ( $ ( Get-Content $psitem . FullName ) )
}
2024-06-28 16:59:38 -05:00
Update-Progress " Adding: Config *.json " 40
2024-07-25 19:32:23 -05:00
Get-ChildItem " $workingdir \config " | Where-Object { $psitem . extension -eq " .json " } | ForEach-Object {
2024-06-10 15:24:12 -05:00
2023-03-07 14:28:00 -06:00
$json = ( Get-Content $psitem . FullName ) . replace ( " ' " , " '' " )
Test 2024 03 30 (#1852)
* Winget Sources fix (#1773)
- Sometimes, if Winget is installed under user-scope, the source isn't properly installed so that the Admin user can properly use Winget.
- This change installs the sources directly from the Winget CDN.
- Fixes #1771
https://github.com/microsoft/winget-cli/discussions/3258#discussioncomment-5951658
* Compile Winutil
* Finished conversion of DISM commands into DISM cmdlets (#1776)
* Continue conversion
Began 2nd stage of DISM command conversion. Almost all commands have been replaced by cmdlets
* Continue conversion (part 2)
Finished part 2 of DISM command to cmdlet conversion
* Add New Toggle to Disable/Enable Widgets found in Taskbar (#1768)
* Compile Winutil
* Fix Search Box Not Showing Apps/Tweaks Checkboxes When typing out Capital-Letters (#1770)
* Compile Winutil
* Add Microsoft Power Automate and Swift toolchain (#1774)
* Add power automate
* Add swift toolchain
* Compile Winutil
* Restart Explorer after Applying/Undoing Classic Right-Click Advance Tweak (#1778)
In general, I've added two lines of code to get the explorer process using 'Get-Process', then passed the process object into 'Stop-Process', Windows will automatically restart explorer, so there's no need to run a new process for explorer.
Note: restarting explorer in the UndoScript might not be necessary, as it works just fine without it, that's according to the tests done by the author of this commit.
* Compile Winutil
* editing edgeremoval.ps1 (#1834)
* editing edgeremoval.ps1
* Compile Winutil
---------
Co-authored-by: DaEpicR <DaEpicR@users.noreply.github.com>
* Compile Winutil
* Update Github Actions Auto Close Issues (#1801)
* Update Github Actions Auto Close Issues
* Add try-catch & Error Logging in Github Actions Auto Close Issues
* Add a Break Statement To Skip Checking The Remaining Labels of an Issue in Github Actions Auto Close Issues
* Add tweak (#1837)
* Compile Winutil
* Disable SCOOBE in WPFTweaksTele (#1832)
* Compile Winutil
* Fix 'Disable Storage Sense' Tweak in 'tweaks.json' File (#1843)
This was pointed out in GitHub issue https://github.com/ChrisTitusTech/winutil/issues/1838
* Compile Winutil
* Add 'UndoScript' to 'Enable End Task With Right Click' Tweak in 'tweaks.json' File (#1842)
* Compile Winutil
* - Changed version check for Winget to keep Winget updated to latest version and a couple formatting fixes. (#1829)
* Compile Winutil
* Add 'UndoScript' to 'Disable Hibernation' Tweak in 'teaks.json' File (#1799)
* Compile Winutil
* Added Requested Apps and Update Command Example in 'README.md' File (#1795)
* Add 'UltraVNC' App to 'application.json' File
* Update Command Example under sub-section 'Automation'
This Commit and its changes are related to issue #1767 , url for issue: https://github.com/ChrisTitusTech/winutil/issues/1767
* Add 'OrcaSlicer' App to 'application.json' File
* Add 'Tixati' App to 'application.json' File
* Add 'Unigram' App to 'application.json' File
* Add 'PDFgear' App to 'application.json' File
* Add 'Windows Firewall Control' App to 'application.json' File
* Add 'VistaSwitcher' App to 'application.json' File
* Add 'Windows Auto Dark Mode' App to 'application.json' File
* Add 'CapFrameX' App to 'application.json' File
* Update The Link for 'Unigram' App in 'application.json' File
* Add 'Magic Wormhole' App to 'application.json' File
* Compile Winutil
* Add apps from #250 (#1787)
* Add SQL management
* Add java runtimes
* Add azure data studio
* Compile Winutil
* Update inputXML.xaml (#1845)
- Added UseLayoutRounding="True"
- This may help fix some cases where text may look blurry on screen for some people.
* Compile Winutil
* A Temporary Fix to Compilation Program in 'Compile.ps1' Script (#1844)
For whatever reason, Compiling using the 'Compile.ps1' Script when there's a Single Quote, in the description of an App for example, it'll try "escaping" it by adding another Single Quote, which's kind of weird.
Before there was an Apostrophe, and it'll Compile into Question Marks, probably because the Compile Script doesn't know what an Apostrophe is, or it can't escape it (or for another reason, didn't dig deeper into it), in the end I've made it neither an Apostrophe nor a Single Quote, just the sentence without contractions (Without shortening by combining words).
* Compile Winutil
* Update Winget Install and Uninstall / Add NuGet and Microsoft.Winget.Client Modules (#1830)
* - Changed how WinGet installs and uninstalls are handled, by utilizing and .
* Update Winget Install and Uninstall / Add NuGet and Microsoft.Winget.Client Modules
- Fixed commands for installing and uninstalling programs through WinGet.
- Added NuGet Package Providers (thanks @Marterich)
- Added Microsoft.WinGet.Client Module (thanks @Marterich)
* Compile Winutil
* Reopen #1747 PR (#1818)
* Add fxsound
* Add simplenote
* Add flow launcher
* Add CMake
* Add musescore
* Add jpegview
* Add explorer patcher
* Add lockhunter
* Add BRU
* Add spacesniffer
* Add Quick Look
* Add harmonoid
* Add revolt
* Add link shell extensions
* Add WizFile
* Add HWMonitor
* Add XnView
* Add tabby.sh
* Add signalRGB
* Add autoruns
* Fix typo for 'Autoruns' App in 'applications.json' File
* Remove 'Explorer Patcher' App in 'applications.json' File
as mentioned by Chris's Feedback on https://github.com/ChrisTitusTech/winutil/pull/1818 PR, Explorer Patcher is known to cause Stability Related Issues to Users who use it, removing it from the Applications List would be a better/wiser decision.
* Re-Add 'fxsound' App after Resolving Merge Conflict
* Re-Add 'tabby.sh' App after Resolving Merge Conflict
---------
Co-authored-by: ModernTTY <165050080+ModernTTY@users.noreply.github.com>
* Compile Winutil
* Fix Github Actions Auto Close Issues not leaving Issues Open (#1847)
* Compile Winutil
* Fix Robocopy Not Copying for Users who have a Space in their name (#1851)
This was pointed out in https://github.com/ChrisTitusTech/winutil/issues/1848 issue
* Compile Winutil
* bug fixes from bad pr
* Compile Winutil
* Better JSON Parsing for Compile Script!! (#1850)
* Better JSON Parsing for Compile Script!!
Rendering Special XML Character should be possible when parsing json files that have some of these special characters, and without the need to worry about them. Try these changes to see what will be affected, and what won't be.
* Undo #1844 PR Changes
The problem that #1844 PR Tried to resolve temporarly, should now be fixed permanently with the previous changes to 'Compile.ps1' Script.
* Compile Winutil
* OO Shutup 10 Tweaks revamped (#1828)
* Add new OOSU10 configs
* Removed old OOSU config, added install and uninstall calls for the new conrfigs
* change filenames, centralize logic in Invoke-WPFOOSU
* Change Config Paths to the CTT main repo
* removed whitespace
* Add -Wait to avoid race condition when OOSU is run together with temp file cleanup
---------
Co-authored-by: Chris Titus <contact@christitus.com>
* Compile Winutil
* Add catch for restore point errors
* Compile Winutil
---------
Co-authored-by: Rux <jonathan.e.rux@ruxunderscore.com>
Co-authored-by: ChrisTitusTech <ChrisTitusTech@users.noreply.github.com>
Co-authored-by: CodingWonders <101426328+CodingWonders@users.noreply.github.com>
Co-authored-by: Mr.k <mineshtine28546271@gmail.com>
Co-authored-by: ModernTTY <165050080+ModernTTY@users.noreply.github.com>
Co-authored-by: Straight <107145976+DaEpicR@users.noreply.github.com>
Co-authored-by: DaEpicR <DaEpicR@users.noreply.github.com>
Co-authored-by: Consejos Tecnológicos de Edu <139326298+lCTdE@users.noreply.github.com>
Co-authored-by: Martin Wiethan <47688561+Marterich@users.noreply.github.com>
2024-04-20 16:38:43 -05:00
# 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)
2024-07-14 20:06:00 -05:00
# Make an Array List containing every name at first level of Json File
Test 2024 03 30 (#1852)
* Winget Sources fix (#1773)
- Sometimes, if Winget is installed under user-scope, the source isn't properly installed so that the Admin user can properly use Winget.
- This change installs the sources directly from the Winget CDN.
- Fixes #1771
https://github.com/microsoft/winget-cli/discussions/3258#discussioncomment-5951658
* Compile Winutil
* Finished conversion of DISM commands into DISM cmdlets (#1776)
* Continue conversion
Began 2nd stage of DISM command conversion. Almost all commands have been replaced by cmdlets
* Continue conversion (part 2)
Finished part 2 of DISM command to cmdlet conversion
* Add New Toggle to Disable/Enable Widgets found in Taskbar (#1768)
* Compile Winutil
* Fix Search Box Not Showing Apps/Tweaks Checkboxes When typing out Capital-Letters (#1770)
* Compile Winutil
* Add Microsoft Power Automate and Swift toolchain (#1774)
* Add power automate
* Add swift toolchain
* Compile Winutil
* Restart Explorer after Applying/Undoing Classic Right-Click Advance Tweak (#1778)
In general, I've added two lines of code to get the explorer process using 'Get-Process', then passed the process object into 'Stop-Process', Windows will automatically restart explorer, so there's no need to run a new process for explorer.
Note: restarting explorer in the UndoScript might not be necessary, as it works just fine without it, that's according to the tests done by the author of this commit.
* Compile Winutil
* editing edgeremoval.ps1 (#1834)
* editing edgeremoval.ps1
* Compile Winutil
---------
Co-authored-by: DaEpicR <DaEpicR@users.noreply.github.com>
* Compile Winutil
* Update Github Actions Auto Close Issues (#1801)
* Update Github Actions Auto Close Issues
* Add try-catch & Error Logging in Github Actions Auto Close Issues
* Add a Break Statement To Skip Checking The Remaining Labels of an Issue in Github Actions Auto Close Issues
* Add tweak (#1837)
* Compile Winutil
* Disable SCOOBE in WPFTweaksTele (#1832)
* Compile Winutil
* Fix 'Disable Storage Sense' Tweak in 'tweaks.json' File (#1843)
This was pointed out in GitHub issue https://github.com/ChrisTitusTech/winutil/issues/1838
* Compile Winutil
* Add 'UndoScript' to 'Enable End Task With Right Click' Tweak in 'tweaks.json' File (#1842)
* Compile Winutil
* - Changed version check for Winget to keep Winget updated to latest version and a couple formatting fixes. (#1829)
* Compile Winutil
* Add 'UndoScript' to 'Disable Hibernation' Tweak in 'teaks.json' File (#1799)
* Compile Winutil
* Added Requested Apps and Update Command Example in 'README.md' File (#1795)
* Add 'UltraVNC' App to 'application.json' File
* Update Command Example under sub-section 'Automation'
This Commit and its changes are related to issue #1767 , url for issue: https://github.com/ChrisTitusTech/winutil/issues/1767
* Add 'OrcaSlicer' App to 'application.json' File
* Add 'Tixati' App to 'application.json' File
* Add 'Unigram' App to 'application.json' File
* Add 'PDFgear' App to 'application.json' File
* Add 'Windows Firewall Control' App to 'application.json' File
* Add 'VistaSwitcher' App to 'application.json' File
* Add 'Windows Auto Dark Mode' App to 'application.json' File
* Add 'CapFrameX' App to 'application.json' File
* Update The Link for 'Unigram' App in 'application.json' File
* Add 'Magic Wormhole' App to 'application.json' File
* Compile Winutil
* Add apps from #250 (#1787)
* Add SQL management
* Add java runtimes
* Add azure data studio
* Compile Winutil
* Update inputXML.xaml (#1845)
- Added UseLayoutRounding="True"
- This may help fix some cases where text may look blurry on screen for some people.
* Compile Winutil
* A Temporary Fix to Compilation Program in 'Compile.ps1' Script (#1844)
For whatever reason, Compiling using the 'Compile.ps1' Script when there's a Single Quote, in the description of an App for example, it'll try "escaping" it by adding another Single Quote, which's kind of weird.
Before there was an Apostrophe, and it'll Compile into Question Marks, probably because the Compile Script doesn't know what an Apostrophe is, or it can't escape it (or for another reason, didn't dig deeper into it), in the end I've made it neither an Apostrophe nor a Single Quote, just the sentence without contractions (Without shortening by combining words).
* Compile Winutil
* Update Winget Install and Uninstall / Add NuGet and Microsoft.Winget.Client Modules (#1830)
* - Changed how WinGet installs and uninstalls are handled, by utilizing and .
* Update Winget Install and Uninstall / Add NuGet and Microsoft.Winget.Client Modules
- Fixed commands for installing and uninstalling programs through WinGet.
- Added NuGet Package Providers (thanks @Marterich)
- Added Microsoft.WinGet.Client Module (thanks @Marterich)
* Compile Winutil
* Reopen #1747 PR (#1818)
* Add fxsound
* Add simplenote
* Add flow launcher
* Add CMake
* Add musescore
* Add jpegview
* Add explorer patcher
* Add lockhunter
* Add BRU
* Add spacesniffer
* Add Quick Look
* Add harmonoid
* Add revolt
* Add link shell extensions
* Add WizFile
* Add HWMonitor
* Add XnView
* Add tabby.sh
* Add signalRGB
* Add autoruns
* Fix typo for 'Autoruns' App in 'applications.json' File
* Remove 'Explorer Patcher' App in 'applications.json' File
as mentioned by Chris's Feedback on https://github.com/ChrisTitusTech/winutil/pull/1818 PR, Explorer Patcher is known to cause Stability Related Issues to Users who use it, removing it from the Applications List would be a better/wiser decision.
* Re-Add 'fxsound' App after Resolving Merge Conflict
* Re-Add 'tabby.sh' App after Resolving Merge Conflict
---------
Co-authored-by: ModernTTY <165050080+ModernTTY@users.noreply.github.com>
* Compile Winutil
* Fix Github Actions Auto Close Issues not leaving Issues Open (#1847)
* Compile Winutil
* Fix Robocopy Not Copying for Users who have a Space in their name (#1851)
This was pointed out in https://github.com/ChrisTitusTech/winutil/issues/1848 issue
* Compile Winutil
* bug fixes from bad pr
* Compile Winutil
* Better JSON Parsing for Compile Script!! (#1850)
* Better JSON Parsing for Compile Script!!
Rendering Special XML Character should be possible when parsing json files that have some of these special characters, and without the need to worry about them. Try these changes to see what will be affected, and what won't be.
* Undo #1844 PR Changes
The problem that #1844 PR Tried to resolve temporarly, should now be fixed permanently with the previous changes to 'Compile.ps1' Script.
* Compile Winutil
* OO Shutup 10 Tweaks revamped (#1828)
* Add new OOSU10 configs
* Removed old OOSU config, added install and uninstall calls for the new conrfigs
* change filenames, centralize logic in Invoke-WPFOOSU
* Change Config Paths to the CTT main repo
* removed whitespace
* Add -Wait to avoid race condition when OOSU is run together with temp file cleanup
---------
Co-authored-by: Chris Titus <contact@christitus.com>
* Compile Winutil
* Add catch for restore point errors
* Compile Winutil
---------
Co-authored-by: Rux <jonathan.e.rux@ruxunderscore.com>
Co-authored-by: ChrisTitusTech <ChrisTitusTech@users.noreply.github.com>
Co-authored-by: CodingWonders <101426328+CodingWonders@users.noreply.github.com>
Co-authored-by: Mr.k <mineshtine28546271@gmail.com>
Co-authored-by: ModernTTY <165050080+ModernTTY@users.noreply.github.com>
Co-authored-by: Straight <107145976+DaEpicR@users.noreply.github.com>
Co-authored-by: DaEpicR <DaEpicR@users.noreply.github.com>
Co-authored-by: Consejos Tecnológicos de Edu <139326298+lCTdE@users.noreply.github.com>
Co-authored-by: Martin Wiethan <47688561+Marterich@users.noreply.github.com>
2024-04-20 16:38:43 -05:00
$jsonAsObject = $json | convertfrom-json
2024-07-14 20:06:00 -05:00
$firstLevelJsonList = [ System.Collections.ArrayList ] :: new ( )
$jsonAsObject . PSObject . Properties . Name | ForEach-Object { $null = $firstLevelJsonList . Add ( $_ ) }
2024-06-28 16:59:38 -05:00
# Note:
# Avoid using HTML Entity Codes, for example '”' (stands for "Right Double Quotation Mark"),
# Use **HTML decimal/hex codes instead**, as using HTML Entity Codes will result in XML parse Error when running the compiled script.
for ( $i = 0 ; $i -lt $firstLevelJsonList . Count ; $i + = 1 ) {
Test 2024 03 30 (#1852)
* Winget Sources fix (#1773)
- Sometimes, if Winget is installed under user-scope, the source isn't properly installed so that the Admin user can properly use Winget.
- This change installs the sources directly from the Winget CDN.
- Fixes #1771
https://github.com/microsoft/winget-cli/discussions/3258#discussioncomment-5951658
* Compile Winutil
* Finished conversion of DISM commands into DISM cmdlets (#1776)
* Continue conversion
Began 2nd stage of DISM command conversion. Almost all commands have been replaced by cmdlets
* Continue conversion (part 2)
Finished part 2 of DISM command to cmdlet conversion
* Add New Toggle to Disable/Enable Widgets found in Taskbar (#1768)
* Compile Winutil
* Fix Search Box Not Showing Apps/Tweaks Checkboxes When typing out Capital-Letters (#1770)
* Compile Winutil
* Add Microsoft Power Automate and Swift toolchain (#1774)
* Add power automate
* Add swift toolchain
* Compile Winutil
* Restart Explorer after Applying/Undoing Classic Right-Click Advance Tweak (#1778)
In general, I've added two lines of code to get the explorer process using 'Get-Process', then passed the process object into 'Stop-Process', Windows will automatically restart explorer, so there's no need to run a new process for explorer.
Note: restarting explorer in the UndoScript might not be necessary, as it works just fine without it, that's according to the tests done by the author of this commit.
* Compile Winutil
* editing edgeremoval.ps1 (#1834)
* editing edgeremoval.ps1
* Compile Winutil
---------
Co-authored-by: DaEpicR <DaEpicR@users.noreply.github.com>
* Compile Winutil
* Update Github Actions Auto Close Issues (#1801)
* Update Github Actions Auto Close Issues
* Add try-catch & Error Logging in Github Actions Auto Close Issues
* Add a Break Statement To Skip Checking The Remaining Labels of an Issue in Github Actions Auto Close Issues
* Add tweak (#1837)
* Compile Winutil
* Disable SCOOBE in WPFTweaksTele (#1832)
* Compile Winutil
* Fix 'Disable Storage Sense' Tweak in 'tweaks.json' File (#1843)
This was pointed out in GitHub issue https://github.com/ChrisTitusTech/winutil/issues/1838
* Compile Winutil
* Add 'UndoScript' to 'Enable End Task With Right Click' Tweak in 'tweaks.json' File (#1842)
* Compile Winutil
* - Changed version check for Winget to keep Winget updated to latest version and a couple formatting fixes. (#1829)
* Compile Winutil
* Add 'UndoScript' to 'Disable Hibernation' Tweak in 'teaks.json' File (#1799)
* Compile Winutil
* Added Requested Apps and Update Command Example in 'README.md' File (#1795)
* Add 'UltraVNC' App to 'application.json' File
* Update Command Example under sub-section 'Automation'
This Commit and its changes are related to issue #1767 , url for issue: https://github.com/ChrisTitusTech/winutil/issues/1767
* Add 'OrcaSlicer' App to 'application.json' File
* Add 'Tixati' App to 'application.json' File
* Add 'Unigram' App to 'application.json' File
* Add 'PDFgear' App to 'application.json' File
* Add 'Windows Firewall Control' App to 'application.json' File
* Add 'VistaSwitcher' App to 'application.json' File
* Add 'Windows Auto Dark Mode' App to 'application.json' File
* Add 'CapFrameX' App to 'application.json' File
* Update The Link for 'Unigram' App in 'application.json' File
* Add 'Magic Wormhole' App to 'application.json' File
* Compile Winutil
* Add apps from #250 (#1787)
* Add SQL management
* Add java runtimes
* Add azure data studio
* Compile Winutil
* Update inputXML.xaml (#1845)
- Added UseLayoutRounding="True"
- This may help fix some cases where text may look blurry on screen for some people.
* Compile Winutil
* A Temporary Fix to Compilation Program in 'Compile.ps1' Script (#1844)
For whatever reason, Compiling using the 'Compile.ps1' Script when there's a Single Quote, in the description of an App for example, it'll try "escaping" it by adding another Single Quote, which's kind of weird.
Before there was an Apostrophe, and it'll Compile into Question Marks, probably because the Compile Script doesn't know what an Apostrophe is, or it can't escape it (or for another reason, didn't dig deeper into it), in the end I've made it neither an Apostrophe nor a Single Quote, just the sentence without contractions (Without shortening by combining words).
* Compile Winutil
* Update Winget Install and Uninstall / Add NuGet and Microsoft.Winget.Client Modules (#1830)
* - Changed how WinGet installs and uninstalls are handled, by utilizing and .
* Update Winget Install and Uninstall / Add NuGet and Microsoft.Winget.Client Modules
- Fixed commands for installing and uninstalling programs through WinGet.
- Added NuGet Package Providers (thanks @Marterich)
- Added Microsoft.WinGet.Client Module (thanks @Marterich)
* Compile Winutil
* Reopen #1747 PR (#1818)
* Add fxsound
* Add simplenote
* Add flow launcher
* Add CMake
* Add musescore
* Add jpegview
* Add explorer patcher
* Add lockhunter
* Add BRU
* Add spacesniffer
* Add Quick Look
* Add harmonoid
* Add revolt
* Add link shell extensions
* Add WizFile
* Add HWMonitor
* Add XnView
* Add tabby.sh
* Add signalRGB
* Add autoruns
* Fix typo for 'Autoruns' App in 'applications.json' File
* Remove 'Explorer Patcher' App in 'applications.json' File
as mentioned by Chris's Feedback on https://github.com/ChrisTitusTech/winutil/pull/1818 PR, Explorer Patcher is known to cause Stability Related Issues to Users who use it, removing it from the Applications List would be a better/wiser decision.
* Re-Add 'fxsound' App after Resolving Merge Conflict
* Re-Add 'tabby.sh' App after Resolving Merge Conflict
---------
Co-authored-by: ModernTTY <165050080+ModernTTY@users.noreply.github.com>
* Compile Winutil
* Fix Github Actions Auto Close Issues not leaving Issues Open (#1847)
* Compile Winutil
* Fix Robocopy Not Copying for Users who have a Space in their name (#1851)
This was pointed out in https://github.com/ChrisTitusTech/winutil/issues/1848 issue
* Compile Winutil
* bug fixes from bad pr
* Compile Winutil
* Better JSON Parsing for Compile Script!! (#1850)
* Better JSON Parsing for Compile Script!!
Rendering Special XML Character should be possible when parsing json files that have some of these special characters, and without the need to worry about them. Try these changes to see what will be affected, and what won't be.
* Undo #1844 PR Changes
The problem that #1844 PR Tried to resolve temporarly, should now be fixed permanently with the previous changes to 'Compile.ps1' Script.
* Compile Winutil
* OO Shutup 10 Tweaks revamped (#1828)
* Add new OOSU10 configs
* Removed old OOSU config, added install and uninstall calls for the new conrfigs
* change filenames, centralize logic in Invoke-WPFOOSU
* Change Config Paths to the CTT main repo
* removed whitespace
* Add -Wait to avoid race condition when OOSU is run together with temp file cleanup
---------
Co-authored-by: Chris Titus <contact@christitus.com>
* Compile Winutil
* Add catch for restore point errors
* Compile Winutil
---------
Co-authored-by: Rux <jonathan.e.rux@ruxunderscore.com>
Co-authored-by: ChrisTitusTech <ChrisTitusTech@users.noreply.github.com>
Co-authored-by: CodingWonders <101426328+CodingWonders@users.noreply.github.com>
Co-authored-by: Mr.k <mineshtine28546271@gmail.com>
Co-authored-by: ModernTTY <165050080+ModernTTY@users.noreply.github.com>
Co-authored-by: Straight <107145976+DaEpicR@users.noreply.github.com>
Co-authored-by: DaEpicR <DaEpicR@users.noreply.github.com>
Co-authored-by: Consejos Tecnológicos de Edu <139326298+lCTdE@users.noreply.github.com>
Co-authored-by: Martin Wiethan <47688561+Marterich@users.noreply.github.com>
2024-04-20 16:38:43 -05:00
$firstLevelName = $firstLevelJsonList [ $i ]
2024-07-25 16:27:29 -05:00
if ( $jsonAsObject . $firstLevelName . content -ne $null ) {
2024-06-28 16:23:21 -05:00
$jsonAsObject . $firstLevelName . content = $jsonAsObject . $firstLevelName . content . replace ( '&' , '&' ) . replace ( '“' , '“' ) . replace ( '”' , '”' ) . replace ( " ' " , ''' ) . replace ( '<' , '<' ) . replace ( '>' , '>' ) . replace ( '—' , '—' )
Test 2024 03 30 (#1852)
* Winget Sources fix (#1773)
- Sometimes, if Winget is installed under user-scope, the source isn't properly installed so that the Admin user can properly use Winget.
- This change installs the sources directly from the Winget CDN.
- Fixes #1771
https://github.com/microsoft/winget-cli/discussions/3258#discussioncomment-5951658
* Compile Winutil
* Finished conversion of DISM commands into DISM cmdlets (#1776)
* Continue conversion
Began 2nd stage of DISM command conversion. Almost all commands have been replaced by cmdlets
* Continue conversion (part 2)
Finished part 2 of DISM command to cmdlet conversion
* Add New Toggle to Disable/Enable Widgets found in Taskbar (#1768)
* Compile Winutil
* Fix Search Box Not Showing Apps/Tweaks Checkboxes When typing out Capital-Letters (#1770)
* Compile Winutil
* Add Microsoft Power Automate and Swift toolchain (#1774)
* Add power automate
* Add swift toolchain
* Compile Winutil
* Restart Explorer after Applying/Undoing Classic Right-Click Advance Tweak (#1778)
In general, I've added two lines of code to get the explorer process using 'Get-Process', then passed the process object into 'Stop-Process', Windows will automatically restart explorer, so there's no need to run a new process for explorer.
Note: restarting explorer in the UndoScript might not be necessary, as it works just fine without it, that's according to the tests done by the author of this commit.
* Compile Winutil
* editing edgeremoval.ps1 (#1834)
* editing edgeremoval.ps1
* Compile Winutil
---------
Co-authored-by: DaEpicR <DaEpicR@users.noreply.github.com>
* Compile Winutil
* Update Github Actions Auto Close Issues (#1801)
* Update Github Actions Auto Close Issues
* Add try-catch & Error Logging in Github Actions Auto Close Issues
* Add a Break Statement To Skip Checking The Remaining Labels of an Issue in Github Actions Auto Close Issues
* Add tweak (#1837)
* Compile Winutil
* Disable SCOOBE in WPFTweaksTele (#1832)
* Compile Winutil
* Fix 'Disable Storage Sense' Tweak in 'tweaks.json' File (#1843)
This was pointed out in GitHub issue https://github.com/ChrisTitusTech/winutil/issues/1838
* Compile Winutil
* Add 'UndoScript' to 'Enable End Task With Right Click' Tweak in 'tweaks.json' File (#1842)
* Compile Winutil
* - Changed version check for Winget to keep Winget updated to latest version and a couple formatting fixes. (#1829)
* Compile Winutil
* Add 'UndoScript' to 'Disable Hibernation' Tweak in 'teaks.json' File (#1799)
* Compile Winutil
* Added Requested Apps and Update Command Example in 'README.md' File (#1795)
* Add 'UltraVNC' App to 'application.json' File
* Update Command Example under sub-section 'Automation'
This Commit and its changes are related to issue #1767 , url for issue: https://github.com/ChrisTitusTech/winutil/issues/1767
* Add 'OrcaSlicer' App to 'application.json' File
* Add 'Tixati' App to 'application.json' File
* Add 'Unigram' App to 'application.json' File
* Add 'PDFgear' App to 'application.json' File
* Add 'Windows Firewall Control' App to 'application.json' File
* Add 'VistaSwitcher' App to 'application.json' File
* Add 'Windows Auto Dark Mode' App to 'application.json' File
* Add 'CapFrameX' App to 'application.json' File
* Update The Link for 'Unigram' App in 'application.json' File
* Add 'Magic Wormhole' App to 'application.json' File
* Compile Winutil
* Add apps from #250 (#1787)
* Add SQL management
* Add java runtimes
* Add azure data studio
* Compile Winutil
* Update inputXML.xaml (#1845)
- Added UseLayoutRounding="True"
- This may help fix some cases where text may look blurry on screen for some people.
* Compile Winutil
* A Temporary Fix to Compilation Program in 'Compile.ps1' Script (#1844)
For whatever reason, Compiling using the 'Compile.ps1' Script when there's a Single Quote, in the description of an App for example, it'll try "escaping" it by adding another Single Quote, which's kind of weird.
Before there was an Apostrophe, and it'll Compile into Question Marks, probably because the Compile Script doesn't know what an Apostrophe is, or it can't escape it (or for another reason, didn't dig deeper into it), in the end I've made it neither an Apostrophe nor a Single Quote, just the sentence without contractions (Without shortening by combining words).
* Compile Winutil
* Update Winget Install and Uninstall / Add NuGet and Microsoft.Winget.Client Modules (#1830)
* - Changed how WinGet installs and uninstalls are handled, by utilizing and .
* Update Winget Install and Uninstall / Add NuGet and Microsoft.Winget.Client Modules
- Fixed commands for installing and uninstalling programs through WinGet.
- Added NuGet Package Providers (thanks @Marterich)
- Added Microsoft.WinGet.Client Module (thanks @Marterich)
* Compile Winutil
* Reopen #1747 PR (#1818)
* Add fxsound
* Add simplenote
* Add flow launcher
* Add CMake
* Add musescore
* Add jpegview
* Add explorer patcher
* Add lockhunter
* Add BRU
* Add spacesniffer
* Add Quick Look
* Add harmonoid
* Add revolt
* Add link shell extensions
* Add WizFile
* Add HWMonitor
* Add XnView
* Add tabby.sh
* Add signalRGB
* Add autoruns
* Fix typo for 'Autoruns' App in 'applications.json' File
* Remove 'Explorer Patcher' App in 'applications.json' File
as mentioned by Chris's Feedback on https://github.com/ChrisTitusTech/winutil/pull/1818 PR, Explorer Patcher is known to cause Stability Related Issues to Users who use it, removing it from the Applications List would be a better/wiser decision.
* Re-Add 'fxsound' App after Resolving Merge Conflict
* Re-Add 'tabby.sh' App after Resolving Merge Conflict
---------
Co-authored-by: ModernTTY <165050080+ModernTTY@users.noreply.github.com>
* Compile Winutil
* Fix Github Actions Auto Close Issues not leaving Issues Open (#1847)
* Compile Winutil
* Fix Robocopy Not Copying for Users who have a Space in their name (#1851)
This was pointed out in https://github.com/ChrisTitusTech/winutil/issues/1848 issue
* Compile Winutil
* bug fixes from bad pr
* Compile Winutil
* Better JSON Parsing for Compile Script!! (#1850)
* Better JSON Parsing for Compile Script!!
Rendering Special XML Character should be possible when parsing json files that have some of these special characters, and without the need to worry about them. Try these changes to see what will be affected, and what won't be.
* Undo #1844 PR Changes
The problem that #1844 PR Tried to resolve temporarly, should now be fixed permanently with the previous changes to 'Compile.ps1' Script.
* Compile Winutil
* OO Shutup 10 Tweaks revamped (#1828)
* Add new OOSU10 configs
* Removed old OOSU config, added install and uninstall calls for the new conrfigs
* change filenames, centralize logic in Invoke-WPFOOSU
* Change Config Paths to the CTT main repo
* removed whitespace
* Add -Wait to avoid race condition when OOSU is run together with temp file cleanup
---------
Co-authored-by: Chris Titus <contact@christitus.com>
* Compile Winutil
* Add catch for restore point errors
* Compile Winutil
---------
Co-authored-by: Rux <jonathan.e.rux@ruxunderscore.com>
Co-authored-by: ChrisTitusTech <ChrisTitusTech@users.noreply.github.com>
Co-authored-by: CodingWonders <101426328+CodingWonders@users.noreply.github.com>
Co-authored-by: Mr.k <mineshtine28546271@gmail.com>
Co-authored-by: ModernTTY <165050080+ModernTTY@users.noreply.github.com>
Co-authored-by: Straight <107145976+DaEpicR@users.noreply.github.com>
Co-authored-by: DaEpicR <DaEpicR@users.noreply.github.com>
Co-authored-by: Consejos Tecnológicos de Edu <139326298+lCTdE@users.noreply.github.com>
Co-authored-by: Martin Wiethan <47688561+Marterich@users.noreply.github.com>
2024-04-20 16:38:43 -05:00
$jsonAsObject . $firstLevelName . content = $jsonAsObject . $firstLevelName . content . replace ( '''' , " ' " ) # resolves the Double Apostrophe caused by the first replace function in the main loop
}
if ( $jsonAsObject . $firstLevelName . description -ne $null ) {
2024-06-28 16:23:21 -05:00
$jsonAsObject . $firstLevelName . description = $jsonAsObject . $firstLevelName . description . replace ( '&' , '&' ) . replace ( '“' , '“' ) . replace ( '”' , '”' ) . replace ( " ' " , ''' ) . replace ( '<' , '<' ) . replace ( '>' , '>' ) . replace ( '—' , '—' )
Test 2024 03 30 (#1852)
* Winget Sources fix (#1773)
- Sometimes, if Winget is installed under user-scope, the source isn't properly installed so that the Admin user can properly use Winget.
- This change installs the sources directly from the Winget CDN.
- Fixes #1771
https://github.com/microsoft/winget-cli/discussions/3258#discussioncomment-5951658
* Compile Winutil
* Finished conversion of DISM commands into DISM cmdlets (#1776)
* Continue conversion
Began 2nd stage of DISM command conversion. Almost all commands have been replaced by cmdlets
* Continue conversion (part 2)
Finished part 2 of DISM command to cmdlet conversion
* Add New Toggle to Disable/Enable Widgets found in Taskbar (#1768)
* Compile Winutil
* Fix Search Box Not Showing Apps/Tweaks Checkboxes When typing out Capital-Letters (#1770)
* Compile Winutil
* Add Microsoft Power Automate and Swift toolchain (#1774)
* Add power automate
* Add swift toolchain
* Compile Winutil
* Restart Explorer after Applying/Undoing Classic Right-Click Advance Tweak (#1778)
In general, I've added two lines of code to get the explorer process using 'Get-Process', then passed the process object into 'Stop-Process', Windows will automatically restart explorer, so there's no need to run a new process for explorer.
Note: restarting explorer in the UndoScript might not be necessary, as it works just fine without it, that's according to the tests done by the author of this commit.
* Compile Winutil
* editing edgeremoval.ps1 (#1834)
* editing edgeremoval.ps1
* Compile Winutil
---------
Co-authored-by: DaEpicR <DaEpicR@users.noreply.github.com>
* Compile Winutil
* Update Github Actions Auto Close Issues (#1801)
* Update Github Actions Auto Close Issues
* Add try-catch & Error Logging in Github Actions Auto Close Issues
* Add a Break Statement To Skip Checking The Remaining Labels of an Issue in Github Actions Auto Close Issues
* Add tweak (#1837)
* Compile Winutil
* Disable SCOOBE in WPFTweaksTele (#1832)
* Compile Winutil
* Fix 'Disable Storage Sense' Tweak in 'tweaks.json' File (#1843)
This was pointed out in GitHub issue https://github.com/ChrisTitusTech/winutil/issues/1838
* Compile Winutil
* Add 'UndoScript' to 'Enable End Task With Right Click' Tweak in 'tweaks.json' File (#1842)
* Compile Winutil
* - Changed version check for Winget to keep Winget updated to latest version and a couple formatting fixes. (#1829)
* Compile Winutil
* Add 'UndoScript' to 'Disable Hibernation' Tweak in 'teaks.json' File (#1799)
* Compile Winutil
* Added Requested Apps and Update Command Example in 'README.md' File (#1795)
* Add 'UltraVNC' App to 'application.json' File
* Update Command Example under sub-section 'Automation'
This Commit and its changes are related to issue #1767 , url for issue: https://github.com/ChrisTitusTech/winutil/issues/1767
* Add 'OrcaSlicer' App to 'application.json' File
* Add 'Tixati' App to 'application.json' File
* Add 'Unigram' App to 'application.json' File
* Add 'PDFgear' App to 'application.json' File
* Add 'Windows Firewall Control' App to 'application.json' File
* Add 'VistaSwitcher' App to 'application.json' File
* Add 'Windows Auto Dark Mode' App to 'application.json' File
* Add 'CapFrameX' App to 'application.json' File
* Update The Link for 'Unigram' App in 'application.json' File
* Add 'Magic Wormhole' App to 'application.json' File
* Compile Winutil
* Add apps from #250 (#1787)
* Add SQL management
* Add java runtimes
* Add azure data studio
* Compile Winutil
* Update inputXML.xaml (#1845)
- Added UseLayoutRounding="True"
- This may help fix some cases where text may look blurry on screen for some people.
* Compile Winutil
* A Temporary Fix to Compilation Program in 'Compile.ps1' Script (#1844)
For whatever reason, Compiling using the 'Compile.ps1' Script when there's a Single Quote, in the description of an App for example, it'll try "escaping" it by adding another Single Quote, which's kind of weird.
Before there was an Apostrophe, and it'll Compile into Question Marks, probably because the Compile Script doesn't know what an Apostrophe is, or it can't escape it (or for another reason, didn't dig deeper into it), in the end I've made it neither an Apostrophe nor a Single Quote, just the sentence without contractions (Without shortening by combining words).
* Compile Winutil
* Update Winget Install and Uninstall / Add NuGet and Microsoft.Winget.Client Modules (#1830)
* - Changed how WinGet installs and uninstalls are handled, by utilizing and .
* Update Winget Install and Uninstall / Add NuGet and Microsoft.Winget.Client Modules
- Fixed commands for installing and uninstalling programs through WinGet.
- Added NuGet Package Providers (thanks @Marterich)
- Added Microsoft.WinGet.Client Module (thanks @Marterich)
* Compile Winutil
* Reopen #1747 PR (#1818)
* Add fxsound
* Add simplenote
* Add flow launcher
* Add CMake
* Add musescore
* Add jpegview
* Add explorer patcher
* Add lockhunter
* Add BRU
* Add spacesniffer
* Add Quick Look
* Add harmonoid
* Add revolt
* Add link shell extensions
* Add WizFile
* Add HWMonitor
* Add XnView
* Add tabby.sh
* Add signalRGB
* Add autoruns
* Fix typo for 'Autoruns' App in 'applications.json' File
* Remove 'Explorer Patcher' App in 'applications.json' File
as mentioned by Chris's Feedback on https://github.com/ChrisTitusTech/winutil/pull/1818 PR, Explorer Patcher is known to cause Stability Related Issues to Users who use it, removing it from the Applications List would be a better/wiser decision.
* Re-Add 'fxsound' App after Resolving Merge Conflict
* Re-Add 'tabby.sh' App after Resolving Merge Conflict
---------
Co-authored-by: ModernTTY <165050080+ModernTTY@users.noreply.github.com>
* Compile Winutil
* Fix Github Actions Auto Close Issues not leaving Issues Open (#1847)
* Compile Winutil
* Fix Robocopy Not Copying for Users who have a Space in their name (#1851)
This was pointed out in https://github.com/ChrisTitusTech/winutil/issues/1848 issue
* Compile Winutil
* bug fixes from bad pr
* Compile Winutil
* Better JSON Parsing for Compile Script!! (#1850)
* Better JSON Parsing for Compile Script!!
Rendering Special XML Character should be possible when parsing json files that have some of these special characters, and without the need to worry about them. Try these changes to see what will be affected, and what won't be.
* Undo #1844 PR Changes
The problem that #1844 PR Tried to resolve temporarly, should now be fixed permanently with the previous changes to 'Compile.ps1' Script.
* Compile Winutil
* OO Shutup 10 Tweaks revamped (#1828)
* Add new OOSU10 configs
* Removed old OOSU config, added install and uninstall calls for the new conrfigs
* change filenames, centralize logic in Invoke-WPFOOSU
* Change Config Paths to the CTT main repo
* removed whitespace
* Add -Wait to avoid race condition when OOSU is run together with temp file cleanup
---------
Co-authored-by: Chris Titus <contact@christitus.com>
* Compile Winutil
* Add catch for restore point errors
* Compile Winutil
---------
Co-authored-by: Rux <jonathan.e.rux@ruxunderscore.com>
Co-authored-by: ChrisTitusTech <ChrisTitusTech@users.noreply.github.com>
Co-authored-by: CodingWonders <101426328+CodingWonders@users.noreply.github.com>
Co-authored-by: Mr.k <mineshtine28546271@gmail.com>
Co-authored-by: ModernTTY <165050080+ModernTTY@users.noreply.github.com>
Co-authored-by: Straight <107145976+DaEpicR@users.noreply.github.com>
Co-authored-by: DaEpicR <DaEpicR@users.noreply.github.com>
Co-authored-by: Consejos Tecnológicos de Edu <139326298+lCTdE@users.noreply.github.com>
Co-authored-by: Martin Wiethan <47688561+Marterich@users.noreply.github.com>
2024-04-20 16:38:43 -05:00
$jsonAsObject . $firstLevelName . description = $jsonAsObject . $firstLevelName . description . replace ( '''' , " ' " ) # resolves the Double Apostrophe caused by the first replace function in the main loop
2024-07-25 16:27:29 -05:00
}
}
2024-06-28 16:59:38 -05:00
# Add 'WPFInstall' as a prefix to every entry-name in 'applications.json' file
if ( $psitem . Name -eq " applications.json " ) {
for ( $i = 0 ; $i -lt $firstLevelJsonList . Count ; $i + = 1 ) {
$appEntryName = $firstLevelJsonList [ $i ]
$appEntryContent = $jsonAsObject . $appEntryName
# Remove the entire app entry, so we could add it later with a different name
$jsonAsObject . PSObject . Properties . Remove ( $appEntryName )
# Add the app entry, but with a different name (WPFInstall + The App Entry Name)
$jsonAsObject | Add-Member -MemberType NoteProperty -Name " WPFInstall $appEntryName " -Value $appEntryContent
}
}
# The replace at the end is required, as without it the output of 'converto-json' will be somewhat weird for Multiline Strings
# Most Notably is the scripts in some json files, making it harder for users who want to review these scripts, which're found in the compiled script
$json = ( $jsonAsObject | convertto-json -Depth 3 ) . replace ( '\r\n' , " `r `n " )
Test 2024 03 30 (#1852)
* Winget Sources fix (#1773)
- Sometimes, if Winget is installed under user-scope, the source isn't properly installed so that the Admin user can properly use Winget.
- This change installs the sources directly from the Winget CDN.
- Fixes #1771
https://github.com/microsoft/winget-cli/discussions/3258#discussioncomment-5951658
* Compile Winutil
* Finished conversion of DISM commands into DISM cmdlets (#1776)
* Continue conversion
Began 2nd stage of DISM command conversion. Almost all commands have been replaced by cmdlets
* Continue conversion (part 2)
Finished part 2 of DISM command to cmdlet conversion
* Add New Toggle to Disable/Enable Widgets found in Taskbar (#1768)
* Compile Winutil
* Fix Search Box Not Showing Apps/Tweaks Checkboxes When typing out Capital-Letters (#1770)
* Compile Winutil
* Add Microsoft Power Automate and Swift toolchain (#1774)
* Add power automate
* Add swift toolchain
* Compile Winutil
* Restart Explorer after Applying/Undoing Classic Right-Click Advance Tweak (#1778)
In general, I've added two lines of code to get the explorer process using 'Get-Process', then passed the process object into 'Stop-Process', Windows will automatically restart explorer, so there's no need to run a new process for explorer.
Note: restarting explorer in the UndoScript might not be necessary, as it works just fine without it, that's according to the tests done by the author of this commit.
* Compile Winutil
* editing edgeremoval.ps1 (#1834)
* editing edgeremoval.ps1
* Compile Winutil
---------
Co-authored-by: DaEpicR <DaEpicR@users.noreply.github.com>
* Compile Winutil
* Update Github Actions Auto Close Issues (#1801)
* Update Github Actions Auto Close Issues
* Add try-catch & Error Logging in Github Actions Auto Close Issues
* Add a Break Statement To Skip Checking The Remaining Labels of an Issue in Github Actions Auto Close Issues
* Add tweak (#1837)
* Compile Winutil
* Disable SCOOBE in WPFTweaksTele (#1832)
* Compile Winutil
* Fix 'Disable Storage Sense' Tweak in 'tweaks.json' File (#1843)
This was pointed out in GitHub issue https://github.com/ChrisTitusTech/winutil/issues/1838
* Compile Winutil
* Add 'UndoScript' to 'Enable End Task With Right Click' Tweak in 'tweaks.json' File (#1842)
* Compile Winutil
* - Changed version check for Winget to keep Winget updated to latest version and a couple formatting fixes. (#1829)
* Compile Winutil
* Add 'UndoScript' to 'Disable Hibernation' Tweak in 'teaks.json' File (#1799)
* Compile Winutil
* Added Requested Apps and Update Command Example in 'README.md' File (#1795)
* Add 'UltraVNC' App to 'application.json' File
* Update Command Example under sub-section 'Automation'
This Commit and its changes are related to issue #1767 , url for issue: https://github.com/ChrisTitusTech/winutil/issues/1767
* Add 'OrcaSlicer' App to 'application.json' File
* Add 'Tixati' App to 'application.json' File
* Add 'Unigram' App to 'application.json' File
* Add 'PDFgear' App to 'application.json' File
* Add 'Windows Firewall Control' App to 'application.json' File
* Add 'VistaSwitcher' App to 'application.json' File
* Add 'Windows Auto Dark Mode' App to 'application.json' File
* Add 'CapFrameX' App to 'application.json' File
* Update The Link for 'Unigram' App in 'application.json' File
* Add 'Magic Wormhole' App to 'application.json' File
* Compile Winutil
* Add apps from #250 (#1787)
* Add SQL management
* Add java runtimes
* Add azure data studio
* Compile Winutil
* Update inputXML.xaml (#1845)
- Added UseLayoutRounding="True"
- This may help fix some cases where text may look blurry on screen for some people.
* Compile Winutil
* A Temporary Fix to Compilation Program in 'Compile.ps1' Script (#1844)
For whatever reason, Compiling using the 'Compile.ps1' Script when there's a Single Quote, in the description of an App for example, it'll try "escaping" it by adding another Single Quote, which's kind of weird.
Before there was an Apostrophe, and it'll Compile into Question Marks, probably because the Compile Script doesn't know what an Apostrophe is, or it can't escape it (or for another reason, didn't dig deeper into it), in the end I've made it neither an Apostrophe nor a Single Quote, just the sentence without contractions (Without shortening by combining words).
* Compile Winutil
* Update Winget Install and Uninstall / Add NuGet and Microsoft.Winget.Client Modules (#1830)
* - Changed how WinGet installs and uninstalls are handled, by utilizing and .
* Update Winget Install and Uninstall / Add NuGet and Microsoft.Winget.Client Modules
- Fixed commands for installing and uninstalling programs through WinGet.
- Added NuGet Package Providers (thanks @Marterich)
- Added Microsoft.WinGet.Client Module (thanks @Marterich)
* Compile Winutil
* Reopen #1747 PR (#1818)
* Add fxsound
* Add simplenote
* Add flow launcher
* Add CMake
* Add musescore
* Add jpegview
* Add explorer patcher
* Add lockhunter
* Add BRU
* Add spacesniffer
* Add Quick Look
* Add harmonoid
* Add revolt
* Add link shell extensions
* Add WizFile
* Add HWMonitor
* Add XnView
* Add tabby.sh
* Add signalRGB
* Add autoruns
* Fix typo for 'Autoruns' App in 'applications.json' File
* Remove 'Explorer Patcher' App in 'applications.json' File
as mentioned by Chris's Feedback on https://github.com/ChrisTitusTech/winutil/pull/1818 PR, Explorer Patcher is known to cause Stability Related Issues to Users who use it, removing it from the Applications List would be a better/wiser decision.
* Re-Add 'fxsound' App after Resolving Merge Conflict
* Re-Add 'tabby.sh' App after Resolving Merge Conflict
---------
Co-authored-by: ModernTTY <165050080+ModernTTY@users.noreply.github.com>
* Compile Winutil
* Fix Github Actions Auto Close Issues not leaving Issues Open (#1847)
* Compile Winutil
* Fix Robocopy Not Copying for Users who have a Space in their name (#1851)
This was pointed out in https://github.com/ChrisTitusTech/winutil/issues/1848 issue
* Compile Winutil
* bug fixes from bad pr
* Compile Winutil
* Better JSON Parsing for Compile Script!! (#1850)
* Better JSON Parsing for Compile Script!!
Rendering Special XML Character should be possible when parsing json files that have some of these special characters, and without the need to worry about them. Try these changes to see what will be affected, and what won't be.
* Undo #1844 PR Changes
The problem that #1844 PR Tried to resolve temporarly, should now be fixed permanently with the previous changes to 'Compile.ps1' Script.
* Compile Winutil
* OO Shutup 10 Tweaks revamped (#1828)
* Add new OOSU10 configs
* Removed old OOSU config, added install and uninstall calls for the new conrfigs
* change filenames, centralize logic in Invoke-WPFOOSU
* Change Config Paths to the CTT main repo
* removed whitespace
* Add -Wait to avoid race condition when OOSU is run together with temp file cleanup
---------
Co-authored-by: Chris Titus <contact@christitus.com>
* Compile Winutil
* Add catch for restore point errors
* Compile Winutil
---------
Co-authored-by: Rux <jonathan.e.rux@ruxunderscore.com>
Co-authored-by: ChrisTitusTech <ChrisTitusTech@users.noreply.github.com>
Co-authored-by: CodingWonders <101426328+CodingWonders@users.noreply.github.com>
Co-authored-by: Mr.k <mineshtine28546271@gmail.com>
Co-authored-by: ModernTTY <165050080+ModernTTY@users.noreply.github.com>
Co-authored-by: Straight <107145976+DaEpicR@users.noreply.github.com>
Co-authored-by: DaEpicR <DaEpicR@users.noreply.github.com>
Co-authored-by: Consejos Tecnológicos de Edu <139326298+lCTdE@users.noreply.github.com>
Co-authored-by: Martin Wiethan <47688561+Marterich@users.noreply.github.com>
2024-04-20 16:38:43 -05:00
2024-02-21 16:06:27 -06:00
$sync . configs . $ ( $psitem . BaseName ) = $json | convertfrom-json
2024-06-10 15:24:12 -05:00
$script_content . Add ( $ ( Write-output " `$ sync.configs. $( $psitem . BaseName ) = ' $json ' ` | convertfrom-json " ) )
2023-03-07 14:28:00 -06:00
}
2024-07-25 19:32:23 -05:00
$xaml = ( Get-Content " $workingdir \xaml\inputXML.xaml " ) . replace ( " ' " , " '' " )
2024-03-21 18:58:40 -05:00
2024-02-21 16:06:27 -06:00
# Dot-source the Get-TabXaml function
2024-07-25 19:32:23 -05:00
. " $workingdir \functions\private\Get-TabXaml.ps1 "
2024-02-21 16:06:27 -06:00
2024-06-28 16:59:38 -05:00
Update-Progress " Building: Xaml " 75
2024-06-10 15:24:12 -05:00
$appXamlContent = Get-TabXaml " applications " 5
$tweaksXamlContent = Get-TabXaml " tweaks "
$featuresXamlContent = Get-TabXaml " feature "
2024-02-21 16:06:27 -06:00
2024-03-21 18:58:40 -05:00
2024-06-28 16:59:38 -05:00
Update-Progress " Adding: Xaml " 90
2024-03-21 18:58:40 -05:00
# Replace the placeholder in $inputXML with the content of inputApp.xaml
$xaml = $xaml -replace " {{InstallPanel_applications}} " , $appXamlContent
$xaml = $xaml -replace " {{InstallPanel_tweaks}} " , $tweaksXamlContent
$xaml = $xaml -replace " {{InstallPanel_features}} " , $featuresXamlContent
2024-06-10 15:24:12 -05:00
$script_content . Add ( $ ( Write-output " `$ inputXML = ' $xaml ' " ) )
2024-07-25 19:32:23 -05:00
$script_content . Add ( $ ( Get-Content " $workingdir \scripts\main.ps1 " ) )
2024-06-10 15:24:12 -05:00
if ( $Debug ) {
2024-06-28 16:59:38 -05:00
Update-Progress " Writing debug files " 95
2024-07-25 19:32:23 -05:00
$appXamlContent | Out-File -FilePath " $workingdir \xaml\inputApp.xaml " -Encoding ascii
$tweaksXamlContent | Out-File -FilePath " $workingdir \xaml\inputTweaks.xaml " -Encoding ascii
$featuresXamlContent | Out-File -FilePath " $workingdir \xaml\inputFeatures.xaml " -Encoding ascii
2024-06-10 15:24:12 -05:00
}
else {
2024-06-28 16:59:38 -05:00
Update-Progress " Removing temporary files " 99
2024-07-25 19:32:23 -05:00
Remove-Item " $workingdir \xaml\inputApp.xaml " -ErrorAction SilentlyContinue
Remove-Item " $workingdir \xaml\inputTweaks.xaml " -ErrorAction SilentlyContinue
Remove-Item " $workingdir \xaml\inputFeatures.xaml " -ErrorAction SilentlyContinue
2024-06-10 15:24:12 -05:00
}
2024-03-21 18:58:40 -05:00
2024-07-25 19:32:23 -05:00
Set-Content -Path " $workingdir \ $scriptname " -Value ( $script_content -join " `r `n " ) -Encoding ascii
2024-06-25 14:10:16 -05:00
Write-Progress -Activity " Compiling " -Completed
if ( $run ) {
2024-06-25 15:05:19 -05:00
try {
2024-07-25 19:32:23 -05:00
Start-Process -FilePath " pwsh " -ArgumentList " $workingdir \ $scriptname "
2024-06-25 15:05:19 -05:00
}
catch {
2024-07-25 19:32:23 -05:00
Start-Process -FilePath " powershell " -ArgumentList " $workingdir \ $scriptname "
2024-06-25 15:05:19 -05:00
}
2024-06-28 17:15:39 -05:00
2024-06-28 16:23:21 -05:00
}