
[PRE-INSTALL]
PRIORITY 6
ORDER 6
; Dolphin Installation Program
; Control script for Dolphin CE Installer PPC2003\ARMv4

BETA 0
PRODUCT_NAME "Dolphin CE Installer"
PRODUCT_VERSION "1.01"
PRODUCT_BUILD 213
PRODUCT_CODE XC3
DEFAULT_PRODFOLDER "$r\DolphinMobile\CEInstaller"
DEFAULT_STARTFOLDER "DolphinMobile"
ALLOW_STARTFOLDER 1
DEFAULT_STARTUP 0
MIN_DISKSPACE 8192
MIN_MEMORY 16384
MIN_CPU 0
ALLOW_STARTUP 0
TOTAL_KBYTES 939
REGKEY c "Mobile\CEInstaller"
WINDOW_CLASS HAL_CE_INSTALLER_UI
README_DOC "CEInstaller\DOCS\R3200044.TXT"
LICENSE_DOC "CEInstaller\LIC$g.TXT"

[INSTALL]
MKDIR "$f"
; Online manuals
MKDIR "$f\language"
MKDIR "$f\ppc2003"
MKDIR "$f\ppc2003\armv4"
MKDIR "$f\PPC2003"
MKDIR "$f\PPC2003\ARMv4"
COPY "insutils\unststub.exe" "$f\uninst.exe"
COPY "insutils\uninst.exe" "$f\_uninst.exe"
COPY "ins00044.ini" "$f\ins00044.ini"
COPY "ins00001.ini" "$f\ins00001.ini"
COPY "ins00046.ini" "$f\ins00046.ini"
COPY "uns00044.ini" "$f\uns00044.ini"
COPY "uns00001.ini" "$f\uns00001.ini"
COPY "uns00046.ini" "$f\uns00046.ini"
COPY "dol_auth\language\*.ini" "$f\language\*.ini"
COPY "dol_auth\*.*" "$f\*.*"
COPY "dol_auth\core\ppc2003\armv4\*.*" "$f\ppc2003\armv4\*.*"
COPY "CEInstaller\core\*.*" "$f\*.*"
COPY "CEInstaller\core\PPC2003\ARMv4\*.*" "$f\PPC2003\ARMv4\*.*"
COPY "CEInstaller\language\ins00044.pro" "$f\language\ins00044.pro"
COPY "CEInstaller\language\ins00001.pro" "$f\language\ins00001.pro"
COPY "CEInstaller\language\ins00046.pro" "$f\language\ins00046.pro"
COPY "CEInstaller\settings\whitelist.ini" "$f\whitelist.ini"
COPY "CEInstaller\settings\blacklist.ini" "$f\blacklist.ini"
COPY "CEInstaller\language\ins00044.dec" "$f\language\ins00044.dec"
COPY "CEInstaller\language\ins00001.dec" "$f\language\ins00001.dec"
COPY "CEInstaller\language\ins00046.dec" "$f\language\ins00046.dec"
COPY "CEInstaller\language\tar00044.dec" "$f\language\tar00044.dec"
COPY "CEInstaller\language\tar00001.dec" "$f\language\tar00001.dec"
COPY "CEInstaller\language\tar00046.dec" "$f\language\tar00046.dec"

[POST-INSTALL]
LOG REGISTRYKEY c SOFTWARE\Dolphin
LOG REGISTRYKEY l SOFTWARE\Dolphin
LOG REGISTRYKEY c SOFTWARE\Dolphin\Beta
LOG REGISTRYKEY l SOFTWARE\Dolphin\Beta
LOG REGISTRYKEY c SOFTWARE\DolphinMobile
LOG REGISTRYKEY l SOFTWARE\DolphinMobile
INIFILE $W\WIN.INI Compatibility95 CEINSTALLER 0x00000002

STARTMENU $s "Dolphin CE Installer" "$f\InstallerUI.exe" ""
LOG REGTREE l SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DolphinMobileCEInstaller
REGISTRY l SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DolphinMobileCEInstaller\DisplayName str "Dolphin CE Installer"
REGISTRY l SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DolphinMobileCEInstaller\UninstallString str "$f\uninst.exe"

REGISTRY l SOFTWARE\Microsoft\Windows\CurrentVersion\Run\DolphinMobileCEInstaller str "rundll32.exe ""$f\dol_auth.dll"",win32_27"

RUNATEND $f\InstallerUI.exe
END
