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

14 views (last 30 days)
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

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
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

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!