Matlab Compiled App installer displays unknown publisher

13 次查看(过去 30 天)
When I install my compiled custom app ("MyAppInstaller_mcr.exe") my computer security warning (UAC) shows that the publisher is unknown. How can I get the Matlab Application Compiler to also display a publisher in the application installer?

回答(1 个)

HimeshNayak
HimeshNayak 2023-3-13
Hey Eduardo
I understand that you want to provide the “Publisher Name” to the EXE file you have created using MATLAB Application Compiler.
The Publisher Unknown message is a Microsoft default when UAC is set to a high level. If you do not wish to see the Publisher as unknown, we recommend that lowering the UAC level to medium or low. Although this does not affect the installation process, this is done by signing the application.
Currently, there is no way to sign the app at the time of creation, but here is a few work-around. Use Windows SignTool to sign the application.
% compile
mcc('-m','-R','-startmsg', ...
'-d', outfolder, ...
'-v',source,'-o',strrep(target, '.exe', '')); % compile. mcc wants the target name without the .exe
% sign
system([ 'signtool.exe sign /f MYCERT.pfx /p MYPASS /t http://timestamp.verisign.com/scripts/timstamp.dll /v ' outfolder '/' target ], '-echo');
To know more about the SignTool application, refer: https://learn.microsoft.com/en-us/windows/win32/seccrypto/signtool
Regards
HimeshNayak
  1 个评论
Adarsh
Adarsh 2023-11-9
Hi Himesh,
When I downloaded a file from open source and trying to open in MATLAB, it is not opening anything, not showing any error also. What shall I do?
Regards,
Adarsh

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by