cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Exia3298
Level 3

Matlab Runtime R2021b Prerequisites failed to sign

Hi,

I have attached the error log for your reference.

My Matlab runtime can be downloaded from the following link:

https://ssd.mathworks.com/supportfiles/downloads/R2021b/Release/4/deployment_files/installer/complete/win64/MATLAB_Runtime_R2021b_Update_4_win64.zip

In the log it mentioned failed to sign the setup.exe installer and it is due to the Matlab runtime R2021b prerequisite. Please help and thanks.

Labels (1)
0 Kudos
(8) Replies
varul
Revenera Moderator Revenera Moderator
Revenera Moderator

Hi @Exia3298 

 The Error 0x80070057- translates to  "The parameter is incorrect."

Make sure you pass correct parameter for your certificate file,

EX: certificate password and certificate path

then try to build the project and verify it works or not.

0 Kudos

Hi,

I don't think the parameter of the certificate file caused this because the same certificate was able to sign for other prerequisites. I just got this sign error after adding the Matlab Runtime 2021b prerequisite only. Please advice.

0 Kudos

The new Matlab 2021b is a zip file. will it cause a problem?

0 Kudos
varul
Revenera Moderator Revenera Moderator
Revenera Moderator

Hi @Exia3298 

As per windows error look up, its invalid parameter, You can refer similar community post.

https://community.flexera.com/t5/InstallShield-Forum/SigningHelper-error-0x80070057-while-attempting-to-sign-file/m-p/93968

 Is matlab is added a prq or zip file added directly to your project file. Please share us the prq file you have created for matlab.

Are you able to sign this zip file outside of installshield, please verify

https://learn.microsoft.com/en-us/dotnet/framework/tools/signtool-exe

I can see the matlab zip file of nearly 3.6GB, are you adding this file as a prq file? (Make sure your machine enough free space available approximately 10GB, if you are shipping matlab as part your setup.exe)

You can also verify, creating a sample test project and add your matlab prq and add signing details and build your project and verify.

0 Kudos

I have attached the prq and error from the signtool. it complains that it is not the right format. 

0 Kudos

Let me post my prq content as it is not allow me to upload the prq file over here.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<SetupPrereq>
<files>
<file LocalFile=".\MATLAB_Runtime_R2021b_Update_2_win64\InstallMCR.bat" CheckSum="54ABAECBEDC8E7F27E3BE67F29A49F76" FileSize="0,911"/>
<file LocalFile=".\MATLAB_Runtime_R2021b_Update_2_win64\MATLAB_Runtime_R2021b_Update_2_win64.zip" CheckSum="B7FD56599572080E156B9E12B328D994" FileSize="0,3891672396"/>
</files>
<execute file="InstallMCR.bat"/>
<properties Id="{F5E5A0CF-F737-42C9-AC0C-DFB9BE40FF6B}" AltPrqURL="https://ssd.mathworks.com/supportfiles/downloads/R2021b/Release/4/deployment_files/installer/complete/win64/MATLAB_Runtime_R2021b_Update_4_win64.zip"/>
</SetupPrereq>

0 Kudos
varul
Revenera Moderator Revenera Moderator
Revenera Moderator

Hi @Exia3298 : if the Microsoft signtool itself failing to sign the zip file, i think installshield as well wont sign the zip file

https://stackoverflow.com/questions/71129341/how-to-sign-a-zip-file-on-a-machine-where-a-certificate-is-installed-of-which-i

Are you adding this zip file in your ism file and did you selected the option sign files in packages to YES.

Could you please share your project file (.ise)? because i dont add the zip file to project ise file, only prq with zip file we are able to build without any issues.

You can also verify, by creating a test project with a sample prq with zip package added (not matlab) and then build your sample and test signing.

0 Kudos

Hi,

I don't add zip files to the project ise but like you only prq with the zip file. In addition, only the Matlab Runtime zip file has issues only. My other prq or older Matlab runtime version than 2021 is working fine. 

0 Kudos