Version 27 (modified by Fran Boon, 14 years ago) ( diff )


Maintenance of the End-user Windows Installer

End-user Instructions: InstallationGuidelinesWindows

  • Clean the Eden folder (databases/errors/sessions/uploads)
  • Clean the admin folder (sessions)
  • Have your web2py folder on the root of c:\
    cd \web2py
    copy applications\eden\static\scripts\tools\ .
    c:\bin\python26\python py2exe
  • Remove unwanted folders from dist/applications/eden
    • .bzr
    • .git
    • compiled
    • docs
    • tests
    • static/scripts/gis/GeoExt/.*
    • static/scripts/gis/openlayers/.*
    • static/selenium
  • Add missing file & then run the program once to handle NEWINSTALL
    cd \web2py
    copy splashlogo.gif dist
  • rename eden as 'init'
  • Delete the examples & welcome folders
  • Rename 'dist' folder as 'web2py'
  • Move this 'web2py' folder to c:\
  • Zip-up contents of this 'webp2y' folder (no 'web2py' in the root of the zip)
  • Customise C:\Program Files\NSIS\Contrib\zip2exe\Modern.nsh:
    !include "MUI.nsh"
    !define MUI_ICON "c:\web2py\applications\init\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"
  • use NSIS' zip2exe.exe to convert to an .exe
    • Installer Name: Sahana Eden 0.5.3
    • Default Folder: C:\web2py
    • Output EXE file: C:\Sahana-Eden-0.5.3.exe


  • Provide a startup script which passes the password, so no need for the TK GUI
    • Is there an easy call to launch the default browser from a script?
      • Can be 'eden' then, which is good for consistency
  • Is it better to have a larger download & include the pre-populated database with migrate=False? (& pre-populate=False)
  • Is it better to have a larger download & include the compiled app?
  • Remove all the Debug mode files? (Ext/GeoExt/OpenLayers/jQuery/UI/etc)

Developer installer


Attachments (1)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.