Forum Discussion
Mohan579
Aug 22, 2023Copper Contributor
Application installation failure
Hi Team’ we have deployed some applications through intune’ there are many devices and users have not installed the applications what we have deployed, so how to fix the installation failures in b...
rahuljindal-MVP
Bronze Contributor
I am sorry but you are giving very little information to work with. It’s like flying blind. You better off opening a support case with MS.
Mohan579
Aug 24, 2023Copper Contributor
okay bro’ this is another querie!
They are trying to uninstall older version and trying to install new version of application,
This is security application, but this is the error is getting’ they tried in test machines -
please the find the pic u can understand well
Please tell me the solution for how to fix!
- rahuljindal-MVPAug 24, 2023Bronze ContributorTry changing the values for detection from wmi to registry alone. Also, if the uninstallation is straightforward and doesn’t require reboots then consider bundling the uninstallation script for old versions and installation of new version in a single package. You can also use PS app deployment toolkit.
- Mohan579Aug 24, 2023Copper Contributor# Variable Definition
$App = @("FORCEPOINT ONE ENDPOINT")
$GFilter = "name = '" + $app + "'"
$Pathreg = "HKLM:\SOFTWARE\ForcePoint\Agent"
$GetApp = Get-CimInstance -ClassName Win32_Product -Filter "$GFilter"
$DeploymentVersion = "22.12"
#Action Error
$ErrorActionPreference = "Stop"
if((Test-path $Pathreg) -eq $false) # Check Registry Path conditcion
{
Write-Output "$App doesn't exist"
Exit 0
}
else
{
if ([System.String]::IsNullOrEmpty($GetApp))
{
Write-Output "$Pathreg is true, but the $App application doesn't exist"
Exit 0
}
elseif ($GetApp.Version -lt $DeploymentVersion) # Check App Version
{
Write-Output "$App version is $($Getapp.Version), removal failed please check logs and event viewer"
Exit 1
}
else
{
"The version is $($Getapp.Version), $App is up to date"
Exit 0
}
} - rahuljindal-MVPAug 24, 2023Bronze ContributorCan you share the script over here?
- Mohan579Aug 24, 2023Copper ContributorScript logic
- rahuljindal-MVPAug 24, 2023Bronze Contributor
Mohan579 what is the detection logic?