Compare commits

..

3 commits

View file

@ -176,7 +176,7 @@ $null = New-Module {
#> #>
function Deploy-SoftwareAction { function Deploy-SoftwareAction {
param( param(
[InstallerAction] $Action = $null [Nullable[InstallerAction]] $Action = $null
) )
[bool] $install = $null; [bool] $install = $null;
@ -258,7 +258,7 @@ $null = New-Module {
& "$softwarePath/zoxide/Manage.ps1" @arguments; & "$softwarePath/zoxide/Manage.ps1" @arguments;
& "$commonSoftware/posh-git/Manage.ps1" @arguments; & "$commonSoftware/posh-git/Manage.ps1" @arguments;
& "$commonSoftware/Terminal-Icons/Manage.ps1" @arguments; & "$commonSoftware/Terminal-Icons/Manage.ps1" @arguments;
& "$commonSoftware/Oh My Posh/Manage.ps1" @arguments; & "$softwarePath/Oh My Posh/Manage.ps1" @arguments;
if ($install) { if ($install) {
Install-ChocoPackage ` Install-ChocoPackage `
@ -451,7 +451,7 @@ $null = New-Module {
$timeZoneOption = "Start"; $timeZoneOption = "Start";
$timeZoneKey = "HKLM:\SYSTEM\CurrentControlSet\Services\tzautoupdate"; $timeZoneKey = "HKLM:\SYSTEM\CurrentControlSet\Services\tzautoupdate";
$service = Get-Service W32Time; $service = Get-Service W32Time;
$autoUpdate = Get-ItemProperty $timeZoneKey -Name $timeZoneOption; $autoUpdate = (Get-Item $timeZoneKey).GetValue($timeZoneOption);
$stopped = ($service.Status -eq "Stopped"); $stopped = ($service.Status -eq "Stopped");
$setUpdate = { param([int] $Value) Set-ItemProperty $timeZoneKey -Name $timeZoneOption $Value }; $setUpdate = { param([int] $Value) Set-ItemProperty $timeZoneKey -Name $timeZoneOption $Value };