0x800700C1: Not a valid Win32 application
Windows could not run a file as a program. In SCCM the file is usually damaged, built for another CPU type, or the path has spaces and no quotes.
What 0x800700C1 means
0x800700C1 means Windows tried to start a file and found it is not a program it can run. The text is "%1 is not a valid Win32 application".
You see it in Software Center on a failed install and in the console under Monitoring > Deployments. On the client, check AppEnforce.log or execmgr.log. In a task sequence, check smsts.log.
Common causes
- The installer file is damaged or cut short in the source folder or on the distribution point.
- The program is 64-bit and the client runs 32-bit Windows, or it is built for another CPU type such as ARM64.
- The path has spaces and no quotes, and a file such as
C:\Programexists on the client. - The command names a file that is not a program, such as a document or a script, with no program to open it.
How to fix 0x800700C1
-
Test the source file
Go to the content source folder on the server. Check the file size against the vendor's download. Run the installer by hand on a test machine. If it fails there too, download it again from the vendor.
-
Compare the file on the client with the source
Find the content in
C:\Windows\ccmcacheon the client. Get the file hash there and in the source folder. If the two hashes differ, the copy on the distribution point is bad.In the console, open the properties of the content, go to Content Locations, select the distribution point and choose Redistribute. Then clear the bad content from the client cache and retry.
-
Check the CPU type
Check whether the client runs 32-bit or 64-bit Windows. Use the installer made for it. Add a requirement to the deployment type so each installer only runs on the right operating system.
-
Quote the path and call scripts with their program
Put quotes around any path with spaces in the install command. Then look on the client for a stray file named
C:\Programand remove it if you find one.Start scripts with their program, for example
powershell.exe -ExecutionPolicy Bypass -File install.ps1orcscript.exe install.vbs.
Commands that help
Get-FileHash -Algorithm SHA256 -Path 'C:\Windows\ccmcache\1\setup.exe'
Turn any hex or decimal error code into its meaning, or search every code on this site.