!define DESKTOP_DLXLINK "$DESKTOP\Linux Demo in ${NAME}.lnk"
;--------------------------------
;General
Name "${NAME}"
Icon "bochs.ico"
OutFile Bochs-${VERSION}.exe
SetOverwrite on
;License dialog
LicenseText "Scroll down to see the rest of the agreement."
LicenseData ${SRCDIR}\COPYING.txt
;Component-select dialog
ComponentText "Check the components you want to install and uncheck the components you don't want to install. Click Next to continue."
; Installation Types
InstType "Normal"
InstType "Full (with DLX Linux demo)"
;Folder-select dialog
InstallDir $PROGRAMFILES\Bochs-${VERSION}
DirText "Setup will install ${NAME} in the following folder.$\r$\n$\r$\nTo install in this folder, click Install. To install in a different folder, click Browse and select another folder." " "
;Uninstaller
UninstallText "This will uninstall ${NAME} from your system."
;--------------------------------
;Installer Sections
Section "Bochs Program (required)" SecCore
SectionIn 1 2 RO
SetOutPath "$INSTDIR"
File "${SRCDIR}\*.exe"
File "${SRCDIR}\*.txt"
File "*.ico"
; Install keymaps
SetOutPath "$INSTDIR\keymaps"
File "${SRCDIR}\keymaps\*"
SectionEnd
Section "ROM Images (required)" SecROMs
SectionIn 1 2 RO
SetOutPath "$INSTDIR"
File "${SRCDIR}\BIOS-*"
File "${SRCDIR}\VGABIOS-*"
SectionEnd
Section "Documentation in HTML" SecDocs
SectionIn 1 2
SetOutPath "$INSTDIR\docs"
File "${SRCDIR}\share\doc\bochs\index.html"
SetOutPath "$INSTDIR\docs\user"
File "${SRCDIR}\share\doc\bochs\user\*"
SetOutPath "$INSTDIR\docs\development"
File "${SRCDIR}\share\doc\bochs\development\*"
SetOutPath "$INSTDIR\docs\documentation"
File "${SRCDIR}\share\doc\bochs\documentation\*"
SetOutPath "$INSTDIR\docs\images"
File "${SRCDIR}\share\doc\bochs\images\*"
SectionEnd
Section "DLX Linux Demo" SecDLX
SectionIn 2
SetOutPath "$INSTDIR\dlxlinux"
File "${SRCDIR}\dlxlinux\*"
; Fix up the path to the Bochs executable
FileOpen $1 "$INSTDIR\dlxlinux\run.bat" w
FileWrite $1 'cd "$INSTDIR\dlxlinux"$\r$\n'
FileWrite $1 "..\bochs -q -f bochsrc.bxrc$\r$\n"
FileClose $1
SectionEnd
Section "Add Bochs to the Start Menu and Desktop" SecIcons
SectionIn 1 2
; Set the Program Group as output to ensure it exists
SetOutPath "${PGDIR}"
; Change the output back to the install folder so the "Start In" paths get set properly