Configure NVS after installation
This commit is contained in:
parent
8911b7460b
commit
8db8dc7a23
|
@ -7,9 +7,14 @@ param(
|
||||||
)
|
)
|
||||||
|
|
||||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||||
|
. "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1";
|
||||||
|
|
||||||
Start-SoftwareInstaller @PSBoundParameters `
|
Start-SoftwareInstaller @PSBoundParameters `
|
||||||
-Installer {
|
-Installer {
|
||||||
|
param(
|
||||||
|
[scriptblock] $Installer
|
||||||
|
)
|
||||||
|
|
||||||
$env:NVS_HOME = "$env:ProgramData\nvs";
|
$env:NVS_HOME = "$env:ProgramData\nvs";
|
||||||
git clone "https://github.com/jasongin/nvs.git" $env:NVS_HOME;
|
git clone "https://github.com/jasongin/nvs.git" $env:NVS_HOME;
|
||||||
& "$env:NVS_HOME\nvs.cmd" install;
|
& "$env:NVS_HOME\nvs.cmd" install;
|
||||||
|
@ -26,6 +31,7 @@ Start-SoftwareInstaller @PSBoundParameters `
|
||||||
|
|
||||||
Set-Acl $env:NVS_HOME $acl;
|
Set-Acl $env:NVS_HOME $acl;
|
||||||
refreshenv;
|
refreshenv;
|
||||||
|
& $Installer -Action ([InstallerAction]::Configure);
|
||||||
} `
|
} `
|
||||||
-Configurator {
|
-Configurator {
|
||||||
nvs add latest;
|
nvs add latest;
|
||||||
|
|
Loading…
Reference in a new issue