wiki:BluePrint/Installer/Windows

Version 15 (modified by Fran Boon, 11 years ago) ( diff )

--

Blueprint for Windows Installer

We want to make the Windows installation simpler than the current one.

We want to allow an Emergency Management field worker to download a single executable which installs everything necessary even without Admin rights.
This means providing an option for which folder to install in (default to c:\program files\sahana eden).
Inside this folder have:

Shortcut should be created on Desktop & Start Menu (cutomisable to turn off) which runs app:

  • start service, if installed but not started
  • start app if no service installed
  • load Portable Firefox onto start page: http://localhost:8000/eden

If Admin rights are available, then provide the option (default) to install Service & start Service at boot.

Chosen Tool:

Status:

  • InstallationGuidelinesWindowsPythonInstaller
  • http://eden.sahanafoundation.org/browser/static/scripts/tools/standalone_exe.py
    • Clean the Eden folder (databases/errors/sessions)
    • rename it as 'init'
    • Zip-up folder contents
    • Customise NSIS\Contrib\zip2exe\Modern.nsh:
      !include "MUI.nsh"
      !define MUI_ICON "c:\bin\web2py\applications\eden\static\favicon.ico"
      
      !insertmacro MUI_PAGE_DIRECTORY
      !insertmacro MUI_PAGE_INSTFILES
      
      !insertmacro MUI_LANGUAGE "English"
      
      Section "install"
       
          ;Add files
          SetOutPath "$INSTDIR"
      
          ;create desktop shortcut
          CreateShortCut "$DESKTOP\Sahana Eden.lnk" "$INSTDIR\web2py.exe" ""
       
          ;create start-menu shortcut
          CreateShortCut "$SMPROGRAMS\Sahana Eden.lnk" "$INSTDIR\web2py.exe"
      
      SectionEnd
      
    • use NSIS' zip2exe.exe to convert to an .exe

Possible alternatives:

Script which can run Web2Py after installing any necessary dependencies into Source Python:


BluePrints

Note: See TracWiki for help on using the wiki.