Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Incompatibility stand-alone applications (made with Matlab Compiler) and Windows7??

Subject: Incompatibility stand-alone applications (made with Matlab Compiler) and Windows7??

From: Camille Couzi

Date: 23 Nov, 2011 06:43:11

Message: 1 of 4

Hello Matlab friends,

I deployed some time ago a GUI intoa stand alone application using Matlab Compiler and the end users could open it on computers which had windows XP.

Yesterday I passed my application (a .exe) to another end user who has Windows7 on his machine, he could install the MCR, but when he clicks on my .exe nothing happens.
Is that a problem related to the operating system?

I somebody has any clue of what could be happening, it would be great... thanks in advance!

Camille.

Subject: Incompatibility stand-alone applications (made with Matlab Compiler) and Windows7??

From: Bruno Luong

Date: 23 Nov, 2011 07:29:10

Message: 2 of 4

"Camille Couzi" <cco@dhi.com.sg> wrote in message <jai4lv$ab3$1@newscl01ah.mathworks.com>...
> Hello Matlab friends,
>
> I deployed some time ago a GUI intoa stand alone application using Matlab Compiler and the end users could open it on computers which had windows XP.
>
> Yesterday I passed my application (a .exe) to another end user who has Windows7 on his machine, he could install the MCR, but when he clicks on my .exe nothing happens.
> Is that a problem related to the operating system?
>
> I somebody has any clue of what could be happening, it would be great... thanks in advance!
>
> Camille.

Incompatibility occurs between two version of software. You say Windows 7 but you fail to tell us which Matlab (compiler) version you use to build the stand alone app.

Officially Windows 7 is supported by a not-too-old Matlab. However I was able to deploy application using version back to 2006, with few cautions such as: never install the software in "Program Files" folder, disable Aero mode etc...

In any case you should run the program on a command window (Go to "Start" menu on the bottom left, type "cmd" on the box, when a black window appears, type "cd MyAppliPath", then "MyAppli.exe") and see if any error message appears and please report back here.

Bruno

Subject: Incompatibility stand-alone applications (made with Matlab Compiler) and Windows7??

From: Camille Couzi

Date: 23 Nov, 2011 07:55:09

Message: 3 of 4

Hi Bruno
Thanks a lot for your answer!

I did what you said, opened the cmd, cd MyPath, and then execute MyApp
and I get an error message in the cmd which says:
'This Matlab file has reached its expiration date'

and a little window opoed up saying:
' MyApp.exe has stopped working.
A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available.'

Is that because I created MyApp.exe using the trial version of the Matlab Compiler (which lasted 2 weeks)? I though I could produce as many standalone applications with this compiler, and even if after 2weeks the trial version was over, I still could open my aplications created during those 2weeks... no?

thanks in advance for your reply...
Camille.



"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <jai7c6$ho0$1@newscl01ah.mathworks.com>...
> "Camille Couzi" <cco@dhi.com.sg> wrote in message <jai4lv$ab3$1@newscl01ah.mathworks.com>...
> > Hello Matlab friends,
> >
> > I deployed some time ago a GUI intoa stand alone application using Matlab Compiler and the end users could open it on computers which had windows XP.
> >
> > Yesterday I passed my application (a .exe) to another end user who has Windows7 on his machine, he could install the MCR, but when he clicks on my .exe nothing happens.
> > Is that a problem related to the operating system?
> >
> > I somebody has any clue of what could be happening, it would be great... thanks in advance!
> >
> > Camille.
>
> Incompatibility occurs between two version of software. You say Windows 7 but you fail to tell us which Matlab (compiler) version you use to build the stand alone app.
>
> Officially Windows 7 is supported by a not-too-old Matlab. However I was able to deploy application using version back to 2006, with few cautions such as: never install the software in "Program Files" folder, disable Aero mode etc...
>
> In any case you should run the program on a command window (Go to "Start" menu on the bottom left, type "cmd" on the box, when a black window appears, type "cd MyAppliPath", then "MyAppli.exe") and see if any error message appears and please report back here.
>
> Bruno

Subject: Incompatibility stand-alone applications (made with Matlab Compiler) and Windows7??

From: Camille Couzi

Date: 23 Nov, 2011 08:05:10

Message: 4 of 4

Ey bruno I just found the solution on the mathworks website... it's because of the trial version of MCR...
Thanks for your help anyway!


Subject:

Why do I receive an error related to expiration date when application compiled with a Trial version of MATLAB Compiler is deployed to the end user?
Problem Description:

I used the DEPLOYTOOL with the MCR installer to create an install package
and distributed the packaged application to an end user. When running the EXE-file from a command prompt, the application works fine for a few weeks and then the end user encounters the following error:
This MATLAB file has reached its expiration date. "c:\tools\ASAP2_Creator_mcr\toolbox\compiler\deploy\matlabrc.m"

Solution:

This problem occurs if the deployed application was compiled using a trial version of the MATLAB Compiler. When an executable is a created using a trial version of the MATLAB Compiler, the executable works for a duration of 30 days from the creation date.

Please check if this executable was created using a trial version of the MATLAB Compiler. If this is the case, then you would need to re-compile the original source code using a regular (non-trial) version of the MATLAB Compiler and re-deploy the application to the end user.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us