User Toolbox Installation

2 views (last 30 days)
Christopher
Christopher on 31 May 2011
Hi,
I am creating a Matlab toolbox, and having difficulty writing a robust installation script.
Requirements
1) The installation script needs to modify the static Java path (by editing classpath.txt and librarypath.txt). Due to some other constraints, I can't use dynamic paths.
2) This must work on a shared cluster computer (Linux with a single folder containing the Matlab install, no write privileges).
3) The script should be fully automatic - I do not want to have to ask the user to do any manual editing, copying, modifying shortcuts, etc.
Problem
Right now I have an install script which copies the classpath.txt, librarypath.txt to the userpath folder, then modifies as appropriate. The problem is that there is no way to ensure that Matlab starts in this folder- it entirely depends on where your shortcut launches. For example, launching Matlab by double-clicking a file will launch in the current folder, not userpath, hence none of the startup scripts are used and the toolbox is not loaded. So right now I have to ask the user to manually update all of their shortcuts.
Is there any better way to do this kind of installation?

Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!