fix: check for administrator rights first and retry locked copies in install.ps1 [skip ci]

install.ps1 now stops right away with a clear message when it does not run as
administrator or SYSTEM, instead of failing with "access denied" while copying.
Copying retries while agent.exe is briefly locked, e.g. by an antivirus scan.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
MrBlakeandClaude Opus 5.5 committed 2026-11-18 12:17:24 +01:00
1 parent 8b36e5ed18
commit 8c3f297b2c
4 files changed
+23 -7

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ namespace NetBoxWindowsAgent;
internal static class AgentInfo
{
public const string Version = "0.2.0";
public const string Version = "0.2.1";
public const int Protocol = 1;
}