Deployed exe with configuration file
显示 更早的评论
My deployed Matlab apps include configuration data which is stored to custom *.cfg files. This works fine unless the installer is used in which case Windows locks the program directory and the config files cannot be updated.
There were a few old links on this topic but none seemed to address this specific issue. One referenced setpref/addpref, but that appeared to be configuring Matlab rather than the end user app. One suggested adding files to the deploytool "Shared" folder which does not exist. Some info on ctfroot() which seems to point to the app install folder but that is where files are being locked.
Restating the issue: I am compiling an app, it is being installed on a users computer, then the app needs to read/write the *.cfg file based on user interactions with the application. Some of the information is complex (such as custom filters); not just X = Y items.
Suggestions?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Install Products 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!