; Script generated with the Venis Install Wizard

; Define your application name
!define APPNAME "Renegade BBS"
!define APPNAMEANDVERSION "Renegade BBS 05-11.4"

; Main Install settings
Name "${APPNAMEANDVERSION}"
InstallDir "$PROGRAMFILES\Renegade BBS"
InstallDirRegKey HKLM "Software\${APPNAME}" ""
OutFile "..\..\..\..\..\..\RG5-11\RG\DOCS\RG051104.EXE"

; Modern interface settings
!include "MUI.nsh"

!define MUI_ABORTWARNING
!define MUI_FINISHPAGE_RUN "$INSTDIR\RG.BAT"

!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "..\..\..\..\..\..\RG5-11\RG\DOCS\LICENSE.TXT"
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH

!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES

; Set languages (first is default language)
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_RESERVEFILE_LANGDLL

Section "Renegade BBS" Section1

	; Set Section properties
	SetOverwrite on

	; Set Section Files and Shortcuts
	SetOutPath "$INSTDIR\"
	File "..\..\..\..\..\..\RG5-11\RG\LOGON.BAT"
	File "..\..\..\..\..\..\RG5-11\RG\RENEMAIL.EXE"
	File "..\..\..\..\..\..\RG5-11\RG\RENEGADE.DAT"
	File "..\..\..\..\..\..\RG5-11\RG\1stboot"
	File "..\..\..\..\..\..\RG5-11\RG\RENEGADE.EXE"
	File "..\..\..\..\..\..\RG5-11\RG\RENEGADE.OVR"
	File "..\..\..\..\..\..\RG5-11\RG\RG.BAT"
	SetOutPath "$INSTDIR\DOCS\"
	File "..\..\..\..\..\..\RG5-11\RG\DOCS\MCI.DOC"
	File "..\..\..\..\..\..\RG5-11\RG\DOCS\RGD12303.DOC"
	File "..\..\..\..\..\..\RG5-11\RG\DOCS\RENEMAIL.DOC"
	File "..\..\..\..\..\..\RG5-11\RG\DOCS\QUICKREF.PDF"
	File "..\..\..\..\..\..\RG5-11\RG\DOCS\RENDOCS.PDF"
	File "..\..\..\..\..\..\RG5-11\RG\DOCS\LICENSE.TXT"
	File "..\..\..\..\..\..\RG5-11\RG\DOCS\WHATDONE"
	SetOutPath "$INSTDIR\PROT\"
	File "..\..\..\..\..\..\RG5-11\RG\PROT\CEXYZ.EXE"
	File "..\..\..\..\..\..\RG5-11\RG\PROT\fdsz.exe"
	SetOutPath "$INSTDIR\MSGS\"
	File "..\..\..\..\..\..\RG5-11\RG\MSGS\EMAIL.HDR"
	SetOutPath "$INSTDIR\MISC\"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\BATCHUL0.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\BULLETIN.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\CENTR.ANS"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\COLOR.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\ENTR.ANS"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\FILE.ANS"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\FILEOP.ANS"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\FSHELP.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\INTRNODE.ANS"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\INTRNODE.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\LASTH.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\LASTM.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\LASTT.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\LOGOFF.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\MENUCMD.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\MSG.ANS"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\MSGOP.ANS"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\NEWINFO.ANS"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\NEWINFO.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\NODELH.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\NODELM.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\NODELT.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\PRELOGON.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\PRHELP.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\PSEUDOS.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\SETUP.ANS"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\SETUP.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\SYSTEM.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\TELEHELP.ANS"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\TELEHELP.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\TIMEDOUT.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\USERH.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\USERM.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\USERT.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\UTIL.ANS"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\VOTE.ANS"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\YOURINFO.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\DOSHELP.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\ACTIONS.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\ACTIONS.LST"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\PROTSUL.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\PROTBUL.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\PROTRES.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\PROTBDL.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\PROTSDL.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\BBSLEM.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\bbslet.asc"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\BBSNT.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\BBSEH.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\BBSET.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\BBSME.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\BBSMN.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\BBSNH.ASC"
	File "..\..\..\..\..\..\RG5-11\RG\MISC\bbslist.scr"
	SetOutPath "$INSTDIR\MENU\"
	File "..\..\..\..\..\..\RG5-11\RG\MENU\CENTRAL.MNU"
	File "..\..\..\..\..\..\RG5-11\RG\MENU\ENTRTAIN.MNU"
	File "..\..\..\..\..\..\RG5-11\RG\MENU\FDIR.MNU"
	File "..\..\..\..\..\..\RG5-11\RG\MENU\FILE.MNU"
	File "..\..\..\..\..\..\RG5-11\RG\MENU\FILEOP.MNU"
	File "..\..\..\..\..\..\RG5-11\RG\MENU\FILEP.MNU"
	File "..\..\..\..\..\..\RG5-11\RG\MENU\FSEARCH.MNU"
	File "..\..\..\..\..\..\RG5-11\RG\MENU\GLOBAL.MNU"
	File "..\..\..\..\..\..\RG5-11\RG\MENU\INFO.MNU"
	File "..\..\..\..\..\..\RG5-11\RG\MENU\MESSAGE.MNU"
	File "..\..\..\..\..\..\RG5-11\RG\MENU\MSGOP.MNU"
	File "..\..\..\..\..\..\RG5-11\RG\MENU\NEWINFO.MNU"
	File "..\..\..\..\..\..\RG5-11\RG\MENU\READP.MNU"
	File "..\..\..\..\..\..\RG5-11\RG\MENU\SETUP.MNU"
	File "..\..\..\..\..\..\RG5-11\RG\MENU\START.MNU"
	File "..\..\..\..\..\..\RG5-11\RG\MENU\SYSOP.MNU"
	File "..\..\..\..\..\..\RG5-11\RG\MENU\TEMPLATE.MNU"
	File "..\..\..\..\..\..\RG5-11\RG\MENU\TIMEBANK.MNU"
	File "..\..\..\..\..\..\RG5-11\RG\MENU\UTILITY.MNU"
	File "..\..\..\..\..\..\RG5-11\RG\MENU\VOTING.MNU"
	SetOutPath "$INSTDIR\DATA\"
	File "..\..\..\..\..\..\RG5-11\RG\DATA\CONFRENC.DAT"
	File "..\..\..\..\..\..\RG5-11\RG\DATA\EVENTS.DAT"
	File "..\..\..\..\..\..\RG5-11\RG\DATA\MBASES.DAT"
	File "..\..\..\..\..\..\RG5-11\RG\DATA\PROTOCOL.DAT"
	File "..\..\..\..\..\..\RG5-11\RG\DATA\SCHEME.DAT"
	File "..\..\..\..\..\..\RG5-11\RG\DATA\VOTING.DAT"
	File "..\..\..\..\..\..\RG5-11\RG\DATA\HISTORY.DAT"
	File "..\..\..\..\..\..\RG5-11\RG\DATA\USERS.DAT"
	File "..\..\..\..\..\..\RG5-11\RG\DATA\TOGGLES.DAT"
	File "..\..\..\..\..\..\RG5-11\RG\DATA\NODE1.DAT"
	File "..\..\..\..\..\..\RG5-11\RG\DATA\RENEGADE.LNG"
	SetOutPath "$INSTDIR\ARCS\"
	File "..\..\..\..\..\..\RG5-11\RG\ARCS\PKUNZIP.EXE"
	File "..\..\..\..\..\..\RG5-11\RG\ARCS\PKZIP.EXE"
	CreateShortCut "$DESKTOP\Renegade BBS.lnk" "$INSTDIR\RG.BAT"
	CreateDirectory "$SMPROGRAMS\Renegade BBS"
	CreateShortCut "$SMPROGRAMS\Renegade BBS\Renegade BBS.lnk" "$INSTDIR\RG.BAT"
	CreateShortCut "$SMPROGRAMS\Renegade BBS\Uninstall.lnk" "$INSTDIR\uninstall.exe"

SectionEnd

Section -FinishSection

	WriteRegStr HKLM "Software\${APPNAME}" "" "$INSTDIR"
	WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "DisplayName" "${APPNAME}"
	WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "UninstallString" "$INSTDIR\uninstall.exe"
	WriteUninstaller "$INSTDIR\uninstall.exe"

SectionEnd

; Modern install component descriptions
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
	!insertmacro MUI_DESCRIPTION_TEXT ${Section1} ""
	!insertmacro MUI_DESCRIPTION_TEXT ${Section2} ""
	!insertmacro MUI_DESCRIPTION_TEXT ${Section3} ""
	!insertmacro MUI_DESCRIPTION_TEXT ${Section4} ""
	!insertmacro MUI_DESCRIPTION_TEXT ${Section5} ""
	!insertmacro MUI_DESCRIPTION_TEXT ${Section6} ""
	!insertmacro MUI_DESCRIPTION_TEXT ${Section7} ""
	!insertmacro MUI_DESCRIPTION_TEXT ${Section8} ""
	!insertmacro MUI_DESCRIPTION_TEXT ${Section9} ""
	!insertmacro MUI_DESCRIPTION_TEXT ${Section10} ""
!insertmacro MUI_FUNCTION_DESCRIPTION_END

;Uninstall section
Section Uninstall

	;Remove from registry...
	DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}"
	DeleteRegKey HKLM "SOFTWARE\${APPNAME}"

	; Delete self
	Delete "$INSTDIR\uninstall.exe"

	; Delete Shortcuts
	Delete "$DESKTOP\Renegade BBS.lnk"
	Delete "$SMPROGRAMS\Renegade BBS\Renegade BBS.lnk"
	Delete "$SMPROGRAMS\Renegade BBS\Uninstall.lnk"

	; Clean up Renegade BBS
	Delete "$INSTDIR\LOGON.BAT"
	Delete "$INSTDIR\RENEMAIL.EXE"
	Delete "$INSTDIR\RENEGADE.DAT"
	Delete "$INSTDIR\1stboot"
	Delete "$INSTDIR\RENEGADE.EXE"
	Delete "$INSTDIR\RENEGADE.OVR"
	Delete "$INSTDIR\RG.BAT"
	Delete "$INSTDIR\DOCS\MCI.DOC"
	Delete "$INSTDIR\DOCS\RGD12303.DOC"
	Delete "$INSTDIR\DOCS\RENEMAIL.DOC"
	Delete "$INSTDIR\DOCS\QUICKREF.PDF"
	Delete "$INSTDIR\DOCS\RENDOCS.PDF"
	Delete "$INSTDIR\DOCS\LICENSE.TXT"
	Delete "$INSTDIR\DOCS\WHATDONE"
	Delete "$INSTDIR\PROT\CEXYZ.EXE"
	Delete "$INSTDIR\PROT\fdsz.exe"
	Delete "$INSTDIR\MSGS\EMAIL.HDR"
	Delete "$INSTDIR\MISC\BATCHUL0.ASC"
	Delete "$INSTDIR\MISC\BULLETIN.ASC"
	Delete "$INSTDIR\MISC\CENTR.ANS"
	Delete "$INSTDIR\MISC\COLOR.ASC"
	Delete "$INSTDIR\MISC\ENTR.ANS"
	Delete "$INSTDIR\MISC\FILE.ANS"
	Delete "$INSTDIR\MISC\FILEOP.ANS"
	Delete "$INSTDIR\MISC\FSHELP.ASC"
	Delete "$INSTDIR\MISC\INTRNODE.ANS"
	Delete "$INSTDIR\MISC\INTRNODE.ASC"
	Delete "$INSTDIR\MISC\LASTH.ASC"
	Delete "$INSTDIR\MISC\LASTM.ASC"
	Delete "$INSTDIR\MISC\LASTT.ASC"
	Delete "$INSTDIR\MISC\LOGOFF.ASC"
	Delete "$INSTDIR\MISC\MENUCMD.ASC"
	Delete "$INSTDIR\MISC\MSG.ANS"
	Delete "$INSTDIR\MISC\MSGOP.ANS"
	Delete "$INSTDIR\MISC\NEWINFO.ANS"
	Delete "$INSTDIR\MISC\NEWINFO.ASC"
	Delete "$INSTDIR\MISC\NODELH.ASC"
	Delete "$INSTDIR\MISC\NODELM.ASC"
	Delete "$INSTDIR\MISC\NODELT.ASC"
	Delete "$INSTDIR\MISC\PRELOGON.ASC"
	Delete "$INSTDIR\MISC\PRHELP.ASC"
	Delete "$INSTDIR\MISC\PSEUDOS.ASC"
	Delete "$INSTDIR\MISC\SETUP.ANS"
	Delete "$INSTDIR\MISC\SETUP.ASC"
	Delete "$INSTDIR\MISC\SYSTEM.ASC"
	Delete "$INSTDIR\MISC\TELEHELP.ANS"
	Delete "$INSTDIR\MISC\TELEHELP.ASC"
	Delete "$INSTDIR\MISC\TIMEDOUT.ASC"
	Delete "$INSTDIR\MISC\USERH.ASC"
	Delete "$INSTDIR\MISC\USERM.ASC"
	Delete "$INSTDIR\MISC\USERT.ASC"
	Delete "$INSTDIR\MISC\UTIL.ANS"
	Delete "$INSTDIR\MISC\VOTE.ANS"
	Delete "$INSTDIR\MISC\YOURINFO.ASC"
	Delete "$INSTDIR\MISC\DOSHELP.ASC"
	Delete "$INSTDIR\MISC\ACTIONS.ASC"
	Delete "$INSTDIR\MISC\ACTIONS.LST"
	Delete "$INSTDIR\MISC\PROTSUL.ASC"
	Delete "$INSTDIR\MISC\PROTBUL.ASC"
	Delete "$INSTDIR\MISC\PROTRES.ASC"
	Delete "$INSTDIR\MISC\PROTBDL.ASC"
	Delete "$INSTDIR\MISC\PROTSDL.ASC"
	Delete "$INSTDIR\MISC\BBSLEM.ASC"
	Delete "$INSTDIR\MISC\bbslet.asc"
	Delete "$INSTDIR\MISC\BBSNT.ASC"
	Delete "$INSTDIR\MISC\BBSEH.ASC"
	Delete "$INSTDIR\MISC\BBSET.ASC"
	Delete "$INSTDIR\MISC\BBSME.ASC"
	Delete "$INSTDIR\MISC\BBSMN.ASC"
	Delete "$INSTDIR\MISC\BBSNH.ASC"
	Delete "$INSTDIR\MISC\bbslist.scr"
	Delete "$INSTDIR\MENU\CENTRAL.MNU"
	Delete "$INSTDIR\MENU\ENTRTAIN.MNU"
	Delete "$INSTDIR\MENU\FDIR.MNU"
	Delete "$INSTDIR\MENU\FILE.MNU"
	Delete "$INSTDIR\MENU\FILEOP.MNU"
	Delete "$INSTDIR\MENU\FILEP.MNU"
	Delete "$INSTDIR\MENU\FSEARCH.MNU"
	Delete "$INSTDIR\MENU\GLOBAL.MNU"
	Delete "$INSTDIR\MENU\INFO.MNU"
	Delete "$INSTDIR\MENU\MESSAGE.MNU"
	Delete "$INSTDIR\MENU\MSGOP.MNU"
	Delete "$INSTDIR\MENU\NEWINFO.MNU"
	Delete "$INSTDIR\MENU\READP.MNU"
	Delete "$INSTDIR\MENU\SETUP.MNU"
	Delete "$INSTDIR\MENU\START.MNU"
	Delete "$INSTDIR\MENU\SYSOP.MNU"
	Delete "$INSTDIR\MENU\TEMPLATE.MNU"
	Delete "$INSTDIR\MENU\TIMEBANK.MNU"
	Delete "$INSTDIR\MENU\UTILITY.MNU"
	Delete "$INSTDIR\MENU\VOTING.MNU"
	Delete "$INSTDIR\DATA\CONFRENC.DAT"
	Delete "$INSTDIR\DATA\EVENTS.DAT"
	Delete "$INSTDIR\DATA\MBASES.DAT"
	Delete "$INSTDIR\DATA\PROTOCOL.DAT"
	Delete "$INSTDIR\DATA\SCHEME.DAT"
	Delete "$INSTDIR\DATA\VOTING.DAT"
	Delete "$INSTDIR\DATA\HISTORY.DAT"
	Delete "$INSTDIR\DATA\USERS.DAT"
	Delete "$INSTDIR\DATA\TOGGLES.DAT"
	Delete "$INSTDIR\DATA\NODE1.DAT"
	Delete "$INSTDIR\DATA\RENEGADE.LNG"
	Delete "$INSTDIR\ARCS\PKUNZIP.EXE"
	Delete "$INSTDIR\ARCS\PKZIP.EXE"

	; Remove remaining directories
	RMDir "$SMPROGRAMS\Renegade BBS"
	RMDir "$INSTDIR\PROT\"
	RMDir "$INSTDIR\MSGS\"
	RMDir "$INSTDIR\MISC\"
	RMDir "$INSTDIR\MENU\"
	RMDir "$INSTDIR\DOCS\"
	RMDir "$INSTDIR\DATA\"
	RMDir "$INSTDIR\ARCS\"
	RMDir "$INSTDIR\"

SectionEnd

; eof