Deploying a standalone application to computer with no install privileges

조회 수: 13 (최근 30일)
Jim Hokanson
Jim Hokanson 2018년 7월 4일
답변: Jim Hokanson 2018년 7월 9일
I wrote a simple GUI which I was planning on placing in a standalone application to be run on a computer without Matlab. I included the runtime because I don't think the person running the program will have any install privileges. Unfortunately when I want to run the program on my computer it tries to run an installation program. From what I can tell it is not possible to generate executables using the deployment tool that can be run without installing something.
However, there are numerous other deployment options. Do any of these support running code without installing, even if a bit of extra wrapping work is required?

답변 (2개)

Jim Hokanson
Jim Hokanson 2018년 7월 9일
I ended up switching to Octave for this project. Octave can be run without installation. The zip download is about 400 MB which needs to be unzipped to run. Inside is a octave.bat file which can be modified to run code on startup (by default it just start a prompt, either GUI or CLI).
The conversion process took somewhere between 8 - 16 hours with most of the time spent on 1) writing code that generates code for generating figures (a modification/cleanup of fig2m on the file exchange, no openfig in Octave) 2) code that writes tabular looking data to a listbox (no uitable in Octave) and 3) handling differences in xlsread functionality between Matlab and Octave. There were a lot of other small changes I needed to make the code but those were the big changes. In the end I was fortunate that there was enough supported with classes and packages that I was able to port my code without too much of a hassle.
It is possible to compile a program in Octave but I found it difficult to extract the necessary files (there is no neat packaging service available).

Matt J
Matt J 2018년 7월 4일
편집: Matt J 2018년 7월 4일
Maybe the Matlab Coder? I.e., convert your code to C/C++, compile that, and deploy the executable.
  댓글 수: 1
Jim Hokanson
Jim Hokanson 2018년 7월 4일
I might need to fall back to using that on the internals but I was hoping for an alternative which would support GUIs. My understanding of the documentation is that the C/C++ conversion option does not support GUIs. I don't know if it is possible to use the Excel option, or Java, or .Net, or some local web based option .... Or perhaps someone has had luck using Octave?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by