From aaddd92ccdb2021bc6fe342f576444ef3eea0f82 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 1 May 2025 02:38:13 +0000 Subject: [PATCH] - Set ALLUSERS=0 for non-admin installations to ensure proper installation to AppData/Local/Agentuity - Keep ALLUSERS=1 for admin installations to maintain system-wide installation behavior Co-Authored-By: jhaynie@agentuity.com --- install.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.ps1 b/install.ps1 index d18e81fa..b3e17845 100644 --- a/install.ps1 +++ b/install.ps1 @@ -472,7 +472,8 @@ function Install-MSI { } $quietParam = "/qn" - $arguments = "/i `"$MsiPath`" $quietParam /norestart /log `"$LogPath`" ALLUSERS=1 $installDirParam" + $allusersParam = if (Test-Administrator) { "ALLUSERS=1" } else { "ALLUSERS=0" } + $arguments = "/i `"$MsiPath`" $quietParam /norestart /log `"$LogPath`" $allusersParam $installDirParam" Write-Step "MSI command: msiexec.exe $arguments" $process = Start-Process -FilePath "msiexec.exe" -ArgumentList $arguments -Wait -PassThru