Why do I receive a "cannot create Setup.exe" error when trying to install the MCRInstaller?

19 次查看(过去 30 天)
I am trying to deploy a stand-alone application that I compiled using the MATLAB Compiler 4 (R14).
When I run the MCRInstaller, I receive the following error:
error: cannot create Setup.exe
error: cannot create Setup.ini
error: cannot create InstMsiW.Exe
error: cannot create MCRInstaller.msi

采纳的回答

MathWorks Support Team
This error is a result of the MCRInstaller not being able to write to the directory from which it is being run.
In order for the MCRInstaller to install, it must first extract several temporary setup files (Setup.exe, Setup.ini, InstMsiW.Exe, and MCRInstaller.msi). If the MCRInstaller is trying to extract these files to a directory where it cannot or may not write files, it will produce the error. Example situations of this would include trying to install from a CD-ROM drive or trying to install from a network folder with read-only permissions.
You can work around this by using the "-d" flag to specify a directory to which the MCRInstaller can extract these temporary setup files.
For example, to extract the temporary setup files to the folder "D:\MCRInstall", issue the following command at the system prompt:
MCRInstaller.exe -d D:\MCRInstall
As a second example, to extract to a user's temporary directory (provided they have a "temp" system variable), use the following command:
MCRInstaller.exe -d %temp%\MCRInstall

更多回答(0 个)

类别

Help CenterFile 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!

Translated by