Include Microsoft C++ redistributable with application installer?

조회 수: 6 (최근 30일)
Saajan Chana
Saajan Chana 2021년 8월 20일
댓글: Scott Koch 2021년 9월 2일
Hi,
We're trying to package a Matlab application as a Windows installer (using Matlab R2021a on Windows 10 64-bit). This all works fine as long as the Windows C++ Redistributable (2015-2019) is installed on the target PC before running the installer. However, if I run it on a clean Windows 10 install which does not have the redistributable packge installed it fails because VCRUNTIME140.dll was no found.
Is there a way to include the redistributable in the installer so that it is installed automatically (as is done with the main Matlab installer), so that we do not have to ask our users to download and install it separately?
For reference, we are using this code to create the installer:
installOpts = compiler.package.InstallerOptions(...
'ApplicationName', 'MyApp', ...
'Version', '0.1.0',
'InstallerName', 'MyAppInstaller', ...
'Shortcut', 'MyAppstandaloneApplication\MyApp.exe', ...
'AuthorName', 'Author', ...
'AuthorEmail', 'author@company.com', ...
'AuthorCompany', 'Company');
compiler.package.installer(buildResults, 'Options', installOpts);
Thanks,
Saajan
  댓글 수: 1
Scott Koch
Scott Koch 2021년 9월 2일
We're seeing the exact same error with Matlab R2020b on Windows 10 64-bit. A solution that doesn't require manually copying the file, as suggested here, is needed.
Thanks
Scott

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by