Configure NVS after installation

This commit is contained in:
Manuel Thalmann 2024-08-08 14:09:20 +02:00
parent 8911b7460b
commit 8db8dc7a23

View file

@ -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;