Home
%3CLINGO-SUB%20id%3D%22lingo-sub-359125%22%20slang%3D%22en-US%22%3ESupport%20Tip%3A%20Troubleshooting%20MSI%20App%20deployments%20in%20Microsoft%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-359125%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20everyone%2C%20today%20we%20have%20an%20article%20from%20Intune%20Support%20Engineer%20Leon%20Zhu.%20In%20this%20post%2C%20Leon%20talks%20about%20deploying%20MSI%20installer%20packages%20and%20how%20you%20can%20troubleshoot%20problems%20if%20the%20app%20fails%20to%20be%20installed%20on%20targeted%20devices.%20Leon%20has%20some%20really%20great%20tips%20in%20here%20so%20even%20if%20you%E2%80%99re%20like%20most%20people%20and%20never%20had%20an%20issue%2C%20I%E2%80%99d%20suggest%20giving%20it%20a%20quick%20read%20regardless.%20It%20will%20help%20with%20understanding%20how%20the%20overall%20process%20works%2C%20and%20if%20you%20do%20happen%20to%20run%20into%20a%20problem%20in%20the%20future%2C%20his%20tips%20will%20put%20you%20well%20down%20the%20path%20of%20getting%20them%20resolved%20quickly%20and%20easily.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3D%3D%3D%3D%3D%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIntune%20is%20a%20great%20way%20to%20deploy%20Windows%20LOB%20apps%20to%20PCs%20in%20your%20environment%2C%20and%20today%20I%20want%20to%20talk%20a%20little%20bit%20about%20how%20that%20process%20works%20and%20share%20some%20tips%20you%20can%20use%20to%20help%20resolve%20any%20issues%20you%20might%20run%20into.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHere%20in%20support%2C%20when%20we%20talk%20to%20someone%20having%20an%20issue%20deploying%20an%20MSI%20package%20it%20usually%20goes%20something%20like%20this%3A%20An%20app%20deployment%20profile%20was%20created%20for%20a%20Line%20of%20Business%20(LOB)%20app%20using%20an%20MSI%20installer%20package%2C%20however%20after%20assigning%20the%20profile%20to%20a%20group%20of%20users%20you%20find%20that%20some%20devices%20fail%20to%20install%20the%20app.%20When%20we%20see%20an%20issue%20like%20this%2C%20it%E2%80%99s%20usually%20caused%20by%20one%20of%20two%20things%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EThe%20MSI%20failed%20to%20download%3C%2FLI%3E%0A%3CLI%3EThe%20setup%20process%20for%20the%20MSI%20failed%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EWith%20that%20in%20mind%2C%20if%20you%20find%20yourself%20in%20this%20situation%20the%20first%20thing%20to%20do%20is%20check%20whether%20the%20MSI%20has%20been%20downloaded.%20Downloaded%20MSI%20packages%20are%20stored%20in%20%3CSTRONG%3EC%3A%5CWindows%5CSystem32%5Cconfig%5Csystemprofile%5CAppData%5CLocal%5Cmdm%20%3C%2FSTRONG%3Eso%20take%20a%20look%20in%20there%20and%20see%20if%20you%20can%20find%20your%20MSI.%20Typically%20the%20size%20and%20date%20are%20good%20ways%20to%20determine%20which%20one%20is%20the%20package%20you%E2%80%99re%20looking%20for.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F84844i48EAAEDF6616D222%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%2298445-1.jpg%22%20title%3D%2298445-1.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIf%20you%20cannot%20see%20the%20MSI%20file%2C%20start%20with%20the%20section%20titled%20%3CSTRONG%3EMSI%20Fails%20to%20Download%3C%2FSTRONG%3E%20below.%20If%20you%20%3CU%3Ecan%3C%2FU%3E%20see%20the%20file%2C%20go%20to%20the%20section%20titled%20%3CSTRONG%3EMSI%20Fails%20to%20Install%3C%2FSTRONG%3E%20further%20down%20the%20page.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1678097053%22%20id%3D%22toc-hId-1703033202%22%20id%3D%22toc-hId-1703033202%22%20id%3D%22toc-hId-1703033202%22%20id%3D%22toc-hId-1703033202%22%3EMSI%20fails%20to%20download%3C%2FH2%3E%0A%3CP%3EIf%20the%20MSI%20is%20failing%20to%20download%2C%20the%20first%20thing%20to%20check%20is%20whether%20the%20job%20for%20the%20MSI%20has%20been%20created%20in%20the%20Registry%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EFor%20MSIs%20targeted%20to%20devices%2C%20look%20in%20%3CSTRONG%3EHKLM%5CSOFTWARE%5CMicrosoft%5CEnterpriseDesktopManagement%5CS-0-0-00-0000000000-00000000000-00000000000-0000000000-00%5CMSI%5C%26lt%3B%3CEM%3EMSIProductID%3C%2FEM%3E%26gt%3B%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3EFor%20MSIs%20targeted%20to%20users%2C%20look%20in%20%3CSTRONG%3EHKLM%5CSOFTWARE%5CMicrosoft%5CEnterpriseDesktopManagement%5C%3CUSERSID%3E%5CMSI%5C%26lt%3B%3CEM%3EMSIProductID%3C%2FEM%3E%26gt%3B%3C%2FUSERSID%3E%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EHere%20is%20an%20example%20showing%20what%20we%20might%20see%20for%20an%20MSI%20targeted%20to%20a%20user%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F84845iF744BA188A2947AF%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%2298445-2.png%22%20title%3D%2298445-2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20you%20can%20see%2C%20there%20is%20some%20pretty%20useful%20information%20contained%20in%20these%20values%2C%20such%20as%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3ECurrentDownloadUrl%3C%2FSTRONG%3E%3A%20URL%20to%20the%20MSI%20install%20file.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EEnforcementRetryCount%3C%2FSTRONG%3E%3A%20The%20number%20of%20times%20the%20download%20and%20installation%20operation%20will%20be%20retried%20before%20the%20installation%20will%20be%20marked%20as%20failed.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EEnforcementRetryIndex%3C%2FSTRONG%3E%3A%20The%20current%20number%20of%20retry.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EEnforcementRetryInterval%3C%2FSTRONG%3E%3A%20Amount%20of%20time%2C%20in%20minutes%20between%20retry%20operations.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EEnforcementStartTime%3C%2FSTRONG%3E%3A%20Start%20time%20of%20enforcement.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EEnforcementTimeout%3C%2FSTRONG%3E%3A%20Amount%20of%20time%2C%20in%20minutes%20that%20the%20installation%20process%20can%20run%20before%20the%20installer%20considers%20the%20installation%20may%20have%20failed%20and%20no%20longer%20monitors%20the%20installation%20operation.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3ELastError%3C%2FSTRONG%3E%3A%20Error%20after%20last%20execution.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EStatus%3A%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E70%20%3D%20Successfully%20installed%2Funinstalled%3C%2FP%3E%0A%3CP%3E10%20%3D%20Initialized%3C%2FP%3E%0A%3CP%3E20%20%3D%20DownloadInProgress%3C%2FP%3E%0A%3CP%3E25%20%3D%20PendingDownloadRetry%3C%2FP%3E%0A%3CP%3E30%20%3D%20DownloadFailed%3C%2FP%3E%0A%3CP%3E40%20%3D%20DownloadCompleted%3C%2FP%3E%0A%3CP%3E48%20%3D%20PendingUserSession%3C%2FP%3E%0A%3CP%3E50%26nbsp%3B%3D%20EnforcementInProgress%3C%2FP%3E%0A%3CP%3E55%20%3D%20PendingEnforcementRetry%3C%2FP%3E%0A%3CP%3E60%20%3D%20EnforcementFailed%3C%2FP%3E%0A%3CP%3E70%20%3D%20EnforcementCompleted%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ENOTE%3C%2FSTRONG%3E%20%3CEM%3EFor%20the%20complete%20list%20of%20values%20see%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fwindows%2Fclient-management%2Fmdm%2Fenterprisedesktopappmanagement-csp%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ethis%20doc%3C%2FA%3E.%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDepending%20on%20the%20specifics%20of%20your%20issue%20and%20what%20you%E2%80%99ve%20tried%20already%2C%20you%20may%20want%20to%20try%20triggering%20the%20installation%20again.%20To%20do%20so%2C%20set%20%3CSTRONG%3EEnforcementRetryCount%20%3C%2FSTRONG%3Eand%3CSTRONG%3E%20EnforcementRetryIndex%3C%2FSTRONG%3E%20to%20(0)%20and%20set%20%3CSTRONG%3ELastError%20%3C%2FSTRONG%3Eand%20%3CSTRONG%3EStatus%20%3C%2FSTRONG%3Eto%20an%20empty%20string.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20next%20thing%20to%20look%20at%20is%20the%20BITS%20job.%20The%20MSI%20download%20uses%20BITS%2C%20so%20if%20the%20job%20was%20successfully%20created%20we%20can%20verify%20that%20by%20finding%20the%20BITS%20job%20ID%20in%20the%20Registry.%20Once%20you%20find%20it%20make%20a%20note%20of%20it%20as%20we%E2%80%99ll%20use%20it%20later.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20995px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F84846i99F4C0D2D1FD24BD%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%2298445-3.png%22%20title%3D%2298445-3.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20can%20also%20verify%20the%20BITS%20job%20by%20looking%20in%20the%20Event%20Log.%20The%20BITS%20Event%20Log%20is%20found%20under%20%3CSTRONG%3EApplications%20and%20Services%20logs%3C%2FSTRONG%3E%20-%26gt%3B%20%3CSTRONG%3EMicrosoft%20%3C%2FSTRONG%3E-%26gt%3B%3CSTRONG%3E%20Windows%20%3C%2FSTRONG%3E-%26gt%3B%3CSTRONG%3E%20Bits-Client%20%3C%2FSTRONG%3E-%26gt%3B%3CSTRONG%3E%20Operational%3C%2FSTRONG%3E%3CSTRONG%3E.%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20the%20BITS%20job%20was%20created%2C%20you%20will%20see%20that%20in%20an%20Event%20ID%203%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F84847iA2B9DB4AF01524DC%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%2298445-4.png%22%20title%3D%2298445-4.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20should%20also%20see%20an%20Event%20ID%204%20which%20tells%20us%20that%20the%20download%20completed.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F84848i45652765E7354BE5%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%2298445-5.png%22%20title%3D%2298445-5.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHere%E2%80%99s%20an%20example%20where%20the%20BITS%20download%20failed.%20Our%20first%20clue%20is%20that%20we%20can%20see%20an%20error%20in%20the%20BITS%20event%20log%20where%20the%20job%20was%20cancelled%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F84849i519CCF503D2FF2C6%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%2298445-6.jpg%22%20title%3D%2298445-6.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBy%20searching%20for%20other%20events%20and%20errors%20you%20can%20usually%20gain%20some%20insight%20into%20why%20the%20job%20has%20failed.%20Here%20we%20find%20an%20Event%20ID%20204%20telling%20us%20that%20the%20BITS%20job%20failed%20because%20of%20a%20network%20authentication%20problem%20(the%20credentials%20were%20rejected).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F84850iB7819E06ED6FFA35%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%2298445-7.jpg%22%20title%3D%2298445-7.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EArmed%20with%20this%20information%2C%20we%20can%20then%20check%20our%20network%20or%20proxy%20settings%20to%20identify%20the%20cause%20of%20the%20issue.%20Your%20error%20may%20differ%20but%20this%20should%20give%20you%20a%20good%20idea%20where%20to%20look.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--874059908%22%20id%3D%22toc-hId--849123759%22%20id%3D%22toc-hId--849123759%22%20id%3D%22toc-hId--849123759%22%20id%3D%22toc-hId--849123759%22%3EMSI%20Fails%20to%20Install%3C%2FH2%3E%0A%3CP%3EIn%20this%20example%20we%20can%20see%20our%20MSI%20installation%20package%20in%20the%20path%20%3CSTRONG%3EC%3A%5CWindows%5CSystem32%5Cconfig%5Csystemprofile%5CAppData%5CLocal%5Cmdm.%20%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThis%20tells%20us%20that%20Intune%20has%20successfully%20delivered%20the%20package%20to%20the%20device%2C%20so%20now%20the%20question%20is%20why%20did%20the%20install%20fail.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F84851i511E1E5CEF674EFC%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%2298445-8.jpg%22%20title%3D%2298445-8.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThe%20first%20step%20in%20answering%20that%20question%20is%20to%20run%20the%20following%20command%20from%20a%20Command%20Prompt%20on%20the%20PC%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3Emsiexec%20%2FI%20%3CPACKAGENAME%3E.msi%20%2Fl*v%20%25temp%25%5Cmsiverbose.txt%20%2Fqn%3C%2FPACKAGENAME%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThis%20command%20will%20try%20to%20install%20the%20MSI%20package%20silently%20and%20generate%20verbose%20logging%20for%20us%20to%20use%20when%20investigating%20the%20failure.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ENOTE%3C%2FSTRONG%3E%20%3CEM%3EFor%20more%20information%20about%20command%20line%20installation%2C%20see%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fwindows%2Fdesktop%2FMsi%2Fcommand-line-options%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fwindows%2Fdesktop%2FMsi%2Fcommand-line-options%3C%2FA%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EGoing%20through%20all%20of%20the%20potential%20issues%20you%20may%20encounter%20when%20analyzing%20a%20verbose%20MSI%20log%20is%20beyond%20the%20scope%20of%20this%20article%2C%20however%20if%20you%20scroll%20to%20the%20end%20you%20can%20usually%20get%20some%20sort%20of%20an%20idea%20where%20to%20look%20next%20when%20doing%20your%20troubleshooting.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20color%3D%22%23FF0000%22%3E%3CSTRONG%3EIMPORTANT%3C%2FSTRONG%3E%3C%2FFONT%3E%20%3CEM%3EFor%20Intune%20to%20deploy%20an%20MSI%20package%2C%20the%20MSI%20must%20be%20able%20to%20install%20silently.%20If%20the%20MSI%20package%20requires%20any%20user%20interaction%20the%20deployment%20will%20fail.%20It%20can%20be%20difficult%20to%20tell%20which%20packages%20support%20a%20truly%20silent%20install%2C%20so%20it%20is%20always%20a%20good%20idea%20to%20test%20with%20the%20%3CSTRONG%3E%2Fqn%3C%2FSTRONG%3E%20switch%20manually%20before%20deploying%20your%20package.%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAssuming%20the%20command%20works%20and%20our%20package%20can%20be%20installed%20silently%2C%20we%20can%20then%20check%20the%20MDM%20event%20log%20(%3CSTRONG%3EMicrosoft-Windows-DeviceManagement-Enterprise-Diagnostics-Provider%2FAdmin%3C%2FSTRONG%3E)%20and%20see%20if%20it%20contains%20any%20useful%20information%20for%20why%20the%20installation%20failed.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELet%E2%80%99s%20say%20for%20example%20that%20we%20tried%20deploying%20the%20PowerBI%20MSI%20package%20and%20we%20found%20following%20error%20in%20the%20event%20log%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20color%3D%22%23333399%22%3E%3CEM%3EProduct%3A%20Microsoft%20Power%20BI%20Desktop%20(x64)%20--%20EULA%20has%20not%20been%20accepted%20while%20executing%20the%20installation%20in%20reduced%20UI%20mode.%20Please%20add%20the%20flag%20ACCEPT_EULA%3D1%20to%20the%20command%20line.%3C%2FEM%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20color%3D%22%23333399%22%3E%3CEM%3EWindows%20Installer%20installed%20the%20product.%20Product%20Name%3A%20Microsoft%20Power%20BI%20Desktop%20(x64).%20Product%20Version%3A%202.61.5192.601.%20Product%20Language%3A%201033.%20Manufacturer%3A%20Microsoft%20Corporation.%20Installation%20success%20or%20error%20status%3A%201603.%3C%2FEM%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBased%20on%20this%20information%20we%20can%20see%20that%20the%20MSI%20was%20unable%20to%20install%20silently%20because%20the%20setup%20process%20prompted%20to%20accept%20the%20EULA.%20Using%20that%2C%20we%20can%20update%20the%20command-line%20arguments%20in%20the%20app%20deployment%20profile%20to%20confirm%20our%20acceptance%20of%20the%20End-User%20Licensing%20Agreement%20which%20will%20allow%20the%20PowerBI%20package%20to%20be%20installed%20successfully%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20200px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F84852iFE369410D6527A90%2Fimage-size%2Fsmall%3Fv%3D1.0%26amp%3Bpx%3D200%22%20alt%3D%2298445-9.png%22%20title%3D%2298445-9.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOnce%20that%20change%20is%20made%2C%20setup%20for%20our%20MSI%20package%20now%20completes%20silently%20and%20the%20app%20is%20successfully%20deployed.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-868750427%22%20id%3D%22toc-hId-893686576%22%20id%3D%22toc-hId-893686576%22%20id%3D%22toc-hId-893686576%22%20id%3D%22toc-hId-893686576%22%3ESummary%3C%2FH2%3E%0A%3CP%3EWhen%20troubleshooting%20software%20deployment%20problems%20with%20MSI%20packages%2C%20break%20your%20troubleshooting%20down%20into%20two%20parts%3A%20downloading%20the%20package%20and%20installing%20the%20package.%20First%20make%20sure%20that%20the%20download%20is%20successful%20by%20ensuring%20that%20the%20package%20reaches%20the%20targeted%20device.%20If%20the%20package%20is%20downloaded%20but%20the%20installation%20is%20failing%2C%20you%20then%20focus%20on%20why%20the%20setup%20process%20for%20the%20app%20fails%20to%20complete.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%3CEM%3ELeon%20Zhu%3C%2FEM%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EIntune%20Support%20Engineer%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-359125%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20post%20discusses%20the%20deployment%20of%20MSI%20installer%20packages%20and%20how%20to%20troubleshoot%20potential%20issues.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-SUB%20id%3D%22lingo-sub-360176%22%20slang%3D%22en-US%22%3ERe%3A%20Support%20Tip%3A%20Troubleshooting%20MSI%20App%20deployments%20in%20Microsoft%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-360176%22%20slang%3D%22en-US%22%3E%3CP%3EAwesome%20blog!!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-359984%22%20slang%3D%22en-US%22%3ERe%3A%20Support%20Tip%3A%20Troubleshooting%20MSI%20App%20deployments%20in%20Microsoft%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-359984%22%20slang%3D%22en-US%22%3E%3CP%3EHey%20Oliver%2C%3C%2FP%3E%3CP%3EGood%20to%20see%20you%20here%20too%20%3A)%3C%2FP%3E%3CP%3EThanks%2C%20the%20productcode%20is%20something%20we%20know%2Fcan%20find%20easily%20and%20thus%20we%20can%20identify%20the%20MSI%20more%20quickly%20cause%20we%20have%20customers%20where%20multiple%20MSI%20apps%20are%20being%20deployed.%3C%2FP%3E%3CP%3EFunny%20thing%20is%20that%20we%20encountered%20a%20failed%20MSI%20deployment%20today%20so%20this%20is%20more%20than%20welcome.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPS.%20also%20big%20thanks%20for%20you%20blog%20posts%20and%20articles!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-359974%22%20slang%3D%22en-US%22%3ERe%3A%20Support%20Tip%3A%20Troubleshooting%20MSI%20App%20deployments%20in%20Microsoft%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-359974%22%20slang%3D%22en-US%22%3E%3CP%3EHey%20RKast%20%3A-)%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Eyes%20it%20has%20always%20the%20GUID%2C%20actually%20it's%20not%20only%20a%20GUID%20it's%20the%20ProductCode%20of%20the%20MSI%20file%20you%20are%20deploying.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ebest%2C%3C%2FP%3E%0A%3CP%3EOliver%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-359970%22%20slang%3D%22en-US%22%3ERe%3A%20Support%20Tip%3A%20Troubleshooting%20MSI%20App%20deployments%20in%20Microsoft%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-359970%22%20slang%3D%22en-US%22%3E%3CP%3EWow%20nice%20post%20thanks!%3C%2FP%3E%3CP%3EYou%20mention%20'%3CSPAN%3EDownloaded%20MSI%20packages%20are%20stored%20in%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EC%3A%5CWindows%5CSystem32%5Cconfig%5Csystemprofile%5CAppData%5CLocal%5Cmdm%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSTRONG%3E'%20does%20MSI%20always%20have%20a%20GUID%20in%20the%20downloaded%20folder%20and%20does%20it%20not%20have%20the%20name%20as%20we%20upoad%20it%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGreets%2C%3C%2FP%3E%3CP%3ERKast%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-359966%22%20slang%3D%22en-US%22%3ERe%3A%20Support%20Tip%3A%20Troubleshooting%20MSI%20App%20deployments%20in%20Microsoft%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-359966%22%20slang%3D%22en-US%22%3E%3CP%3EVery%20nice%20post%20%F0%9F%91%8D%20and%20indeed%20very%20helpful%20for%20a%20lot%20of%20people%20dealing%20with%20Intune%20imho.%20I%20did%20a%20similar%20post%20series%20in%20the%20past%20covering%20all%20related%20information%20about%20the%20Intune%20Management%20Extension%20(aka%20Sidecar)%20including%20the%20installation%20via%20MDM%20CSP%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EDeep%20dive%20Microsoft%20Intune%20Management%20Extension%20%E2%80%93%20PowerShell%20Scripts%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Foliverkieselbach.com%2F2017%2F11%2F29%2Fdeep-dive-microsoft-intune-management-extension-powershell-scripts%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Foliverkieselbach.com%2F2017%2F11%2F29%2Fdeep-dive-microsoft-intune-management-extension-powershell-scripts%2F%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EPart%202%2C%20Deep%20dive%20Microsoft%20Intune%20Management%20Extension%20%E2%80%93%20PowerShell%20Scripts%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Foliverkieselbach.com%2F2018%2F02%2F12%2Fpart-2-deep-dive-microsoft-intune-management-extension-powershell-scripts%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Foliverkieselbach.com%2F2018%2F02%2F12%2Fpart-2-deep-dive-microsoft-intune-management-extension-powershell-scripts%2F%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EPart%203%2C%20Deep%20dive%20Microsoft%20Intune%20Management%20Extension%20%E2%80%93%20Win32%20Apps%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Foliverkieselbach.com%2F2018%2F10%2F02%2Fpart-3-deep-dive-microsoft-intune-management-extension-win32-apps%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Foliverkieselbach.com%2F2018%2F10%2F02%2Fpart-3-deep-dive-microsoft-intune-management-extension-win32-apps%2F%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ekeep%20writing%20and%20publishing%20good%20posts%20like%20this.%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ebest%2C%3C%2FP%3E%0A%3CP%3EOliver%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-454429%22%20slang%3D%22en-US%22%3ERe%3A%20Support%20Tip%3A%20Troubleshooting%20MSI%20App%20deployments%20in%20Microsoft%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-454429%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20is%20great%20stuff!!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-673310%22%20slang%3D%22en-US%22%3ERe%3A%20Support%20Tip%3A%20Troubleshooting%20MSI%20App%20deployments%20in%20Microsoft%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-673310%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20had%20an%20issue%20with%20an%20app%20installation%20because%20I%20used%20the%20wrong%20installation%20parameters.%20I%20fixed%20the%20install%20paramaters%20but%20the%20installation%20status%20is%20already%20failed.%20How%20can%20I%20reset%20this%20status%20so%20it%20will%20retry%20installation%3F%20Or%20will%20it%20retry%20indefinitely%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ekind%20regards%2C%3C%2FP%3E%3CP%3ERamon.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Microsoft

Hello everyone, today we have an article from Intune Support Engineer Leon Zhu. In this post, Leon talks about deploying MSI installer packages and how you can troubleshoot problems if the app fails to be installed on targeted devices. Leon has some really great tips in here so even if you’re like most people and never had an issue, I’d suggest giving it a quick read regardless. It will help with understanding how the overall process works, and if you do happen to run into a problem in the future, his tips will put you well down the path of getting them resolved quickly and easily.  

 

=====

 

Intune is a great way to deploy Windows LOB apps to PCs in your environment, and today I want to talk a little bit about how that process works and share some tips you can use to help resolve any issues you might run into.

 

Here in support, when we talk to someone having an issue deploying an MSI package it usually goes something like this: An app deployment profile was created for a Line of Business (LOB) app using an MSI installer package, however after assigning the profile to a group of users you find that some devices fail to install the app. When we see an issue like this, it’s usually caused by one of two things:

 

  • The MSI failed to download
  • The setup process for the MSI failed

With that in mind, if you find yourself in this situation the first thing to do is check whether the MSI has been downloaded. Downloaded MSI packages are stored in C:\Windows\System32\config\systemprofile\AppData\Local\mdm so take a look in there and see if you can find your MSI. Typically the size and date are good ways to determine which one is the package you’re looking for.

98445-1.jpg

If you cannot see the MSI file, start with the section titled MSI Fails to Download below. If you can see the file, go to the section titled MSI Fails to Install further down the page.

 

MSI fails to download

If the MSI is failing to download, the first thing to check is whether the job for the MSI has been created in the Registry:

 

  • For MSIs targeted to devices, look in HKLM\SOFTWARE\Microsoft\EnterpriseDesktopManagement\S-0-0-00-0000000000-00000000000-00000000000-0000000000-00\MSI\<MSIProductID>
  • For MSIs targeted to users, look in HKLM\SOFTWARE\Microsoft\EnterpriseDesktopManagement\<UserSID>\MSI\<MSIProductID>

Here is an example showing what we might see for an MSI targeted to a user:

 

98445-2.png

 

As you can see, there is some pretty useful information contained in these values, such as:

  • CurrentDownloadUrl: URL to the MSI install file.
  • EnforcementRetryCount: The number of times the download and installation operation will be retried before the installation will be marked as failed.
  • EnforcementRetryIndex: The current number of retry.
  • EnforcementRetryInterval: Amount of time, in minutes between retry operations.
  • EnforcementStartTime: Start time of enforcement.
  • EnforcementTimeout: Amount of time, in minutes that the installation process can run before the installer considers the installation may have failed and no longer monitors the installation operation.
  • LastError: Error after last execution.
  • Status:

70 = Successfully installed/uninstalled

10 = Initialized

20 = DownloadInProgress

25 = PendingDownloadRetry

30 = DownloadFailed

40 = DownloadCompleted

48 = PendingUserSession

50 = EnforcementInProgress

55 = PendingEnforcementRetry

60 = EnforcementFailed

70 = EnforcementCompleted

 

NOTE For the complete list of values see this doc.

 

Depending on the specifics of your issue and what you’ve tried already, you may want to try triggering the installation again. To do so, set EnforcementRetryCount and EnforcementRetryIndex to (0) and set LastError and Status to an empty string.

 

The next thing to look at is the BITS job. The MSI download uses BITS, so if the job was successfully created we can verify that by finding the BITS job ID in the Registry. Once you find it make a note of it as we’ll use it later.

 

98445-3.png

 

We can also verify the BITS job by looking in the Event Log. The BITS Event Log is found under Applications and Services logs -> Microsoft -> Windows -> Bits-Client -> Operational.

 

If the BITS job was created, you will see that in an Event ID 3:

 

98445-4.png

 

You should also see an Event ID 4 which tells us that the download completed.

 

98445-5.png

 

Here’s an example where the BITS download failed. Our first clue is that we can see an error in the BITS event log where the job was cancelled:

 

98445-6.jpg

 

By searching for other events and errors you can usually gain some insight into why the job has failed. Here we find an Event ID 204 telling us that the BITS job failed because of a network authentication problem (the credentials were rejected).

 

98445-7.jpg

 

Armed with this information, we can then check our network or proxy settings to identify the cause of the issue. Your error may differ but this should give you a good idea where to look.

 

MSI Fails to Install

In this example we can see our MSI installation package in the path C:\Windows\System32\config\systemprofile\AppData\Local\mdm.

This tells us that Intune has successfully delivered the package to the device, so now the question is why did the install fail.

 

98445-8.jpg

The first step in answering that question is to run the following command from a Command Prompt on the PC:

 

msiexec /I <packagename>.msi /l*v %temp%\msiverbose.txt /qn

 

This command will try to install the MSI package silently and generate verbose logging for us to use when investigating the failure.

 

NOTE For more information about command line installation, see https://docs.microsoft.com/windows/desktop/Msi/command-line-options

 

Going through all of the potential issues you may encounter when analyzing a verbose MSI log is beyond the scope of this article, however if you scroll to the end you can usually get some sort of an idea where to look next when doing your troubleshooting.

 

IMPORTANT For Intune to deploy an MSI package, the MSI must be able to install silently. If the MSI package requires any user interaction the deployment will fail. It can be difficult to tell which packages support a truly silent install, so it is always a good idea to test with the /qn switch manually before deploying your package.

 

Assuming the command works and our package can be installed silently, we can then check the MDM event log (Microsoft-Windows-DeviceManagement-Enterprise-Diagnostics-Provider/Admin) and see if it contains any useful information for why the installation failed.

 

Let’s say for example that we tried deploying the PowerBI MSI package and we found following error in the event log:

 

Product: Microsoft Power BI Desktop (x64) -- EULA has not been accepted while executing the installation in reduced UI mode. Please add the flag ACCEPT_EULA=1 to the command line.

Windows Installer installed the product. Product Name: Microsoft Power BI Desktop (x64). Product Version: 2.61.5192.601. Product Language: 1033. Manufacturer: Microsoft Corporation. Installation success or error status: 1603.

 

Based on this information we can see that the MSI was unable to install silently because the setup process prompted to accept the EULA. Using that, we can update the command-line arguments in the app deployment profile to confirm our acceptance of the End-User Licensing Agreement which will allow the PowerBI package to be installed successfully:

 

98445-9.png

 

Once that change is made, setup for our MSI package now completes silently and the app is successfully deployed.

 

Summary

When troubleshooting software deployment problems with MSI packages, break your troubleshooting down into two parts: downloading the package and installing the package. First make sure that the download is successful by ensuring that the package reaches the targeted device. If the package is downloaded but the installation is failing, you then focus on why the setup process for the app fails to complete.

 

Leon Zhu

Intune Support Engineer

 

 

 

 

7 Comments

Very nice post 👍 and indeed very helpful for a lot of people dealing with Intune imho. I did a similar post series in the past covering all related information about the Intune Management Extension (aka Sidecar) including the installation via MDM CSP:

 

Deep dive Microsoft Intune Management Extension – PowerShell Scripts
https://oliverkieselbach.com/2017/11/29/deep-dive-microsoft-intune-management-extension-powershell-s...

 

Part 2, Deep dive Microsoft Intune Management Extension – PowerShell Scripts

https://oliverkieselbach.com/2018/02/12/part-2-deep-dive-microsoft-intune-management-extension-power...

 

Part 3, Deep dive Microsoft Intune Management Extension – Win32 Apps
https://oliverkieselbach.com/2018/10/02/part-3-deep-dive-microsoft-intune-management-extension-win32...

 

keep writing and publishing good posts like this. 

best,

Oliver

New Contributor

Wow nice post thanks!

You mention 'Downloaded MSI packages are stored in C:\Windows\System32\config\systemprofile\AppData\Local\mdm ' does MSI always have a GUID in the downloaded folder and does it not have the name as we upoad it ?

 

Greets,

RKast

Hey RKast :-),

 

yes it has always the GUID, actually it's not only a GUID it's the ProductCode of the MSI file you are deploying.

 

best,

Oliver

New Contributor

Hey Oliver,

Good to see you here too :)

Thanks, the productcode is something we know/can find easily and thus we can identify the MSI more quickly cause we have customers where multiple MSI apps are being deployed.

Funny thing is that we encountered a failed MSI deployment today so this is more than welcome.

 

PS. also big thanks for you blog posts and articles!

Microsoft

Awesome blog!!

Occasional Visitor

This is great stuff!!

Occasional Visitor

Hi,

 

I had an issue with an app installation because I used the wrong installation parameters. I fixed the install paramaters but the installation status is already failed. How can I reset this status so it will retry installation? Or will it retry indefinitely?

 

kind regards,

Ramon.