2024-08-08 02:36:35 +00:00
|
|
|
using namespace System.Security.AccessControl;
|
|
|
|
using namespace System.Security.Principal;
|
|
|
|
|
2024-11-01 12:12:16 +00:00
|
|
|
. "$PSScriptRoot/../../lib/Security.ps1";
|
|
|
|
. "$PSScriptRoot/../../../lib/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;
|
2024-08-09 13:56:16 +00:00
|
|
|
Set-UserPermissions $env:NVS_HOME;
|
2024-08-08 02:36:35 +00:00
|
|
|
} `
|
|
|
|
-Configurator {
|
|
|
|
nvs add latest;
|
|
|
|
nvs link latest;
|
|
|
|
};
|