From 8db8dc7a238bf14792edec89320277be0aa426a3 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 8 Aug 2024 14:09:20 +0200 Subject: [PATCH] Configure NVS after installation --- scripts/Windows/Software/NVS/Manage.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/Windows/Software/NVS/Manage.ps1 b/scripts/Windows/Software/NVS/Manage.ps1 index 31d6e2db..f3356e3e 100644 --- a/scripts/Windows/Software/NVS/Manage.ps1 +++ b/scripts/Windows/Software/NVS/Manage.ps1 @@ -7,9 +7,14 @@ param( ) . "$PSScriptRoot/../../../Common/Scripts/Software.ps1"; +. "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1"; Start-SoftwareInstaller @PSBoundParameters ` -Installer { + param( + [scriptblock] $Installer + ) + $env:NVS_HOME = "$env:ProgramData\nvs"; git clone "https://github.com/jasongin/nvs.git" $env:NVS_HOME; & "$env:NVS_HOME\nvs.cmd" install; @@ -26,6 +31,7 @@ Start-SoftwareInstaller @PSBoundParameters ` Set-Acl $env:NVS_HOME $acl; refreshenv; + & $Installer -Action ([InstallerAction]::Configure); } ` -Configurator { nvs add latest;