Matlab Compiled App installer displays unknown publisher

13 Ansichten (letzte 30 Tage)
Eduardo Garcia
Eduardo Garcia am 3 Jan. 2023
Kommentiert: Adarsh am 9 Nov. 2023
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?

Antworten (1)

HimeshNayak
HimeshNayak am 13 Mär. 2023
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 Kommentar
Adarsh
Adarsh am 9 Nov. 2023
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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu MATLAB Compiler finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by