; ; $Id$ ; ; Copyright (c) 2002, RIACA, Technische Universiteit Eindhoven (TU/e). ; All Rights Reserved. ; ; ---------------------------------------------------------------------------- ; ; RIACA MathDox Example application ; ; ---------------------------------------------------------------------------- Name "RIACA MathDox 1.0.1 Example Application" OutFile "mathdox-1.0.1-example.exe" InstallDir "$PROGRAMFILES\RIACA MathDox 1.0.1 Example" InstallDirRegKey HKLM "SOFTWARE\RIACA\MathDox 1.0.1 Example" "Install.Dir" ComponentText "This will install the RIACA MathDox 1.0.1 Example application on your computer. Select which optional things you want installed." DirText "Choose a directory to install in to:" ; ----------------------------------------------------------------------------- ; ; Program section ; ; ----------------------------------------------------------------------------- Section "Program (required)" SetOutPath $INSTDIR File /r *.* WriteRegStr HKLM "SOFTWARE\RIACA\MathDox 1.0.1 Example" "Install.Dir" "$INSTDIR" WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\RIACA MathDox 1.0.1 Example" "DisplayName" "RIACA MathDox 1.0.1 Example (remove only)" WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\RIACA MathDox 1.0.1 Example" "UninstallString" '"$INSTDIR\uninstall.exe"' WriteUninstaller "uninstall.exe" SectionEnd ; ----------------------------------------------------------------------------- ; ; Shortcuts section ; ; ----------------------------------------------------------------------------- ; ; Shortcuts section ; Section "Start Menu Shortcuts" SetOutPath $INSTDIR CreateDirectory "$SMPROGRAMS\RIACA MathDox 1.0.1 Example" CreateShortCut "$SMPROGRAMS\RIACA MathDox 1.0.1 Example\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0 CreateShortCut "$SMPROGRAMS\RIACA MathDox 1.0.1 Example\README.lnk" "notepad" "$INSTDIR\README" "" 0 CreateShortCut "$SMPROGRAMS\RIACA MathDox 1.0.1 Example\README.html.lnk" "$INSTDIR\README.html" "" "" 0 CreateShortCut "$SMPROGRAMS\RIACA MathDox 1.0.1 Example\Start MathDox server.lnk" "$INSTDIR\bin\startup.bat" "" "" CreateShortCut "$SMPROGRAMS\RIACA MathDox 1.0.1 Example\Stop MathDox server.lnk" "$INSTDIR\bin\shutdown.bat" "" "" CreateShortCut "$SMPROGRAMS\RIACA MathDox 1.0.1 Example\View MathDox pages.lnk" "http://localhost:8080/mathbook/" "" "" SectionEnd ; ----------------------------------------------------------------------------- ; ; Uninstall section ; ; ----------------------------------------------------------------------------- UninstallText "This will uninstall the RIACA MathDox 1.0.1 Example application. Hit next to continue." Section "Uninstall" SetOutPath $INSTDIR DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\RIACA MathDox 1.0.1 Example" DeleteRegKey HKLM "SOFTWARE\RIACA\MathDox 1.0.1 Example" Delete "$SMPROGRAMS\RIACA MathDox 1.0.1 Example\*.*" RMDir "$SMPROGRAMS\RIACA MathDox 1.0.1 Example" RMDir /r "$INSTDIR" SectionEnd