SOLVED

Intune Win32 apps error 0x80070002

%3CLINGO-SUB%20id%3D%22lingo-sub-414426%22%20slang%3D%22en-US%22%3EIntune%20Win32%20apps%20error%200x80070002%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-414426%22%20slang%3D%22en-US%22%3E%3CP%3EHi!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20my%20internship%20i've%20been%20trying%20to%20deploy%20win32%20apps%20in%20intune%2C%20i%20followed%20the%20tutorial%20on%20Microsoft%20Docs%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fintune%2Fapps-win32-app-management%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fintune%2Fapps-win32-app-management%3C%2FA%3E%26nbsp%3BMy%20system%20gives%20me%20a%20pop%20up%20that%20installation%20has%20started%20but%20after%20en%20couple%20seconds%20returns%20with%20a%20%22failed%20pop-up%22%20when%20i%20go%20into%20inune%20i%20get%20the%20error%26nbsp%3B%3CSPAN%3E0x80070002%20and%20sometimes%26nbsp%3BError%20code%3A%200x0%20i%20tried%20googling%20these%20but%20i%20cant%20seem%20to%20find%20anything%20intune%20related.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ECan%20anybody%20point%20me%20out%20what%20the%20errors%20mean%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThanks!!%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-414426%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EIntune%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-415238%22%20slang%3D%22en-US%22%3ERe%3A%20Intune%20Win32%20apps%20error%200x80070002%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-415238%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F300261%22%20target%3D%22_blank%22%3E%40bjornmertens%3C%2FA%3E%26nbsp%3BHi%20Normally%26nbsp%3B0x80070002%20%3D%20%22The%20system%20cannot%20find%20the%20file%20specified.%22%20Check%20that%20your%20install%20command%20line%20is%20Correct%20and%20not%20misspelled%20and%20that%20the%20files%20are%20in%20the%20Win32App%20Package..%3C%2FP%3E%0A%3CP%3ERegards%2C%3CBR%20%2F%3EJ%C3%B6rgen%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-416886%22%20slang%3D%22en-US%22%3ERe%3A%20Intune%20Win32%20apps%20error%200x80070002%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-416886%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F13627%22%20target%3D%22_blank%22%3E%40J%C3%B6rgen%20Nilsson%3C%2FA%3E%26nbsp%3Bhi%2C%20i%20tried%20again%20wit%20a%20.msi%20version%20of%207zip%20(to%20try%20it%20out).%20That%20works%20without%20problem%20and%20is%20installed%20in%20the%20background.%20However%20with%20an%20.exe%20i%20now%20got%20it%20working%20sort%20of%2C%20the%20install%20command%20was%20indeed%20not%20correct.%20But%20it%20does%20not%20install%20in%20the%26nbsp%3B%20background%2C%20i%20just%20get%20to%20see%20the%20setup%20screen%20to%20install%207zip%20manually.%20I%20tried%20%2Fs%2C%20%2Fquite%2C%20%2Fsilent%2C%20%2Fs%20is%20there%20another%20parameter%20to%20install%20the%20.exe%20silently%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-422961%22%20slang%3D%22en-US%22%3ERe%3A%20Intune%20Win32%20apps%20error%200x80070002%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-422961%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F300261%22%20target%3D%22_blank%22%3E%40bjornmertens%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3Esee%20the%207-Zip%20FAQ%20for%20this%20info%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CH4%20id%3D%22toc-hId-1309863781%22%20id%3D%22toc-hId-1309863781%22%20id%3D%22toc-hId-1309863781%22%20id%3D%22toc-hId-1309863781%22%20id%3D%22toc-hId-1309863781%22%3EHow%20can%20I%20install%207-Zip%20in%20silent%20mode%3F%3C%2FH4%3E%0A%3CP%3EFor%20exe%20installer%3A%20Use%20the%20%22%2FS%22%20parameter%20to%20do%20a%20silent%20installation%20and%20the%20%2FD%3D%22C%3A%5CProgram%20Files%5C7-Zip%22%20parameter%20to%20specify%20the%20%22output%20directory%22.%20These%20options%20are%20case-sensitive.%3C%2FP%3E%0A%3CP%3EFor%20msi%20installer%3A%20Use%20the%20%2Fq%20INSTALLDIR%3D%22C%3A%5CProgram%20Files%5C7-Zip%22%20parameters.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.7-zip.org%2Ffaq.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.7-zip.org%2Ffaq.html%3C%2FA%3E%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-436014%22%20slang%3D%22en-US%22%3ERe%3A%20Intune%20Win32%20apps%20error%200x80070002%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-436014%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F174439%22%20target%3D%22_blank%22%3E%40Oliver%20Kieselbach%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20you%20for%20the%20post!%20The%20%2FS%20mode%20works%20with%207zip.%20Altough%20i%20found%20out%20that%20not%20every%20installer%20works%20with%20the%20%2FS%2C%20%2Fs%2C%20....%20But%20i%20guess%20that%20most%20of%20the%20sofwtware%20will%20list%20it%20on%20there%20site.%3C%2FP%3E%3CP%3EThanks!!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-438915%22%20slang%3D%22en-US%22%3ERe%3A%20Intune%20Win32%20apps%20error%200x80070002%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-438915%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F300261%22%20target%3D%22_blank%22%3E%40bjornmertens%3C%2FA%3E%20definitely%20correct%20that%20different%20switches%20work%20for%20different%20apps%2Fdevelopers.%20They%20need%20to%20include%20support%20for%20those%20when%20packaging.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1402266%22%20slang%3D%22en-US%22%3ERe%3A%20Intune%20Win32%20apps%20error%200x80070002%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1402266%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F300261%22%20target%3D%22_blank%22%3E%40bjornmertens%3C%2FA%3E%3C%2FP%3E%3CP%3ETo%20fix%20the%20error%20manually%2C%20it%20will%20be%20necessary%20to%20remove%20all%20of%20the%20files%20partially%20downloaded%2C%20and%20try%20again%20to%20update%20your%20Windows%20files.%3C%2FP%3E%3CP%3E1.%20On%20the%20Windows%20desktop%2C%20press%20Start%2C%20and%20when%20the%20menu%20opens%20up%2C%3C%2FP%3E%3CP%3E2.%20Press%20Run%2C%20and%20input%20the%20following%20command%20%E2%80%9Cservices.msc%E2%80%9D%3C%2FP%3E%3CP%3E3.%20In%20the%20Run%20box%2C%20type%20%22services.msc%22%2C%20and%20press%20%22Enter%22.%3C%2FP%3E%3CP%3E4.%20This%20will%20open%20the%20%22Local%20Services%22%20window.%3C%2FP%3E%3CP%3E5.%20In%20the%20Local%20Services%20window%20find%20the%20name%20%E2%80%9C%3CA%20href%3D%22http%3A%2F%2Fwww.brighthub.com%2Fcomputing%2Fwindows-platform%2Farticles%2F3330.aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAutomatic%20Updates%3C%2FA%3E%E2%80%9D%20and%20right%20click.%3C%2FP%3E%3CP%3E6.%20On%20right%20click%2C%20scroll%20down%20and%20press%20%E2%80%9CStop%E2%80%9D.%20This%20will%20cause%20the%20Automatic%20Updates%20to%20pause%20to%20correct%20the%20situation.%20Do%20not%20close%20the%20Local%20Services%20window.%3C%2FP%3E%3CP%3EAt%20this%20point%20you%20can%20go%20to%20the%20%22Software%20Distribution%22%20folder%20and%20delete%20its%20contents%2C%20or%20give%20the%20folder%20another%20name.%20It%20is%20advised%20that%20you%20just%20rename%20the%20folder%2C%3C%2FP%3E%3CP%3E7.%20To%20do%20this%20go%20to%20the%20Windows%20desktop%20and%20press%20%E2%80%9CStart%E2%80%9D%20then%20press%20%E2%80%9CRun%E2%80%9D%20when%20the%20menu%20opens.%3C%2FP%3E%3CP%3E8.%20Input%20the%20%E2%80%9Ccmd%E2%80%9D%20command%20into%20Run%2C%20and%20the%20computer%20will%20take%20you%20to%20the%20DOS%20prompt.%3C%2FP%3E%3CP%3E9.%20At%20the%20DOS%20prompt%20type%20in%20this%20command%20%E2%80%9Ccd%20%25windir%25%E2%80%9D%20(without%20the%20quotes)%2C%20and%20press%20Enter.%3C%2FP%3E%3CP%3E10.%20You%20should%20now%20be%20in%20the%20Windows%20directory.%3C%2FP%3E%3CP%3E11.%20At%20the%20Windows%20directory%2C%20input%20%E2%80%9Cren%20SoftwareDistribution%20SoftDisTemp%E2%80%9D%20and%20hit%20%22Enter%22.%20This%20will%20rename%20the%20Software%20Distribution%20folder%20to%20the%20new%20name%20of%20SoftDisTemp.%3C%2FP%3E%3CP%3E12.%20Type%20%22Exit%22%20and%20hit%20%22Enter%22%20to%20close%20the%20DOS%20window.%3C%2FP%3E%3CP%3E13.%20Now%20go%20to%20the%20%22Local%20Services%22%20window%20and%20right%20click%20%22Automatic%20Updates%22%20to%20restart%20it.%3C%2FP%3E%3CP%3E14.%20Try%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22http%3A%2F%2Fwww.brighthub.com%2Fcomputing%2Fwindows-platform%2Farticles%2F20875.aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eupdating%20Windows%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efiles%20again.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F300261%22%20target%3D%22_blank%22%3E%40bjornmertens%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi!

 

For my internship i've been trying to deploy win32 apps in intune, i followed the tutorial on Microsoft Docs: https://docs.microsoft.com/en-us/intune/apps-win32-app-management My system gives me a pop up that installation has started but after en couple seconds returns with a "failed pop-up" when i go into inune i get the error 0x80070002 and sometimes Error code: 0x0 i tried googling these but i cant seem to find anything intune related. 

Can anybody point me out what the errors mean?

Thanks!!

6 Replies
Highlighted

@bjornmertens Hi Normally 0x80070002 = "The system cannot find the file specified." Check that your install command line is Correct and not misspelled and that the files are in the Win32App Package..

Regards,
Jörgen

Highlighted

@Jörgen Nilsson hi, i tried again wit a .msi version of 7zip (to try it out). That works without problem and is installed in the background. However with an .exe i now got it working sort of, the install command was indeed not correct. But it does not install in the  background, i just get to see the setup screen to install 7zip manually. I tried /s, /quite, /silent, /s is there another parameter to install the .exe silently?

 

Thanks!

Highlighted
Best Response confirmed by bjornmertens (Occasional Contributor)
Solution

Hi @bjornmertens,

see the 7-Zip FAQ for this info:

How can I install 7-Zip in silent mode?

For exe installer: Use the "/S" parameter to do a silent installation and the /D="C:\Program Files\7-Zip" parameter to specify the "output directory". These options are case-sensitive.

For msi installer: Use the /q INSTALLDIR="C:\Program Files\7-Zip" parameters.

https://www.7-zip.org/faq.html

 

best,

Oliver

Highlighted

@Oliver Kieselbach 

 

Thanks you for the post! The /S mode works with 7zip. Altough i found out that not every installer works with the /S, /s, .... But i guess that most of the sofwtware will list it on there site.

Thanks!!

Highlighted

@bjornmertens definitely correct that different switches work for different apps/developers. They need to include support for those when packaging.

Highlighted

@bjornmertens

To fix the error manually, it will be necessary to remove all of the files partially downloaded, and try again to update your Windows files.

1. On the Windows desktop, press Start, and when the menu opens up,

2. Press Run, and input the following command “services.msc”

3. In the Run box, type "services.msc", and press "Enter".

4. This will open the "Local Services" window.

5. In the Local Services window find the name “Automatic Updates” and right click.

6. On right click, scroll down and press “Stop”. This will cause the Automatic Updates to pause to correct the situation. Do not close the Local Services window.

At this point you can go to the "Software Distribution" folder and delete its contents, or give the folder another name. It is advised that you just rename the folder,

7. To do this go to the Windows desktop and press “Start” then press “Run” when the menu opens.

8. Input the “cmd” command into Run, and the computer will take you to the DOS prompt.

9. At the DOS prompt type in this command “cd %windir%” (without the quotes), and press Enter.

10. You should now be in the Windows directory.

11. At the Windows directory, input “ren SoftwareDistribution SoftDisTemp” and hit "Enter". This will rename the Software Distribution folder to the new name of SoftDisTemp.

12. Type "Exit" and hit "Enter" to close the DOS window.

13. Now go to the "Local Services" window and right click "Automatic Updates" to restart it.

14. Try updating Windows files again.

@bjornmertens