Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements from UI, Libs, Scripts, Docs, Performance and Lightweight size #90

Merged
merged 51 commits into from
Mar 1, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
128b038
(#74) Remove tweak to not detect automatically proxy settings
LeDragoX Dec 13, 2022
aad5863
fix: .Net Framework install
LeDragoX Dec 17, 2022
c2735f7
feat: add WizTree to software install
LeDragoX Dec 18, 2022
0b74cdd
fix: WSL install
LeDragoX Dec 18, 2022
d9d7a7e
(#75) Remove Feedback Hub
LeDragoX Jan 4, 2023
422b01f
(#78) Download and install Updates automatically as default
LeDragoX Jan 12, 2023
060dc70
Allow Windows Update to search missing drivers
LeDragoX Jan 12, 2023
62b6a0a
Update description about driver icons and apps
LeDragoX Jan 12, 2023
fc71596
Docs: add description to Automatic Windows Update function
LeDragoX Jan 12, 2023
edf11fe
Optimize all image sizes
LeDragoX Jan 26, 2023
7c95bf8
Optimize EVEN MORE the images!
LeDragoX Jan 26, 2023
b70ec5f
Redo script icon gradient colors
LeDragoX Jan 26, 2023
76684ff
Update script logo
LeDragoX Jan 26, 2023
81d130b
Update description about Hibernate
LeDragoX Feb 9, 2023
69d2582
(#83) Fix MouseHoverTime type on Registry
LeDragoX Feb 12, 2023
4199905
Re-architecture the folder structure
LeDragoX Feb 20, 2023
93025b6
(#84) Remove Windows Capabilities including PowerShell ISE (but not l…
LeDragoX Feb 20, 2023
2c4beb2
Debloat lib refactor/cleanup part 1
LeDragoX Feb 20, 2023
e920f6b
Debloat lib refactor/cleanup part 2
LeDragoX Feb 20, 2023
a272816
Add 2 libs to manage registry item creation/removal
LeDragoX Feb 21, 2023
02d03e5
Docs: Improve writing on README and CONTRIBUTING
LeDragoX Feb 21, 2023
8f61b5c
Fix the wrong Function name leading to errors
LeDragoX Feb 21, 2023
b0e222f
Remove H.265 Codec from system apps
LeDragoX Feb 21, 2023
53a1622
Fixed the typing in all advanced functions
LeDragoX Feb 22, 2023
a4c08d9
Fix lib types and weird imports i've done on the past
LeDragoX Feb 22, 2023
dd6112d
Update CLI imports
LeDragoX Feb 23, 2023
20c3a9a
refactor(uwp): Verify App before and proceed to next
LeDragoX Feb 24, 2023
e9c5e7a
refactor(ui): Add autocomplete to FontStyle
LeDragoX Feb 25, 2023
0b72727
chore(auto-update): Update Winget sources before upgrading all apps
LeDragoX Feb 25, 2023
eb381f3
feat(personal/scripts): restore aero shaking
LeDragoX Feb 25, 2023
fdfbbcd
fix(auto-update): add output to host while updating winget sources
LeDragoX Feb 25, 2023
de6ded5
feat(package-managers): Add the name of the package manager in the te…
LeDragoX Feb 25, 2023
55b191f
refactor(CLI/GUI): Join CLI/GUI scripts together
LeDragoX Feb 25, 2023
9bfd641
fix(revert/gui): update form only after finished
LeDragoX Feb 25, 2023
dce5354
fix(gui): Reclaim consistence through gui design
LeDragoX Feb 25, 2023
9787954
perf: Optimize script-gui.png size
LeDragoX Feb 25, 2023
10add76
docs: Remove two images from CONTRIBUTING
LeDragoX Feb 25, 2023
2f4a776
feat(title-templates): add some new effects and formatting style
LeDragoX Feb 26, 2023
0002e7a
(#84) Add option to remove PowerShell ISE
LeDragoX Feb 27, 2023
acd3aad
refactor(lib/service): Remove $CustomMessage param
LeDragoX Feb 27, 2023
8dbd38f
rename: uwp-appx-hander to uwp-app-handler
LeDragoX Feb 27, 2023
295024e
feat: Add option to enable/disable hibernate (#85)
LeDragoX Feb 27, 2023
38061a9
fix: 2 detections from PSScriptAnalyzer related to PSShouldProcess rule
LeDragoX Feb 27, 2023
89e44dc
fix(gui): design inconsistencies
LeDragoX Feb 27, 2023
6d7062c
refactor(gui): Add a function to get all the colors
LeDragoX Feb 28, 2023
76327da
fix: Use function to set revert status Globally
LeDragoX Feb 28, 2023
628fdeb
docs: explicitly tell to extract the entire zip (#89)
LeDragoX Feb 28, 2023
229bf92
feat/fix: refine GUI, allowing to resize the window correctly
LeDragoX Feb 28, 2023
cd17a3c
feat: Disable Edge startup boost + running in background
LeDragoX Mar 1, 2023
51e1fc2
feat: Add Display Driver Uninstaller (DDU) in Software Install :)
LeDragoX Mar 1, 2023
292d97b
docs: update script-logo
LeDragoX Mar 1, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor(lib/service): Remove $CustomMessage param
  • Loading branch information
LeDragoX committed Feb 27, 2023
commit acd3aadc5531a2f1f96ebf0cfabf42abee719d9b
10 changes: 2 additions & 8 deletions src/lib/debloat-helper/service-startup-handler.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ function Set-ServiceStartup() {
[String] $State,
[Parameter(Mandatory = $true)]
[String[]] $Services,
[String[]] $Filter,
[ScriptBlock] $CustomMessage
[String[]] $Filter
)

Begin {
Expand All @@ -34,12 +33,7 @@ function Set-ServiceStartup() {
Continue
}

If (!$CustomMessage) {
Write-Status -Types "@", $TweakType -Status "Setting $Service ($((Get-Service $Service).DisplayName)) as '$State' on Startup..."
} Else {
Write-Status -Types "?", $TweakType -Status $(Invoke-Expression "$CustomMessage") -Warning
}

Write-Status -Types "@", $TweakType -Status "Setting $Service ($((Get-Service $Service).DisplayName)) as '$State' on Startup..."
Get-Service -Name "$Service" -ErrorAction SilentlyContinue | Set-Service -StartupType $State
}
}
Expand Down
6 changes: 2 additions & 4 deletions src/scripts/optimize-services.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,15 @@ function Optimize-ServicesRunning() {

If ($Revert) {
Write-Status -Types "*", "Service" -Status "Reverting the tweaks is set to '$Revert'." -Warning
$CustomMessage = { "Resetting $Service ($((Get-Service $Service).DisplayName)) as 'Manual' on Startup..." }
Set-ServiceStartup -State 'Manual' -Services $ServicesToDisabled -Filter $EnableServicesOnSSD -CustomMessage $CustomMessage
Set-ServiceStartup -State 'Manual' -Services $ServicesToDisabled -Filter $EnableServicesOnSSD
} Else {
Set-ServiceStartup -State 'Disabled' -Services $ServicesToDisabled -Filter $EnableServicesOnSSD
}

Write-Section "Enabling services from Windows"

If ($IsSystemDriveSSD -or $Revert) {
$CustomMessage = { "The $Service ($((Get-Service $Service).DisplayName)) service works better in 'Automatic' mode on SSDs..." }
Set-ServiceStartup -State 'Automatic' -Services $EnableServicesOnSSD -CustomMessage $CustomMessage
Set-ServiceStartup -State 'Automatic' -Services $EnableServicesOnSSD
}

Set-ServiceStartup -State 'Manual' -Services $ServicesToManual
Expand Down