PortValhalla/scripts/Windows/Software/nvs/Main.ps1

21 lines
614 B
PowerShell
Raw Permalink Normal View History

2024-08-08 02:36:35 +00:00
using namespace System.Security.AccessControl;
using namespace System.Security.Principal;
. "$PSScriptRoot/../../Scripts/Security.ps1";
2024-08-08 02:36:35 +00:00
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
2024-08-08 12:09:20 +00:00
. "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1";
2024-08-08 02:36:35 +00:00
2024-09-30 03:00:20 +00:00
Start-SoftwareInstaller @args `
2024-08-08 02:36:35 +00:00
-Installer {
$env:NVS_HOME = "$env:ProgramData\nvs";
git clone "https://github.com/jasongin/nvs.git" $env:NVS_HOME;
& "$env:NVS_HOME\nvs.cmd" install;
refreshenv;
Set-UserPermissions $env:NVS_HOME;
2024-08-08 02:36:35 +00:00
} `
-Configurator {
nvs add latest;
nvs link latest;
};