Retrieve Compiled App Project Info at Runtime

조회 수: 3 (최근 30일)
dpb
dpb 2023년 10월 30일
댓글: dpb 2023년 10월 30일
<This Question> asked about retrieving version from compiled app; TMW Staff answered on Windows only by getting the details of the executable file manually.
Has anything improved since?
I would like to add an "Info" menu that would be able to read the project info in the compiler sections such as version and description to be able to display that to the user -- seems pointless to have the stuff in the project and not be able to retrieve it at runtime but I can't find anything in the doc that indicates can/how to do so.

답변 (1개)

Mario Malic
Mario Malic 2023년 10월 30일
I haven't seen a property that says anything about app version, however, it's possible to get it if you extract the .mlapp file and find the info in the coreProperties.xml file (which is silly thing to do if you want to get app version).
Maybe you could add the version to the name property of the app, as you can extract it easier compared to above solution.
  댓글 수: 1
dpb
dpb 2023년 10월 30일
Indeed, all I've been able to find so far are similarly ludicrous workarounds...this is just a tiny little tool for the ladies in the Foundation office that mungs on some complicated Excel files for them; it doesn't deserve taking up a bunch of time writing formal help files, etc., but would be convenient to be able to display some hints of some of the less common features. I had put those into the project description section way back when I started on the presumption those would be available to the user; otherwise, what's the purpose of them even being there?
Stuff like this that just doesn't seem finished or, apparently, ever will be is truly frustrating...

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

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by