[OPTIONS]
Title="英雄传说IV"			; 僎乕儉僞僀僩儖
SrcDir=ED4_WIN				; 僀儞僗僩乕儖尦僨傿儗僋僩儕
DstDir=ED4_WIN				; 僨僼僅儖僩僀儞僗僩乕儖愭僨傿儗僋僩儕
ExeName=ED4_WIN.EXE			; 幚峴僼傽僀儖柤
IconName="英雄传说IV"
CopySize=250000				; 儊僯儏乕偑幚峴偝傟側偐偭偨偲偒偺僨僼僅儖僩僒僀僘
YearRight=2002				; 僐僺乕儔僀僩偺擭
InstTitle="英雄传说IV朱红的泪"

BtnWidth=30
BtnHeight=7

SetupText=安装
ExitText=退出
PlayText=开始游戏
UninstText=卸载

; 俠俢侾梡
;setupBtn=0
;setupBtnX=999
;setupBtnY=999
;UninstBtn=0
;UninstBtnX=999
;UninstBtnY=999
;
;PlayBtnX=80
;PlayBtnY=30
;ExitBtnX=80
;ExitBtnY=40

; 俠俢俀梡
PlayBtn=0
PlayBtnX=999
PlayBtnY=999

setupBtnX=80
setupBtnY=25
UninstBtnX=80
UninstBtnY=35
ExitBtnX=80
ExitBtnY=45

; 俢倁俢梡
;setupBtnX=80
;setupBtnY=25
;UninstBtnX=80
;UninstBtnY=35
;PlayBtnX=80
;PlayBtnY=45
;ExitBtnX=80
;ExitBtnY=55

InstMes5="安装所需空间"
InstMes6="标准安装所需空间250M，最大安装所需空间1G"
;InstMes6="昗弨偱栺250M丄嵟戝偱栺1.6G昁梫偱偡丅"
InstMes7="安装完毕"
InstMes8="插入游戏光盘，开始游戏！"


[INIT]

[GAME]
EXE		%DstDrv%%DstDir%ED4_WIN.EXE, QUIT

[INIT_INST]
MENUTITLE	"选择安装方式"
MENUITEM	"最大安装  1G", "[INIT_1]"
;MENUITEM	"嵟戝僀儞僗僩乕儖丂丂 侾.俇俧", "[INIT_1]"
MENUITEMD	"标准安装  250M", "[INIT_2]"
MENU


[INIT_1]
INSTSIZE	 900000,  900000, NOCHECK
;INSTSIZE	1540000, 1540000, NOCHECK
INST_LAB	"[INST_1]", "[INIT_INST]", "[EXIT_INST]", "[WIN_SCRIPT]"

[INIT_2]
INSTSIZE	 250000,  250000, NOCHECK
INST_LAB	"[INST_2]", "[INIT_INST]", "[EXIT_INST]", "[WIN_SCRIPT]"


[INST_1]
MKDIR		%DstDrv%%DstDir%SAVEDATA
MKDIR		%DstDrv%%DstDir%DLL
;MKDIR		%DstDrv%%DstDir%DLLDV
MKDIR		%DstDrv%%DstDir%LIB
MKDIR		%DstDrv%%DstDir%WAVE
;MKDIR		%DstDrv%%DstDir%WAVEDV
MKDIR		%DstDrv%%DstDir%MIDI

FIND		%SrcDrv%ED4_WIN.CD2, "请插入安装光盘！"
;FIND		%SrcDrv%ED4_WIN.DVD, "英雄传说IV偺僨傿僗僋傪擖傟偰偔偩偝偄"
COPY		%SrcDrv%%ExeDir%fsetup.exe		%DstDrv%%FalcomDir%
COPY		%SrcDrv%%ExeDir%falcom.inf		%DstDrv%%DstDir%
COPY		%SrcDrv%%SrcDir%*.*			%DstDrv%%DstDir%
COPY		%SrcDrv%%SrcDir%SAVEDATA\*.*		%DstDrv%%DstDir%SAVEDATA
COPY		%SrcDrv%%SrcDir%DLL\*.*			%DstDrv%%DstDir%DLL
;COPY		%SrcDrv%%SrcDir%DLLDV\*.*		%DstDrv%%DstDir%DLLDV
COPY		%SrcDrv%%SrcDir%LIB\*.*			%DstDrv%%DstDir%LIB
COPY		%SrcDrv%%SrcDir%MIDI\*.*		%DstDrv%%DstDir%MIDI

FIND		%SrcDrv%ED4_WIN.CD1, "请插入游戏光盘"
COPY		%SrcDrv%%SrcDir%WAVE\*.*		%DstDrv%%DstDir%WAVE
;COPY		%SrcDrv%%SrcDir%WAVEDV\*.*		%DstDrv%%DstDir%WAVEDV

[INST_2]
MKDIR		%DstDrv%%DstDir%SAVEDATA
MKDIR		%DstDrv%%DstDir%DLL
;MKDIR		%DstDrv%%DstDir%DLLDV
MKDIR		%DstDrv%%DstDir%LIB
MKDIR		%DstDrv%%DstDir%MIDI

FIND		%SrcDrv%ED4_WIN.CD2, "请插入安装光盘！"
;FIND		%SrcDrv%ED4_WIN.DVD, "英雄传说IV偺僨傿僗僋傪擖傟偰偔偩偝偄"
COPY		%SrcDrv%%ExeDir%fsetup.exe		%DstDrv%%FalcomDir%
COPY		%SrcDrv%%ExeDir%falcom.inf		%DstDrv%%DstDir%
COPY		%SrcDrv%%SrcDir%*.*			%DstDrv%%DstDir%
COPY		%SrcDrv%%SrcDir%SAVEDATA\*.*		%DstDrv%%DstDir%SAVEDATA
COPY		%SrcDrv%%SrcDir%DLL\*.*			%DstDrv%%DstDir%DLL
;COPY		%SrcDrv%%SrcDir%DLLDV\*.*		%DstDrv%%DstDir%DLLDV
COPY		%SrcDrv%%SrcDir%LIB\*.*			%DstDrv%%DstDir%LIB
COPY		%SrcDrv%%SrcDir%MIDI\*.*		%DstDrv%%DstDir%MIDI


[WIN_SCRIPT]
REGCREATEKEY	"SOFTWARE\Falcom\ED4_WIN"
REGSETSTRING	"SOFTWARE\Falcom\ED4_WIN", "Path", "%DstDrv%%DstDir%"
UNINSTINFO	"英雄传说IV", "%DstDrv%%FalcomDir%fsetup.exe /s ED4_WIN\falcom.inf /u"
SHORTCUTP	%DstDrv%%DstDir%ED4_WIN.EXE, "英雄传说IV"
SHORTCUTD	%DstDrv%%DstDir%ED4_WIN.EXE, "英雄传说IV桌面快捷方式"


[UNINSTALL]
DELETE		%InstDrv%%InstDir%LIB\*.*
DELETE		%InstDrv%%InstDir%DLL\*.*
;DELETE		%InstDrv%%InstDir%DLLDV\*.*
DELETE		%InstDrv%%InstDir%WAVE\*.*
;DELETE		%InstDrv%%InstDir%WAVEDV\*.*
DELETE		%InstDrv%%InstDir%MIDI\*.*
DELETE		%InstDrv%%InstDir%BMP\*.*
DELETE		%InstDrv%%InstDir%*.*

RMDIR		%InstDrv%%InstDir%LIB
RMDIR		%InstDrv%%InstDir%DLL
;RMDIR		%InstDrv%%InstDir%DLLDV
RMDIR		%InstDrv%%InstDir%WAVE
;RMDIR		%InstDrv%%InstDir%WAVEDV
RMDIR		%InstDrv%%InstDir%MIDI
RMDIR		%InstDrv%%InstDir%BMP

CLRSHORTCUT	"英雄传说IV"
CLRSHORTCUTD	"英雄传说IV桌面快捷方式"
CLRUNINSTINFO

YESNO		"是否删除存档？","[YES]","[NO]"

[YES]
DELETE		%InstDrv%%InstDir%SAVEDATA\*.*
RMDIR		%InstDrv%%InstDir%SAVEDATA
RMDIR		%InstDrv%%InstFalDir%ED4_WIN
REGDELETE	"SOFTWARE\Falcom\ED4_WIN"

[NO]
