@gbakkali,
Sounds like you're trying to do the installation on a machine that already has GlobalProtect installed? Is that your intent here or are you trying to just have a required deployment? I have more luck doing this with PowerShell than trying to have SCCM utilize the MSI itself. Detection
# Detect if GlobalProtect is installed, return True if yes.
$SoftwareTitle = "GlobalProtect"
$ItemProperties = Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*" | Select-Object DisplayName,UninstallString
foreach ($Item in $ItemProperties)
{
$DisplayName = $Item.DisplayName
$UninstallString = $Item.UninstallString
if($DisplayName -like "*$SoftwareTitle*")
{
#Write-Host "$DisplayName ------------------ $UninstallString"
Write-Host "True"
}
else
{
}
}
Installation
Start-Process .\GlobalProtect64.msi -wait -ArgumentList '/q'
Set-ItemProperty -Path "HKLM:\SOFTWARE\Palo Alto Networks\GlobalProtect\PanSetup" -Name "Portal" -Value "MyPortalAddress"
* Note: Add any other registry keys that your deployment requires within the installation script. Can be helpful depending on what you're setting to restart PanGPS afterwards.
Uninstall
$ItemProperties = Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*" | Select-Object PSChildName,DisplayName,UninstallString
foreach ($Item in $ItemProperties)
{
$DisplayName = $Item.DisplayName
$UninstallString = $Item.UninstallString
$PSChildName = $Item.PSChildName
if($DisplayName -like "*$SoftwareTitle*")
{
cmd.exe /c "MsiExec.exe /x$PSChildName /quiet"
}
}
... View more