Skip to content

Commit

Permalink
Merge pull request #55 from emadadel4/test
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
emadadel4 authored May 27, 2024
2 parents fbf7aa0 + e121aae commit 16eee15
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 2 deletions.
22 changes: 21 additions & 1 deletion Scripts/Core/Invoke-ApplyTweaks.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function Get-SelectedTweaks {
Service = $program.Service
RemoveAppxPackage = $program.RemoveAppxPackage
Command = $program.InvokeCommand
Refresh = $program.Refresh
Refresh = $program.refresh
# add a new method tweak here

}
Expand Down Expand Up @@ -314,21 +314,41 @@ Write-Host "
foreach ($app in $tweaks) {
switch ($app.Type) {
"command" {

foreach ($cmd in $app.Command) {
ExecuteCommand -Command $cmd
}

if($app.Refresh -eq "true")
{
Write-Host "Restarting exploror..."
Stop-Process -Name explorer -Force
}
}
"modifying" {

foreach ($mod in $app.Registry) {
Set-RegistryValue -Name $mod.Name -Type $mod.Type -Path $mod.Path -Value $mod.Value
}

if($app.Refresh -eq "true")
{
Write-Host "Restarting exploror..."
Stop-Process -Name explorer -Force
}

}
"delete" {

foreach ($re in $app.Registry) {
Remove-RegistryValue -RegistryPath $re.Path -Folder $re.Name
}

if($app.Refresh -eq "true")
{
Write-Host "Restarting exploror..."
Stop-Process -Name explorer -Force
}
}
"service" {
foreach ($se in $app.Service) {
Expand Down
22 changes: 21 additions & 1 deletion itt.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7940,7 +7940,7 @@ function Get-SelectedTweaks {
Service = $program.Service
RemoveAppxPackage = $program.RemoveAppxPackage
Command = $program.InvokeCommand
Refresh = $program.Refresh
Refresh = $program.refresh
# add a new method tweak here

}
Expand Down Expand Up @@ -8229,21 +8229,41 @@ Write-Host "
foreach ($app in $tweaks) {
switch ($app.Type) {
"command" {

foreach ($cmd in $app.Command) {
ExecuteCommand -Command $cmd
}

if($app.Refresh -eq "true")
{
Write-Host "Restarting exploror..."
Stop-Process -Name explorer -Force
}
}
"modifying" {

foreach ($mod in $app.Registry) {
Set-RegistryValue -Name $mod.Name -Type $mod.Type -Path $mod.Path -Value $mod.Value
}

if($app.Refresh -eq "true")
{
Write-Host "Restarting exploror..."
Stop-Process -Name explorer -Force
}

}
"delete" {

foreach ($re in $app.Registry) {
Remove-RegistryValue -RegistryPath $re.Path -Folder $re.Name
}

if($app.Refresh -eq "true")
{
Write-Host "Restarting exploror..."
Stop-Process -Name explorer -Force
}
}
"service" {
foreach ($se in $app.Service) {
Expand Down

0 comments on commit 16eee15

Please sign in to comment.