Include Microsoft C++ redistributable with application installer?
조회 수: 6 (최근 30일)
이전 댓글 표시
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
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 Center 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!