Thanks for posting in Microsoft MECM Q&A forum.
Could we manually install the application on your computer? Please help check the bdd.log file and see what it says. Per my personal experience, unexpected code 2 usually means file not found, incorrect file path or permissions.
Similar thread for your reference: https://community.spiceworks.com/topic/1325927-mdt-2013-update-1-application-installation
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.