How to run standalone .exe file on computer without MATLAB?

Hello all,
I am trying to run a standalone application (.exe) on a computer which doesn't have matlab. I have installed matlab compiler runtime on my computer which has matlab. Now I want to deploy the standalone application to other computers which doesn't have matlab. I have used the deploy tool, but i am not sure how to deploy the whole package to other computers including Matlab compiler runtime.
can anyone please help me out.

Answers (3)

The deploy tool creates a self-extracting archive, and I believe (but am not sure) that MCR comes in the form of a self-extracting archive as well. Copy both to the new machine, install MCR, run the self-extracting archive which is the application, run the application, watch it crash, go back to the original machine and try to figure out why. Lather, rinse, repeat.
Keep a bookmark for http://dependencywalker.com -- you are going to need it.
In deploytool, you should see a tab called "Package". There, you can include the MCR and package it (by clicking on the package button in the toolbar). That would create a single installer file which you can run on the other computers.

8 Comments

Thank you for the answer.
I have tried to do that and i created a package which includes the setup file of MCR. I have sent the package to other computer using network connection (shared). when i opened the package on other computer it is asking to install MCR.
can you please tell me if i install MCR, then will i be be able to run the standalone (.exe) file on that computer.
Thank you.
regards,
You will not be able to run the standalone executable without installing MCR.
Once MCR is installed, there is a _chance_ that your standalone executable will work.
Thank you .
I have installed MCR successfully on the target computer. But when I am running the standalone executable file, it is terminating suddenly and not displaying the outputs.
Thank you.
regards,
Now is the time to refer to the link I recommended you bookmark.
Thank you walter.
I have installed the dependency walker. I have selected the file and did profiling as well. But, I am not sure how to resolve the errors in the dependency walker.
the errors are:
Warning: At least one delay-load dependency module was not found.
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.
Thank you.
regards,
I don't think I know anything about missing export functions.
You should look at the output and find the dependency module it indicates as being not found, and post that information.
Thank you. I have found the following:
IESHIMS.DLL
WER.DLL
The following error is coming along with the above DLL's.
error opening file. the system cannot find the file specified (2).
Thabk you.
Regards,

Sign in to comment.

Hello sir I need a matlab complier runtime software of version 7.16.I search everywhere but this is not find

1 Comment

You need to get that MCR version from the person who build the application. MCR 7.16 was the last MCR under the older license that did not allow MCR to be easily downloaded.

Sign in to comment.

Categories

Tags

Asked:

on 6 Apr 2011

Edited:

on 27 Jul 2023

Community Treasure Hunt

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

Start Hunting!