MATLAB: Does the CTF archive file re-extract every time I run a deployed application created with MATLAB Compiler 4.0 (R14)

applicationarchivecompiledcompilerctfextractextractsMATLAB Compilerre-extractstandalone

I have created a stand-alone executable using MATLAB Compiler 4.0 (R14), and have successfully deployed it on another machine. However, every time I run the application, the CTF archive extracts. I have not modified or removed the directory created by the extraction process.

Best Answer

This issue can occur when the timestamp on the CTF archive and/or the EXE-file for the deployed application appear to be in the future, compared to the system clock on the deployed machine. This is generally due to a faulty time setting either on the compilation machine or the deployment machine, and can be corrected by fixing the system clock on these machines.
To correct this issue, operating system utilities can be used to modify the timestamp of the CTF-file and EXE-file.
With newer versions of MATLAB, the CTF does not extract each and every time, only the first time. For all subsequent runs, the extracted CTF is used.