Install_addon error!

I downloaded install.addon.m and then create a package now i have install_addon named two file: MLAPPINSTALL file and prj file on desktop. What am i supposed to do with them when i try to call install_addon function in command window i got this error:
Installing smlink...
Extracting archive smlink.r2018b.win64.zip to C:\Program Files\MATLAB\R2018b...
Error using install_addon (line 52)
access denied.
when i click install_addon
"install_addon Install the specified addon to the current MATLAB installation.
install_addon ZIP_FILE.ZIP Install the contents of ZIP_FILE to MATLABROOT."
what is that mean?

2 件のコメント

Edel Antonio Valencia
Edel Antonio Valencia 2020 年 10 月 27 日
I have the same problem.... F
Ian Coelho
Ian Coelho 2021 年 7 月 19 日
F demais

サインインしてコメントする。

回答 (1 件)

arushi
arushi 2024 年 8 月 21 日

0 投票

Hi Aleyna,
The error message you're encountering suggests that there might be a permissions issue when trying to install the addon to the specified directory. Here's are some steps that may help you resolve this issue:
1. Run MATLAB as Administrator:
- If you're trying to install the addon in a directory like `C:\Program Files\`, you may need administrative privileges. Close MATLAB and restart it by right-clicking the MATLAB icon and selecting "Run as administrator."
2. Install the Addon Using the MLAPPINSTALL File:
- If your intention is to install an app packaged as an `MLAPPINSTALL` file, you can install it directly within MATLAB:
- Navigate to the Home tab in MATLAB.
- Click on Add-Ons > Get Add-Ons.
- In the Add-On Explorer, select Install from File and choose your `MLAPPINSTALL` file.
4. Check File Permissions:
- Ensure that the directory where you are extracting the files has the necessary write permissions. You might need to change the directory to a user-writable location, such as your user's Documents folder, and try again.
Hope this helps.

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

質問済み:

2018 年 12 月 21 日

回答済み:

2024 年 8 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by