Chem.Eq.Diagr  Chemical Equilibrium Diagrams

DATABASE/SPANA:
Installing and Uninstalling


Distribution and installing:

The software is distributed through the Internet at:

www.kth.se/che/medusa

sites.google.com/site/chemdiagr

sourceforge.net/projects/eq-diagr

  • Windows: the setup program allows you to make either a standard or a portable installation. For a standard installation the setup program will make the program group “Equilibrium Diagrams (java)” with the necessary icons (shortcuts). Optionally it will also associate “plt” and “dat” files with Spana. You can later change these file associations using the menu “Preferences / General options” in Spana.
  • Ubuntu (Linux): copy the non-system specific zip-file to your home directory (~). Double click to open the zip-file. Extract the files to your home directory. Make sure that the “Re-create folders” and “Overwrite existing files” actions are checked. Follow the instructions in the file “Readme_Ubuntu.txt”.
  • Mac OS: copy the non-system specific zip-file to your desktop. Double-click to open and un-zip the file. Open the un-zipped folder and copy the “Eq-Diagr” folder to your home directory, for example. Follow the instructions in the file “Readme_MacOS.txt”.

  • top

    INI-files and Environment Variables

    “ini”-files (for example  “Spana.ini”  and  “DataBase.ini”) keep track of the user’s preferences, the default directory, the databases, etc. “ini”-files are created in the installation directory. However, if the programs are installed on a system folder, or on a Network disk, or on a CD, then the “ini”-files in the installation directory will be read-only, and the programs will try to save the user’s preferences in directories specified in environment variables, etc. The sequence is:

    Note: except for the installation directory, “ini”-files will be writen in a sub-folder named “.config\eq-diagr”.

    A warning message will be displayed if no “ini”-file is found, or if it can not be written anywhere. See also “cfg”-files below.

    DataBase: if an “ini”-file (DataBase.ini) is found in the installation directory (that is, where DataBase.jar is found) then this file is always used to read the dabase names. On a Network server this file would contain settings common for all users. A personal “ini”-file (either in %HOMEDRIVE%%HOMEPATH%, or in the user’s home directory) then provides personal settings for each user: the default directory, the start position of the DataBase-window, etc.


    top

    CFG-files

    “cfg”-files are used to configure program behaviour. They are plain text files which you can change with any text editor. The configuration parameters are:

    If a “cfg”-file does not exist for a given program, the default values given above are used, and the “cfg”-file is created in the installation directory (unless the directory is write-protected).


    top

    File associations

    On Windows, files with extension “plt” and “dat” may be automatically associated with Spana when running the setup program. Note, however, these associations might be in conflict with other software.

    To add or remove file associations use the advanced program level in the menu “Preferences / General options” in Spana.


    top

    Installing on a Network server

    All the files and sub-directories created during the installation can be moved by the system administrator to a network disk, which should be read-only to normal users. Alternatively the software could be installed directly to the final location by the administrator. Shortcuts should be modified, if necessary, to point to the correct location (i.e., to the network directory). Environment variables should be defined so that “ini”-files may be saved to appropriate location.

    Installing on a CD-ROM

    You may burn the installation files to a CD. “Ini”-files will be created when you run the software as described above. Because the CD is a read-only memory, “ini”-files will be created locally in the computer where the CD is inserted.

    If you do not want “Ini”-files created on the local computer, then before burning the CD, run first all programs (Spana, DataBase, etc) from the hard-disk, and then edit the configuration files created (Spana.cfg, DataBase.cfg, etc) and change SaveIniFileToApplicationPathOnly from false to true and burn these files also to the CD. In this way local “ini”-files will not be created, but an error message will be displayed when ending each program, explaining that the “ini”-file could not be saved.

    Installing on a USB memory

    The programs may be installed on any removable memory.

    Windows: Choose the option “Portable application” in the setup program.

    If the “PortableApps.com” plattform is found on the removable drive, Spana/DataBase will be installed following the portable apps directory structure.

    If the “PortableApps.com” plattform is NOT found, the software will be copied into a single folder on the USB drive. To run Spana open the USB directory with the file explorer and double-click on the file “Spana­Portable.exe”.

    Ubuntu (Linux) and Mac OS: just copy all files to the removable drive. If Java is installed on the local Macintosh or Linux, then double-clicking on a “jar”-file in the USB memory should start the program.

    For all systems: “ini”-files will be created on the USB memory when you run the software.


    top

    Uninstalling

    top