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
@@ -340,7 +340,7 @@ Path: C:\Program Files\NetBox Windows Agent
File or folder: agent.exe
Detection method: String (version)
Operator: Greater than or equal to
Value: 0.2.0 (the version of agent.exe, see agent.exe --version)
Value: 0.2.1 (the version of agent.exe, see agent.exe --version)
Associated with a 32-bit app on 64-bit clients: No
```