Hi!

I hacked together an installer [1] for Windows that does the following:
- Copies forrest 0.8 to the program directory (C:\Program Files)
- Sets FORREST_HOME
- Seeds a new project (new folder on the user's desktop)
- Creates desktop shortcuts to start forrest and open localhost:8888

The installation is based on the zip-file for forrest-0.8 and
results in a total size of 23.088.307 Bytes (slightly *smaller*
than the original zip file).

I'll attach the script to generate the installer to this e-mail
(you'll probably need to adapt the sources, line 42).

I don't know how to proceed:
- Is such an installer of general interest?
- Who may help "polish" it (e.g. uninstall, icons, ...)?
- How to commit? The script is easily committed but what about the .exe?

Cheers,
Johannes


[1] http://nsis.sourceforge.net/   plus plugin:
[2] http://nsis.sourceforge.net/ShellLink_plug-in


-- 
User Interface Design GmbH, Ludwigsburg, Germany
Phone/Fax  +49 7141 37700-46/-99, Mobile +49 170 4914567
E-mail [EMAIL PROTECTED] * www.uidesign.de

Offices:
Martin-Luther-Straße 57-59, D-71636 Ludwigsburg
Truderinger Strasse 330, D-81825 Muenchen
Friedrichsring 46, D-68161 Mannheim

Legal information according to EHUG:
User Interface Design GmbH; Managing Directors: Dr. Claus Goerner,
Franz Koller; Head office: Ludwigsburg; Commercial register of the
local court of Stuttgart, Germany, HRB 205519

+++
We have moved to new premises: As of October 15, you will find the UID head
office at Martin-Luther-Strasse 57-59 * 71636 Ludwigsburg.
+++
; forrest.nsi
;
; Installation script to install Apache Forrest 0.8
; - Extracts all Forrest files to $PROGRAMFILES (usually "C:\Program Files\")
; - Seeds a new project on the desktop
; - Sets FORREST_HOME
; - Creates desktop shortcuts to start Forrest and open a browser 
;
; No uninstall (yet), simply delete all of the above
; 

!include WriteEnvStr.nsh 

;--------------------------------

; The name of the installer
Name "Apache Forrest 0.8"

; The file to write
OutFile "apache-forrest-0.8.exe"

; The default installation directory
InstallDir $PROGRAMFILES\apache-forrest-0.8

; The default seed directory
VAR FSEED

;--------------------------------

; Pages

Page components
Page directory
Page instfiles

;--------------------------------


Section "Apache Forrest 0.8 (required)" 
  ; Set output path to the installation directory.
  SetOutPath $INSTDIR
  File /a /r c:\programme\apache-forrest-0.8-orig\*.*
SectionEnd


Section "Set FORREST_HOME (optional)"
  Push "FORREST_HOME"
  Push $INSTDIR
  Call WriteEnvStr
SectionEnd


Section "Create New Project (on Desktop, optional)"
  Push $OUTDIR

  StrCpy $FSEED "$DESKTOP\Forrest-Project"   ; this should be asked during 
installation!
  SetOutPath   $FSEED

  ClearErrors
  FileOpen $0 $INSTDIR\fseed.bat w
  IfErrors done
  FileWrite $0 "D:"
  FileWriteByte $0 "13"
  FileWriteByte $0 "10"
  FileWrite $0 "cd $FSEED"
  FileWriteByte $0 "13"
  FileWriteByte $0 "10"
  FileWrite $0 '"$INSTDIR\bin\forrest" seed'
  FileWriteByte $0 "13"
  FileWriteByte $0 "10"
  FileClose $0

  ExecWait "$INSTDIR\fseed.bat"
  done:

  Pop $OUTDIR
SectionEnd

Section "Desktop Shortcuts (optional)"
  ClearErrors
  FileOpen $0 $FSEED\run-forrest.bat w
  IfErrors done
  FileWrite $0 '"$INSTDIR\bin\forrest" run 
-Dforrest.jvmargs="-Djetty.port=8888"'
  FileWriteByte $0 "13"
  FileWriteByte $0 "10"
  FileClose $0

  CreateShortCut "$DESKTOP\start-forrest.lnk" "$FSEED\run-forrest.bat" "" 
"$INSTDIR\forrest.ico" 0
  ShellLink::SetShortCutWorkingDirectory "$DESKTOP\start-forrest.lnk" "$FSEED"
  pop $0 ; error handling missing

  CreateShortCut "$DESKTOP\show-forrest-project.lnk" "http://localhost:8888/"; 
"" "$INSTDIR\forrest.ico" 0

  done:
SectionEnd