Stand alone executable command prompt

3 次查看(过去 30 天)
I have MATLAB 7.9.529 (R2009B) running on a Windows XP system. I use deploytool to build a stand alone executable. The executable module consists on one GUI with various menu items and calculation buttons. When I package the executable, I include the MCRInstaller. I am able to successfully install the package on the target machine.
My question is: When I execute the install stand alone executable on the target machine, I Windows command prompt opens and remains open the entire time executable remains open. Why is this and how can I get rid of this? I have reviews several webnairs on this subject and none of the examples they use exhibit this behaivour?
Thanks,
Bryan

回答(3 个)

Kaustubha Govind
Kaustubha Govind 2011-2-14
Build as "Windows Standalone Application"
  2 个评论
Bryan Van Dyke
Bryan Van Dyke 2011-2-14
I do build it as a Windows Standalone Application. Is there some other environment I need to set?
thanks
Kaustubha Govind
Kaustubha Govind 2011-2-16
No, you shouldn't have to set anything else. I'm surprised that this doesn't work. Does you application attempt to run anything from the system command prompt?

请先登录,再进行评论。


Matthew Whitaker
Matthew Whitaker 2011-2-14
On your mcc command you need to add the -e flag. Note you need to use a Microsoft compiler for this to work (like Visual Studio express)
See http://www.mathworks.com/support/compilers/R2010b/index.html for supported compilers

Sanjeet kumar
Sanjeet kumar 2011-2-26
Hi All,
I have developed few Stand alone GUI in MATLAB which run fine on my machine( The machine on which i have developed the executable). But I am not able to run the same on any other machine. Even they have MATLAB or MCR installed in it.
Could you guys please help me on this? It will be very kind.
Thanks in advance.. Please mail be at san.ank9@gmail.com
Regards, Sanjeet Kumar Singh
  2 个评论
Kaustubha Govind
Kaustubha Govind 2011-2-28
Sanjeet: Please start a new question for this. Note that you only add an "answer" to an existing question if you are attempting to resolve it. See http://www.mathworks.com/matlabcentral/about/answers/ for best pratices.
Sanjeet kumar
Sanjeet kumar 2011-3-3
Thanks Govind. I have started a new question http://www.mathworks.com/matlabcentral/answers/2401-how-to-create-standalone-executable-which-can-run-on-other-machine-too Could you please check it out if you can help me on this
Thanks

请先登录,再进行评论。

类别

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