Switch to exe installer

This commit is contained in:
Corbin 2026-04-18 08:43:03 -04:00
parent 41465392e8
commit 8763078455

View File

@ -6,8 +6,8 @@ $TenantId = ''
$CompanyId = '' $CompanyId = ''
$UserSecret = '' $UserSecret = ''
$AgentInstallUrl = (Invoke-RestMethod -Method "Get" -URI "https://configuration.myconnectsecure.com/api/v4/configuration/agentlink?ostype=windows&msi_required=true") $AgentInstallUrl = (Invoke-RestMethod -Method "Get" -URI "https://configuration.myconnectsecure.com/api/v4/configuration/agentlink?ostype=windows")
$AgentInstallFile = 'cybercnsagent.msi' $AgentInstallFile = 'cybercnsagent.exe'
$AgentInstallPath = Join-Path -Path $PackagesPath -ChildPath $AgentInstallFile $AgentInstallPath = Join-Path -Path $PackagesPath -ChildPath $AgentInstallFile
# Prep # Prep
@ -24,8 +24,9 @@ Write-Host "Downloading agent installer..."
# Install # Install
Write-Host "Starting installation..." Write-Host "Starting installation..."
Start-Process msiexec -ArgumentList "/i `"$AgentInstallPath`" /q WRAPPED_ARGUMENTS=`"-c $CompanyId -e $TenantId -j $UserSecret -i`" /lv `"$($AgentInstallPath).log`"" -Wait Start-Process -FilePath $AgentInstallPath -ArgumentList "-c $($CompanyId) -e $TenantId -j $UserSecret -i" -Wait
Write-Host "Log saved at $($AgentInstallPath).log" #Start-Process msiexec -ArgumentList "/i `"$AgentInstallPath`" /q WRAPPED_ARGUMENTS=`"-c $CompanyId -e $TenantId -j $UserSecret -i`" /lv `"$($AgentInstallPath).log`"" -Wait
#Write-Host "Log saved at $($AgentInstallPath).log"
# Clean up # Clean up