Search code examples
matlabsignmatlab-deploymentmatlab-compiler

How do I sign the installed executable of a compiled matlab program?


I have a program, written in MATLAB 2014b, that is compiled using Matlab Compiler Runtime and distributed as an executable: blah.exe.

I know it is possible to sign this executable (with a certificate I provide), but what if I wanted to sign the executable post-installation? Is this possible, and how would I do it?

Perhaps the signing carries over? Am I totally misunderstanding this?

EDIT: This is being done on Windows, for Windows users.


Solution

  • According to a post on the MATLAB website, it isn't possible directly through the MATLAB compiler but can be done afterwards with signtool.exe which is provided with Visual Studio.

    https://uk.mathworks.com/matlabcentral/answers/339976-matlab-compiler-how-do-i-sign-an-app-with-a-certificate-i-supply