Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Minimum windows version - Windows 7
  2. Minimum RAM required - 2GB(Should show warning if the RAM size is less than 2GB)
  3. Minimum disk space required for installation 400MB
  4. Minimum disk space required for running the app 10GB

Below are the error messages when the pre-requisites are not met while installing 

  1. windows 7 - windows 7 or greater is required to install the app
  2. Disk space - Minimum 400MB space is required to install the app.

Registry Variables

  1. ${APP_NAME}_APP_WORKING_DIR - which is used to add the installation location. Example: SUNBIRD_APP_WORKING_DIR="c:\\sunbird"

  2. ${APP_NAME}_DB_PORT -  which is used to install couchdb couch DB default to 5984 if that port is not available then whatever is auto-selected port which is available in system used for couchdb couch DB installation. Example: SUNBIRD_DB_PORT=5984
  3. ${APP_NAME}_APP_PORT - default to 9000 if it is occupied whatever available. Example: SUNBIRD_APP_PORT=9000

...

  1. Installation 
    1. If the windows is pirated version show the warning messagemessage  → (The operation system is pirated, app may not work as expected)
    2. Request for the application directory to install. This should be defaulted to "C://Diksha${APP_NAME}/”? Add this path to the windows registry in the variable “DIKSHA“{APP_NAME}_APP_WORKING_DIR" 
  2. Couch DB installation 
    1. Check if couch db is already installed.
    2. If “yes” - check the version. If version matches the installer version check if the service is running and start the service. If installed version doesn’t match the version to be installed, uninstall the older version
    3. if “no” then proceed with the installation
    4. Before installation check if port 5984 is under use. If under use switch to another port
    5. Update the port in to the windows registry in the variable “DIKSHA“{APP_NAME}_DB_PORT"
    6. Silent install couch DB on the given port.
    7. The couch db configuration should be updated to use the <application-dir>/data as the db path
    8. Restart service
  3. Electron app installation
    1. Uninstall app if the older version exists
    2. check port 9000 is available if not available get the available port for app
    3. Update the port in to the windows registry in the variable “DIKSHA“{APP_NAME}_APP_PORT"
    4. Install the latest app
    5. Add the app to all windows shortcuts
    6. Launch the app

Note:

  1. Any errors during installation should written to a log file that can be transferred to the server with device id(read reference section below for device id)
  2. All the error messages should be read from a file  so that they can be changed easily 
  3. APP_NAME should be read from file as well


  1. Uninstall
    1. Uninstall link to the desktop app should be available under the installed programs context menu
    2. Uninstall should uninstall both couch db and electron app
    3. Data directory to be cleaned up.
    4. Windows registry variables should be removed

...