MATLAB: Do I receive a “Error unpacking application” message when trying to execute Simulink Real-Time in Standalone Mode using DOS Loader boot method in MATLAB R2017a

I am trying to execute Simulink Real-Time using Standlone Mode on my Target PC using the DOS Loader boot method, and I am receiving the error message shown below:
Error: Error unpacking application
My current steps are: # Execute config.sys for selecting Standalone mode. # Select Standalone mode and then execute autoexec.bat , and this file will change to Autorun folder and use xpcboot command to execute slrtkrnl.rtb file. # After executing, I receive the error.
Why do I receive this error?

Best Answer

Since you are using the DOS Loader boot method, there are some things to take into account when running in DOS Loader mode. Please refer to the following documentation links for how to create a DOS System disk, DOS Loader Mode Restrictions, and the overall DOS Loader boot method workflow:
In the DOS Loader Mode Restrictions page, there are certain restrictions to keep in mind and all of these restrictions must be satisfied for the system to work correctly. One of these is to avoid using a "config.sys" file.
In your current workflow, you mentioned that you are executing a config.sys file for selecting standalone mode, so working around using the config.sys file should resolve the issue.