question

HanenChhibi-3705 avatar image
0 Votes"
HanenChhibi-3705 asked SimonRenMSFT-3639 commented

MDT : the application returned an unexpected code 2

I try to install the nav application with mdt but still there is an error: "Application Nav returned an expected return code: 2
here are all the details87314-1.png87327-2.png87331-3.png


mem-mdtwindows-10-application-compatibility
1.png (18.0 KiB)
2.png (85.1 KiB)
3.png (24.7 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

From my experience with a return Code 2, that usually meant a reboot was required.
You can add 2 to the exceptions "success code" on the Option tab of that step in your TS.

Usually in an msi I will add Reboot=ReallySuppress so that it avoids a reboot but if MDT sees that an installation needs a reboot, it can throw an RC=2.

There may be other definitions of what the 2 is, but for me it has always meant a required reboot, so I just make it
0 3010 2 in the success code.

0 Votes 0 ·

1 Answer

SimonRenMSFT-3639 avatar image
0 Votes"
SimonRenMSFT-3639 answered SimonRenMSFT-3639 commented

Hi,

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

Best regards,
Simon


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.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

Hope everything goes well. May we know the current status of the question? If there is any other assistance we can provide, please feel free to let us know, we will do our best to help you.

Thanks and regards,
Simon

0 Votes 0 ·