File Hierarchy while creating an app.
Mostrar comentarios más antiguos
Hello!
Some time ago I've created my own Matlab application on the App Designer. The file structure of the application looks like that:
- MainApp.mlapp
- classfile1.m
- classfile2.m
- classfile3.m
- saves (folder) with several .m files
- libs (folder) with several .dll files
When I was packing the application before, all the .m files, that were in the same location with main app file were added automaticaly, but I had to add both folders by myself. It looks like that:

After that the .mlappinstal file was usually created. During the installation the file has always been recreating the file hierarchy of the folder where the Main App file was. So for example the location of the .dll file looked something like that: C:\Users\***\Documents\Matlab\Add-ons\Apps\CDP\code\libs\. I thought this is some kind of constant thing, it never changes, so I made my application use this location.
Bu the last time I was trying to package the application (I have only added one function, nothing more has been changed) the created .mlapinstall file startet to create additional .m file which tried to unsuccessfully launch MainApp.mlapp file (the file itself is in attachments), because of the fact that the installer started to recreate the absolute location of all the files, see screenshot:

So now the path to the same .dll library looks like that: C:\Users\***\Documents\Matlab\Add-ons\Apps\CDP\code\Users\***\Desktop\CDPAPPPROJECT\mlapp\libs\.
I don't even know how to start fixing that because I can't understand the problem.
I will be happy if someone can help me fixing that issue, because now the application itself could not work properly.
Thank you in advance.
Respuestas (0)
Categorías
Más información sobre Develop Apps Using App Designer en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!