Where does the compiler store any "files required for your application" such as a template Excel Workbook?

조회 수: 43 (최근 30일)
I have a compiled application that copies template worksheets from a template workbook, and adds them to the user generated workbook. When I compile the program, the name of the template workbook shows up in he list of "Files Required for your Application". However, I do not see any Excel workbooks anywhere under Program Files where the application installs to. The program seems to run on my computer, but I am worried that may only be because it was developed on the computer. I worry that when I try to install this on other computers, the Excel workbook will not be found.

채택된 답변

Kojiro Saito
Kojiro Saito 2019년 3월 21일
Files which were included in "Files required for your application to run" are to be included in a standalone exe file created by MATLAB Compiler. So, even though the file is not found in the application install folder, it's fine because the file is included in the exe.
When the exe runs, the attached file is extracted in MATLAB Runtime's cache folder.
For example,
C:\Users\YOUR_USER_NAME\AppData\Local\Temp\YOUR_USER_NAME\mcrCache9.5\xxxxx0\yyyyy
(where xxxxx is an application name and yyyyy is a function name)
  댓글 수: 1
Thomas
Thomas 2020년 9월 29일
In my case, the files were installed in
C:\Users\YOUR_USER_NAME\AppData\Local\Temp\YOUR_USER_NAME\mcrCache9.7\xxxxx0\yyyyy
but ctfroot() returned
C:\Users\YOUR_USER_NAME\AppData\Local\Temp\YOUR_USER_NAME\mcrCache9.7\xxxxx0.
My program name was actually 'yyyyyZZZZZ', not 'yyyyy', so I had to compile and install, determine the exact name of the folder 'yyyyy', and hard code it in my application.

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

추가 답변 (0개)

카테고리

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