Robust access to interactive book in portable version

Robust access to interactive book in portable version - Сообщения

#1 Опубликовано: 06.10.2014 06:30:38
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

When setting up a portable distribution with pre-installed plugins and handbook, then the link to the handbook is stored in the config file with absolute path. This is not portable, as the drive letter might change for an installation on mobile storage devices.

One can, however, edit the config file and just leave the relative path wrt. installation directory.
This works as long as the user does not switch the current directory after program startup.

Currently, in such situations, I have to recommend the students to run a separate pristine SMath instance and use the handbook there.

The question is, how can the path possibly refer to the installation directory (as found with SettingsDirectory() by Davide)?
Should not be too complicated as the extension manager finds the handbook anyways (after a useless error message).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений