I recently faced the issue, that the .Net 4.5.2 Application, which is working very well if deployed to a installed Windows 7 Client, but when I tried to use the same application within the OSD Task Sequence with System Center 2012 Configuration Manager, the Installation constantly fails with the Error:
Process 4000 terminated with exitcode: 16389
You will find some explanations to create a own archive, which will be extracted to allow the installation. Because the main problem is the extraction process while on Operating system deployment, what I could read about.
In anther Blog post (which I can’t find anymore) was mentioned to set the option “Run installation and uninstall program as 32-bit process on 64-bit clients.”. And that’s it!
Here you will find my working .Net 4.5.2 SCCM 2012 R2 SP1 Application usable for 32 and 64 bit client installations (also OSD).
First, copy the original Source to your SCCM package source directory and add it as Deployment Type source:
You can find the source file here (Offline Installer): http://www.microsoft.com/en-us/download/details.aspx?id=42642
My Installation command:
"NDP452-KB2901907-x86-x64-AllOS-ENU.exe" /norestart /q
The uninstall command:
"NDP452-KB2901907-x86-x64-AllOS-ENU.exe" /norestart /uninstall /q
And very important, activate “Run installation and uninstall program as 32-bit process on 64-bit clients.”
Hope this helps.