How can I perform a silent (non-interactive) installation, install without Administrator privileges, or use legacy installation procedures with the MATLAB Compiler 4.4 (R2006a)?

13 views (last 30 days)
I would like to perform a silent (non-interactive) installation of my application generated with the MATLAB Compiler 4.4 (R2006a). Alternatively, I would like to install the MCR, but do not have Administrator privileges.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 11 Sep 2012
This enhancement has been incorporated in MATLAB Compiler 4.5 (R2006b). For previous product releases, use the workarounds suggested below that best fit your need:
There are three situations in which the standard MCRInstaller.exe may not be appropriate:
1. Silent (non-interactive) installation
2. Installation without Administrator privileges and
3. Legacy installation procedures that depend on the MSI-file used in MATLAB Compiler 4.0 (R14).
Each of these situations is explored below.
Note that the standard MCRInstaller.exe can be used for installations to shared network drives, as explained in the documentation here:
<http://www.mathworks.com/help/compiler/deploying-a-standalone-application-on-a-network-drive-windows-only.html>
I. Silent (non-interactive) Installation
NOTE: This procedure requires Administrator privileges.
The MATLAB Compiler 4.4 (R2006a) MCRInstaller.exe has a silent option. To perform a silent install to the default location:
MCRInstaller.exe /w /s /v/qn
This command uses the following flags:
/w is to wait for exit
/s is for silent
/v passes qn or query number to MSI installer
NOTE: Spacing is important in this command. There must be spaces between each of the flags, except between /v and /qn.
II. Installation Without Administrator Privileges
The ability to install the MATLAB Component Runtime (MCR) for MATLAB Compiler 4.4 (R2006a) without Administrator privileges is not available.
There are no workarounds.
III. Installation Using the MSI-file "MCRInstaller.msi" or "MATLAB Component Runtime.msi"
In previous releases, silent installs required extracting the MSI-file from the installer. While this is no longer necessary, it is still possible to isolate the MSI-file to use legacy installation procedures or infrastructure. By transferring this MSI-file to your deployment machine and using MSIEXEC to install it as part of your installation procedure, you can avoid user interaction with the MCR Installer.
1. Find the location that the TMP environment variable on your machine points to.
Open the System Properties dialog box. Select Start->Settings->Control Panels and in the Control Panels dialog box, double-click on System. In the System Properties dialog box, click the Advanced tab, and click the Environment Variables button. In the Environment Variables dialog box, look at the User variables (top pane) and note the location specified by the TMP variable (not the very similarly named TEMP variable).
2. Start the MCRInstaller and wait for the first status screen but DO NOT PUSH NEXT. (Double-click MCRInstaller.exe to start the Windows Installer.)
3. Navigate to the location specified by TMP, and locate a folder named _inXXX or _inXX, where X is a number or capital letter A-F. This will be near the top of the list if sorted by Name, and will have a Date Modified of the current time.
4. Copy all the files in this folder to another folder. You can name this other folder anything you want, for example, C:\MYMCR.
5. Go back to the Windows Installer, which should still be open on your desktop, and press Cancel, OK, Finish.
6. Execute the command "msiexec" to complete the installation.
Open a command Prompt window, by selecting Start-> Programs->Accessories->Command Prompt, and navigate to the folder where you saved the installer files. Execute the msiexec command, as in the following:
cd C:\MYMCR
msiexec /q /I "MATLAB Component Runtime.msi"
Note: Replace C:\MYMCR with the name of the folder into which you copied the install files.
This installs the MCR in the directory
%PROGRAMFILES%\MathWorks\MATLAB Component Runtime\vXX
The variable %PROGRAMFILES% is typically C:\Program Files by default.
XX is the MCR version.
In a similar fashion, to uninstall the MCR silently:
msiexec /q /x "MATLAB Component Runtime.msi"

More Answers (0)

Categories

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

Products


Release

R2006a

Community Treasure Hunt

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

Start Hunting!