Intune Win32App - Company Portal Installs but a push notifcation states failled after successful installation

Chris Sukosd 1 Reputation point
2022-05-11T20:59:17.343+00:00

Hello,

I have deployed an optional Company Portal app in Intune (Greenshot)

We have some custom parameters set to have the install be silent and select the language as English using a modified .ini via a PowerShell script.

 $Filename = "setup.exe"  
    Start-Process -FilePath $Filename -ArgumentList "/VERYSILENT /NORESTART"  
    Start-Sleep -Seconds 1.5  
    Copy-Item -Path "greenshot-defaults.ini" -Destination "$Env:ProgramFiles\Greenshot"  
  

We are using a policy execution bypass for PowerShell as well

201148-microsoftteams-image-8.png

201196-microsoftteams-image-9.png

There are two issues with the install on the client side:

  1. We get this message "This app is no longer detected on your device it may have been uninstalled or updated to a different version (Mind you we have been testing like crazy so the application has been on off the test group machines several times)
  2. Main issue is after successful installation on client machine there is a push notification stating the installation failed.
    201177-intunemanfail.png
    The app has full functionality and is silent but we have these errors could anyone assist?

201126-compportal.png

Microsoft Security | Intune | Application management
Microsoft Security | Intune | Other
{count} votes

4 answers

Sort by: Most helpful
  1. Lu Dai-MSFT 28,501 Reputation points
    2022-05-12T02:15:55.55+00:00

    @Chris Sukosd Thanks for posting in our Q&A.

    To clarify this issue, it is suggested to just deploy the win32 app and check if it is successfully installed.

    1. If yes, then deploy the script.
    2. If not, it is suggested to check the intuneManagementExtension log in C:\ProgramData\Microsoft\IntuneManagementExtension\Logs. We can refer to the following link to troubleshoot:
      https://www.anoopcnair.com/intune-management-extension-deep-dive-level-300/
      Note: Non-Microsoft link, just for the reference.

    If there is anything update, feel free to let us know.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Chris Sukosd 1 Reputation point
    2022-05-12T13:02:04.14+00:00

    We have deployed this win32app and it has successfully installed.

    Our script has been tested in a sandbox and works the only issue is the push notification stating the install failed and the Company Portal behaves like the application was not installed.

    Everything works but it behaves like a failed deployment sending that push notification. To be clear our script is called for the install and is bundled in a win32app wrapper with the .exe. The wrapper contains the PowerShell script , .ini file and setup.exe.

    The problem flow goes as follows

    Open company portal --> click install --> install downloads -->Push notification stating application is downloading --> Push notification stating application failed.

    As stated before the application is install on the system correctly. The objective is the resolve the push notification issue. The functionality seems to be there the application does install. Mainly this seems to be a verification / detection issue. I will review the material you have linked.


  3. Chris Sukosd 1 Reputation point
    2022-05-17T12:15:52.333+00:00

    Here is some of what I see that might be glaring

    [Win32App] Path doesn't exists: C:\Program Files\Greenshot\setup.exe applicationDetected: False IntuneManagementExtension 5/17/2022 8:11:04 AM 24 (0x0018)

    [Win32App] Checked under Path: C:\Program Files\Greenshot, filePath:C:\Program Files\Greenshot\setup.exe, agent was checking under expanded: C:\Program Files\Greenshot\setup.exe, applicationDetected: False IntuneManagementExtension 5/17/2022 8:11:04 AM 24 (0x0018)
    [Win32App] Revert Wow64FsRedirection IntuneManagementExtension 5/17/2022 8:11:04 AM 24 (0x0018)
    [Win32App] detectionManager SideCarFileDetectionManager got applicationDetectedByCurrentRule: False as system IntuneManagementExtension 5/17/2022 8:11:04 AM 24 (0x0018)
    [Win32App] Completed detectionManager SideCarFileDetectionManager, applicationDetectedByCurrentRule: False IntuneManagementExtension 5/17/2022 8:11:04 AM 24 (0x0018)
    [Win32App] ===Step=== Set ComplianceStateMessage with applicationDetectedAfterExecution IntuneManagementExtension 5/17/2022 8:11:04 AM 24 (0x0018)
    RegistryKeyOrValueExistsFullPath NOT Check32BitOn64, baseReg HKEY_LOCAL_MACHINE IntuneManagementExtension 5/17/2022 8:11:04 AM 24 (0x0018)
    [StatusService] Saved AppInstallStatusReport for user 480ede94-82e9-435a-88dd-f5bd02e60c34 for app bdf77260-9cdc-4a1d-8212-3a8613277406 in the StatusServiceReports registry. IntuneManagementExtension 5/17/2022 8:11:04 AM 24 (0x0018)
    [StatusService] Sending update from StatusServicePublisher. IntuneManagementExtension 5/17/2022 8:11:04 AM 24 (0x0018)
    [StatusService] Received AppInstallStatusUpdate to send via Callback. IntuneManagementExtension 5/17/2022 8:11:04 AM 24 (0x0018)
    [StatusService] Sending an update to user 480ede94-82e9-435a-88dd-f5bd02e60c34 via callback for app: bdf77260-9cdc-4a1d-8212-3a8613277406. Applicability: Applicable, Status: Installed, ErrorCode: null IntuneManagementExtension 5/17/2022 8:11:04 AM 24 (0x0018)
    [Win32App] ===Step=== Set EnforcementStateMessage IntuneManagementExtension 5/17/2022 8:11:04 AM 24 (0x0018)
    [Win32App] SetEnforcementStateMessageWithDetectionAfterExecution starts IntuneManagementExtension 5/17/2022 8:11:04 AM 24 (0x0018)
    [Win32App] Exitcode is defined as success but it actually failed according to detection result IntuneManagementExtension 5/17/2022 8:11:04 AM 24 (0x0018)
    RegistryKeyOrValueExistsFullPath NOT Check32BitOn64, baseReg HKEY_LOCAL_MACHINE IntuneManagementExtension 5/17/2022 8:11:04 AM 24 (0x0018)
    [StatusService] Saved AppInstallStatusReport for user 480ede94-82e9-435a-88dd-f5bd02e60c34 for app bdf77260-9cdc-4a1d-8212-3a8613277406 in the StatusServiceReports registry. IntuneManagementExtension 5/17/2022 8:11:04 AM 24 (0x0018)
    [StatusService] Sending update from StatusServicePublisher. IntuneManagementExtension 5/17/2022 8:11:04 AM 24 (0x0018)
    [StatusService] Received AppInstallStatusUpdate to send via Callback. IntuneManagementExtension 5/17/2022 8:11:04 AM 24 (0x0018)
    [StatusService] Sending an update to user 480ede94-82e9-435a-88dd-f5bd02e60c34 via callback for app: bdf77260-9cdc-4a1d-8212-3a8613277406. Applicability: Applicable, Status: Failed, ErrorCode: -2016345060 IntuneManagementExtension 5/17/2022 8:11:04 AM 24 (0x0018)
    [Win32App] Set EnforcementStateMessage EnforcementState: Error, ErrorCode: -2016345060 IntuneManagementExtension 5/17/2022 8:11:04 AM 24 (0x0018)
    [Win32App] After impersonation: MORGANENG\csukosd IntuneManagementExtension 5/17/2022 8:11:04 AM 24 (0x0018)
    [Win32App] Toast message with: "C:\Program Files (x86)\Microsoft Intune Management Extension\agentexecutor.exe" -toast "ToastFailureMessage" "R3JlZW5zaG90LU5ldyBTY3JpcHQ=" "eyJDb21wYW55TmFtZSI6Ik1vcmdhbiIsIkNvbG9yQmFja2dyb3VuZExvZ29VcmkiOiJodHRwczovL2ZlZi5hbXN1YTAxMDIubWFuYWdlLm1pY3Jvc29mdC5jb20vQ29udGVudFNlcnZpY2UvU0NTZXJ2aWNlL0NvbnRlbnRzLzAxMmZlYzYyLWNjZWMtNDgxMi05NTA3LTBlNDJiMTM3NmNkZiIsIldoaXRlQmFja2dyb3VuZExvZ29VcmkiOiJodHRwczovL2ZlZi5hbXN1YTAxMDIubWFuYWdlLm1pY3Jvc29mdC5jb20vQ29udGVudFNlcnZpY2UvU0NTZXJ2aWNlL0NvbnRlbnRzLzg2NDA2NDAyLTNmZjQtNDUwOC05OWVmLWRhNWE3ZWE3NTE5OSIsIkFjY2VudENvbG9yIjotMTY3NzcyMTZ9" "0" IntuneManagementExtension 5/17/2022 8:11:04 AM 24 (0x0018)
    [Win32App] SetCurrentDirectory: C:\Program Files (x86)\Microsoft Intune Management Extension IntuneManagementExtension 5/17/2022 8:11:04 AM 24 (0x0018)
    RegistryKeyOrValueExistsFullPath NOT Check32BitOn64, baseReg HKEY_LOCAL_MACHINE IntuneManagementExtension 5/17/2022 8:11:05 AM 11 (0x000B)
    [StatusService] For user 480ede94-82e9-435a-88dd-f5bd02e60c34 for the app bdf77260-9cdc-4a1d-8212-3a8613277406 the Highest version is 1. IntuneManagementExtension 5/17/2022 8:11:05 AM 11 (0x000B)
    RegistryKeyOrValueExistsFullPath NOT Check32BitOn64, baseReg HKEY_LOCAL_MACHINE IntuneManagementExtension 5/17/2022 8:11:05 AM 11 (0x000B)
    RegistryKeyOrValueExistsFullPath NOT Check32BitOn64, baseReg HKEY_LOCAL_MACHINE IntuneManagementExtension 5/17/2022 8:11:05 AM 11 (0x000B)
    RegistryKeyOrValueExistsFullPath NOT Check32BitOn64, baseReg HKEY_LOCAL_MACHINE IntuneManagementExtension 5/17/2022 8:11:05 AM 11 (0x000B)
    RegistryKeyOrValueExistsFullPath NOT Check32BitOn64, baseReg HKEY_LOCAL_MACHINE IntuneManagementExtension 5/17/2022 8:11:05 AM 11 (0x000B)
    RegistryKeyOrValueExistsFullPath NOT Check32BitOn64, baseReg HKEY_LOCAL_MACHINE IntuneManagementExtension 5/17/2022 8:11:05 AM 11 (0x000B)
    [StatusService] Got app from Win32AppRegistry. IntuneManagementExtension 5/17/2022 8:11:05 AM 11 (0x000B)
    Cleaning up staged content C:\Windows\IMECache\bdf77260-9cdc-4a1d-8212-3a8613277406_1 IntuneManagementExtension 5/17/2022 8:11:09 AM 24 (0x0018)
    [AppStatusMgr] debug report is {"AppId":"bdf77260-9cdc-4a1d-8212-3a8613277406","InternalVersion":1,"UserId":"480ede94-82e9-435a-88dd-f5bd02e60c34","DeviceId":"05a0f859-885e-4d19-ad1a-2622379f3f7e","ExitCode":0,"ComplianceStateMessage":{"Applicability":0,"ComplianceState":2,"DesiredState":4,"ErrorCode":null,"TargetingMethod":0,"InstallContext":2,"TargetType":1,"ProductVersion":null,"AssignmentFilterIds":null},"EnforcementStateMessage":{"EnforcementState":5000,"ErrorCode":-2016345060,"TargetingMethod":0},"RebootStatus":0,"RebootReason":0,"RebootSetTimeUTC":"/Date(-62135578800000)/","ResultCreatedTimeUTC":"/Date(1652789449073)/","DownloadStartTimeUTC":"/Date(1652789449088)/","Intent":1,"Ack":false,"DeliveryOptimizationJobStatus":null,"ErrorDetails":null,"Info":"{\"EspPhase\":0,\"EspAppInstallState\":0,\"StagedContentStatus\":1,\"ContentFailureType\":null}","ApplicationName":"Greenshot-New Script"} IntuneManagementExtension 5/17/2022 8:11:09 AM 24 (0x0018)
    [AppStatusMgr] downloadTime is 5/17/2022 12:10:49 PM IntuneManagementExtension 5/17/2022 8:11:09 AM 24 (0x0018)
    RegistryKeyOrValueExistsFullPath NOT Check32BitOn64, baseReg HKEY_LOCAL_MACHINE IntuneManagementExtension 5/17/2022 8:11:09 AM 24 (0x0018)
    RegistryKeyOrValueExistsFullPath NOT Check32BitOn64, baseReg HKEY_LOCAL_MACHINE IntuneManagementExtension 5/17/2022 8:11:09 AM 24 (0x0018)
    Saved app relationship version with value 0 for bdf77260-9cdc-4a1d-8212-3a8613277406 IntuneManagementExtension 5/17/2022 8:11:09 AM 24 (0x0018)
    [AppStatusMgr] debug report is {"AppId":"bdf77260-9cdc-4a1d-8212-3a8613277406","InternalVersion":1,"UserId":"480ede94-82e9-435a-88dd-f5bd02e60c34","DeviceId":"05a0f859-885e-4d19-ad1a-2622379f3f7e","ExitCode":0,"ComplianceStateMessage":{"Applicability":0,"ComplianceState":2,"DesiredState":4,"ErrorCode":null,"TargetingMethod":0,"InstallContext":2,"TargetType":1,"ProductVersion":null,"AssignmentFilterIds":null},"EnforcementStateMessage":{"EnforcementState":5000,"ErrorCode":-2016345060,"TargetingMethod":0},"RebootStatus":0,"RebootReason":0,"RebootSetTimeUTC":"/Date(-62135578800000)/","ResultCreatedTimeUTC":"/Date(1652789449073)/","DownloadStartTimeUTC":"/Date(1652789449088)/","Intent":1,"Ack":false,"DeliveryOptimizationJobStatus":null,"ErrorDetails":null,"Info":"{\"EspPhase\":0,\"EspAppInstallState\":0,\"StagedContentStatus\":1,\"ContentFailureType\":null}","ApplicationName":"Greenshot-New Script"} IntuneManagementExtension 5/17/2022 8:11:09 AM 24 (0x0018)
    [AppStatusMgr] downloadTime is 5/17/2022 12:10:49 PM IntuneManagementExtension 5/17/2022 8:11:09 AM 24 (0x0018)
    [ReportManager] new result = {"AppId":"bdf77260-9cdc-4a1d-8212-3a8613277406","InternalVersion":1,"UserId":"480ede94-82e9-435a-88dd-f5bd02e60c34","DeviceId":"05a0f859-885e-4d19-ad1a-2622379f3f7e","ExitCode":0,"ComplianceStateMessage":{"Applicability":0,"ComplianceState":2,"DesiredState":4,"ErrorCode":null,"TargetingMethod":0,"InstallContext":2,"TargetType":1,"ProductVersion":null,"AssignmentFilterIds":null},"EnforcementStateMessage":{"EnforcementState":5000,"ErrorCode":-2016345060,"TargetingMethod":0},"RebootStatus":0,"RebootReason":0,"RebootSetTimeUTC":"/Date(-62135578800000)/","ResultCreatedTimeUTC":"/Date(1652789449073)/","DownloadStartTimeUTC":"/Date(1652789449088)/","Intent":1,"Ack":false,"DeliveryOptimizationJobStatus":null,"ErrorDetails":null,"Info":"{\"EspPhase\":0,\"EspAppInstallState\":0,\"StagedContentStatus\":1,\"ContentFailureType\":null}","ApplicationName":"Greenshot-New Script"} IntuneManagementExtension 5/17/2022 8:11:09 AM 24 (0x0018)
    [ReportManager] old result = {"AppId":"bdf77260-9cdc-4a1d-8212-3a8613277406","InternalVersion":1,"UserId":"480ede94-82e9-435a-88dd-f5bd02e60c34","DeviceId":"05a0f859-885e-4d19-ad1a-2622379f3f7e","ExitCode":0,"ComplianceStateMessage":{"Applicability":0,"ComplianceState":2,"DesiredState":4,"ErrorCode":null,"TargetingMethod":0,"InstallContext":2,"TargetType":1,"ProductVersion":null,"AssignmentFilterIds":null},"EnforcementStateMessage":{"EnforcementState":5000,"ErrorCode":-2016345060,"TargetingMethod":0},"RebootStatus":0,"RebootReason":0,"RebootSetTimeUTC":"/Date(-62135578800000)/","ResultCreatedTimeUTC":"/Date(1652802294000)/","DownloadStartTimeUTC":"/Date(1652381068000)/","Intent":1,"Ack":true,"DeliveryOptimizationJobStatus":null,"ErrorDetails":null,"Info":null,"ApplicationName":null} IntuneManagementExtension 5/17/2022 8:11:09 AM 24 (0x0018)
    [Win32App] app result (id = bdf77260-9cdc-4a1d-8212-3a8613277406, name = Greenshot-New Script, version = 1) is different from cached one, save to cache. IntuneManagementExtension 5/17/2022 8:11:09 AM 24 (0x0018)
    RegistryKeyOrValueExistsFullPath NOT Check32BitOn64, baseReg HKEY_LOCAL_MACHINE IntuneManagementExtension 5/17/2022 8:11:09 AM 24 (0x0018)
    RegistryKeyOrValueExistsFullPath NOT Check32BitOn64, baseReg HKEY_LOCAL_MACHINE IntuneManagementExtension 5/17/2022 8:11:09 AM 24 (0x0018)
    RegistryKeyOrValueExistsFullPath NOT Check32BitOn64, baseReg HKEY_LOCAL_MACHINE IntuneManagementExtension 5/17/2022 8:11:09 AM 24 (0x0018)
    RegistryKeyOrValueExistsFullPath NOT Check32BitOn64, baseReg HKEY_LOCAL_MACHINE IntuneManagementExtension 5/17/2022 8:11:09 AM 24 (0x0018)
    RegistryKeyOrValueExistsFullPath NOT Check32BitOn64, baseReg HKEY_LOCAL_MACHINE IntuneManagementExtension 5/17/2022 8:11:09 AM 24 (0x0018)
    RegistryKeyOrValueExistsFullPath NOT Check32BitOn64, baseReg HKEY_LOCAL_MACHINE IntuneManagementExtension 5/17/2022 8:11:09 AM 24 (0x0018)
    RegistryKeyOrValueExistsFullPath NOT Check32BitOn64, baseReg HKEY_LOCAL_MACHINE IntuneManagementExtension 5/17/2022 8:11:09 AM 24 (0x0018)
    RegistryKeyOrValueExistsFullPath NOT Check32BitOn64, baseReg HKEY_LOCAL_MACHINE IntuneManagementExtension 5/17/2022 8:11:09 AM 24 (0x0018)
    RegistryKeyOrValueExistsFullPath NOT Check32BitOn64, baseReg HKEY_LOCAL_MACHINE IntuneManagementExtension 5/17/2022 8:11:09 AM 24 (0x0018)
    RegistryKeyOrValueExistsFullPath NOT Check32BitOn64, baseReg HKEY_LOCAL_MACHINE IntuneManagementExtension 5/17/2022 8:11:09 AM 24 (0x0018)
    RegistryKeyOrValueExistsFullPath NOT Check32BitOn64, baseReg HKEY_LOCAL_MACHINE IntuneManagementExtension 5/17/2022 8:11:09 AM 24 (0x0018)
    RegistryKeyOrValueExistsFullPath NOT Check32BitOn64, baseReg HKEY_LOCAL_MACHINE IntuneManagementExtension 5/17/2022 8:11:09 AM 24 (0x0018)
    RegistryKeyOrValueExistsFullPath NOT Check32BitOn64, baseReg HKEY_LOCAL_MACHINE IntuneManagementExtension 5/17/2022 8:11:09 AM 24 (0x0018)
    RegistryKeyOrValueExistsFullPath NOT Check32BitOn64, baseReg HKEY_LOCAL_MACHINE IntuneManagementExtension 5/17/2022 8:11:09 AM 24 (0x0018)
    RegistryKeyOrValueExistsFullPath NOT Check32BitOn64, baseReg HKEY_LOCAL_MACHINE IntuneManagementExtension 5/17/2022 8:11:09 AM 24 (0x0018)
    RegistryKeyOrValueExistsFullPath NOT Check32BitOn64, baseReg HKEY_LOCAL_MACHINE IntuneManagementExtension 5/17/2022 8:11:09 AM 24 (0x0018)
    [Win32App] After actual execution, the sequence is ' Greenshot-POC->Greenshot-New->Greenshot-New Script-> ' IntuneManagementExtension 5/17/2022 8:11:09 AM 24 (0x0018)

    I find it odd that some of our old deployments are listed " Greenshot-POC->Greenshot-New->Greenshot-New Script-> "


  4. Dragos Radu 0 Reputation points
    2023-04-12T03:22:03.31+00:00

    Hey Chris,

    That error is caused by the detection rule. I've been battling with the same error message while installing Greenshot trough Intune until I changed the detection rule type to Registry. See image below. Key path = Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Greenshot_is1 Value name = DisplayVersion Detection method = Version Comparison Operator = Equals Value = 1.2.10.6 Greenshot version 2

    The value in my case is the version number of the Greenshot app which I configured on the App Information tab, but if you didn't configure that find the value of another reg key in the above Key path and use that for your detection rule. Greenshot version

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.