I am currently working on setting up an MDT 2013 deployment in order to distribute Windows 10 as an image to multiple devices throughout the business I'm working in.
I have configured MDT to deploy an image with certain programs successfully pre-installed on it, these programs are:
- Adobe Reader DC
- Google Chrome
- .Net framework 2.0-3.5.1
- Office 365 Apps for enterprise
I'm currently trying to get it to install an older application which does not have a .MSI for me to use, only a .exe file. To get around this, I have created a powershell script which, among other functions, copies the files required for the installation across and performs a silent install in the background. This has been tested on computers joined to the domain and computers not joined to the domain, however when I attempt to add the script as an application in MDT, it fails every time with a rather generic error which doesn't seem to tell me very much.
After looking into this quite extensively I determined it might be the Execution policy causing a problem, however after injecting a registry key to set the policy to unrestricted I now receive a different error code, the error code is "Appliaction AppName returned an unexpected return code: 1" I cannot seem to find any further information about this, can anyone suggest anything for me to look at please?