Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

This document explains the step by step process to create the exe file for offline desktop app for windows operating system 

Pre-requisites

  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

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 default to 5984 if that port is not available then whatever is auto-selected port which is available used for couchdb 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


Installation Flow





  1. Installation 
    1. If the windows is pirated version show the warning message
    2. Request for the application directory to install. This should be defaulted to "C://Diksha/”? Add this path to the windows registry in the variable “DIKSHA_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_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_PORT"
    4. Install the latest app
    5. Add the app to all windows shortcuts
    6. Launch the app

Note: Any errors during installation should written to a log file that can be transferred to the server


  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


References:

  1. http://couchdb.apache.org/ - for couchdb installation
  2. https://www.npmjs.com/package/node-machine-id - to get the device id


Minimum windows version - Windows 7



  • No labels