@letitbexai_root/lexxit-automation-framework 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -237,6 +237,21 @@ New-NetFirewallRule -DisplayName "Lexxit Agent" -Direction Inbound -Protocol TCP
|
|
|
237
237
|
Write-Host "[lexxit] Installing TightVNC..."
|
|
238
238
|
$tvncMsi = Join-Path $env:TEMP "tightvnc.msi"
|
|
239
239
|
Invoke-WebRequest -Uri $TightVncMsiUrl -OutFile $tvncMsi -UseBasicParsing
|
|
240
|
+
|
|
241
|
+
# Confirmed on a real Windows EC2 AMI: REINSTALL=ALL + REINSTALLMODE=vomus
|
|
242
|
+
# (tried first, see git history) does NOT reliably make TightVNC's MSI
|
|
243
|
+
# reapply VALUE_OF_PASSWORD on top of an already-installed copy - verified
|
|
244
|
+
# by decrypting the backend's actual stored password for a freshly
|
|
245
|
+
# re-registered agent and running it through the real VNC auth handshake
|
|
246
|
+
# directly: still rejected, even with REINSTALLMODE=vomus on the reinstall
|
|
247
|
+
# that supposedly set it. TightVNC's password-setting custom action
|
|
248
|
+
# evidently gates on something REINSTALLMODE doesn't override. An explicit
|
|
249
|
+
# uninstall first removes that "already installed" state entirely, so the
|
|
250
|
+
# following /i is always a genuine fresh install, which does apply every
|
|
251
|
+
# property correctly. /x against the same MSI package is a no-op (not an
|
|
252
|
+
# error) when TightVNC isn't installed yet, so this is safe on every run.
|
|
253
|
+
Start-Process msiexec.exe -ArgumentList @("/x", "`"$tvncMsi`"", "/quiet", "/norestart") -Wait -NoNewWindow
|
|
254
|
+
|
|
240
255
|
$msiArgs = @(
|
|
241
256
|
"/i", "`"$tvncMsi`"", "/quiet", "/norestart",
|
|
242
257
|
"ADDLOCAL=Server",
|