;// ***************************************************************
;// Name:  CCDOS.INF
;// Date:  97-12-02
;// ---------------------------------------------------------------
;//
;// 安装方法:
;//    首先必须保证此文件与CCDOS.EXE在同一目录内, 启动Windows 95的资
;// 源管理器, 用右键点击本文件, 然后选择 "安装" 即可自动完成安装.
;//    安装完成后将在桌面生成一个 "中文DOS 方式" 的图标,  双击此图标
;// 即可进入CCDOS 97.
;//
;// 卸载方法:
;//    在"控制面板"中选择"添加/删除程序", 再选中 "成然大中文CCDOS 97
;// 快捷方式", 点"添加/删除"即可.
;//
;// ---------------------------------------------------------------

[version]
Signature = "$CHICAGO$"
Provider = "Chenus Electronic Lab."

[Strings]
REMOVE_DESC = "成然大中文CCDOS 97快捷方式"
LOCATE = "Software\Microsoft\Windows\CurrentVersion\Uninstall"
PRODUCT = "CCDOS 97"
PROGRAM = "CCDOS.EXE"
DESKTOP = "中文DOS 方式"
LONGNAME = "CCDOS 97 中文DOS方式"
CCDOS_HERE = "从这进入中文DOS方式[&C]"
RUN_IN_CCDOS = "在中文DOS方式下运行[&X]"

[CopyFiles.Inf]
CCDOS.INF

[SourceDisksFiles]
CCDOS.INF = 55

[SourceDisksNames]
55 = "","",1

[DefaultInstall]
CopyFiles = CopyFiles.Inf
UpdateInis= LinksInstall.Inf
AddReg = Registry.Add

[DefaultUninstall]
DelFiles = CopyFiles.Inf
UpdateInis= LinksUninstall.Inf
DelReg = Registry.Add

[DefaultInstall.ntx86]
CopyFiles = CopyFiles.Inf
UpdateInis= LinksInstall.Infnt
AddReg = Registry.Addnt

[DefaultUninstall.ntx86]
DelFiles = CopyFiles.Inf
UpdateInis= LinksUninstall.Infnt
DelReg = Registry.Addnt

[DestinationDirs]
CopyFiles.Inf = 17

[LinksInstall.Inf]
setup.ini, progman.groups,, "desktop=""..\..\Desktop"""
setup.ini, progman.groups,, "program=""."""
setup.ini, desktop,, """%DESKTOP%"", ""%10%\command.com /k %01%\%PROGRAM%"",,,,"%01%""
setup.ini, program,, """%LONGNAME%"", ""%10%\command.com /k %01%\%PROGRAM%"",,,,"%01%""

[LinksUninstall.Inf]
setup.ini, progman.groups,, "desktop=""..\..\Desktop"""
setup.ini, progman.groups,, "program=""."""
setup.ini, desktop,, """%DESKTOP%"""
setup.ini, program,, """%LONGNAME%"""

[LinksInstall.Infnt]
setup.ini, progman.groups,, "desktop=""..\..\Desktop"""
setup.ini, progman.groups,, "desktopc=""..\..\桌面"""
setup.ini, progman.groups,, "program=""."""
setup.ini, desktop,, """%DESKTOP%"", ""%10%\system32\cmd.exe /k %01%\%PROGRAM%"",,,,"%01%""
setup.ini, desktopc,, """%DESKTOP%"", ""%10%\system32\cmd.exe /k %01%\%PROGRAM%"",,,,"%01%""
setup.ini, program,, """%LONGNAME%"", ""%10%\system32\cmd.exe /k %01%\%PROGRAM%"",,,,"%01%""

[LinksUninstall.Infnt]
setup.ini, progman.groups,, "desktop=""..\..\Desktop"""
setup.ini, progman.groups,, "desktopc=""..\..\桌面"""
setup.ini, progman.groups,, "program=""."""
setup.ini, desktop,, """%DESKTOP%"""
setup.ini, desktopc,, """%DESKTOP%"""
setup.ini, program,, """%LONGNAME%"""

[Registry.Add]
HKLM,%LOCATE%\%PRODUCT%
HKLM,%LOCATE%\%PRODUCT%,DisplayName,,"%REMOVE_DESC%"
HKLM,%LOCATE%\%PRODUCT%,UninstallString,,"%10%\rundll.exe setupx.dll,InstallHinfSection DefaultUninstall 32 %17%\CcDos.inf"
HKCR,Directory\Shell\%PRODUCT%,,,"%CCDOS_HERE%"
HKCR,Directory\Shell\%PRODUCT%\command,,,"%10%\command.com /k %01%\%PROGRAM%
HKCR,Drive\Shell\%PRODUCT%,,,"%CCDOS_HERE%"
HKCR,Drive\Shell\%PRODUCT%\command,,,"%10%\command.com /k %01%\%PROGRAM%
HKLM,Software\Classes\batfile\shell\%PRODUCT%,,,"%RUN_IN_CCDOS%"
HKLM,Software\Classes\batfile\shell\%PRODUCT%\command,,,"%10%\command.com /c %01%\%PROGRAM% /x ""%%1"" %*"

[Registry.Addnt]
HKLM,%LOCATE%\%PRODUCT%
HKLM,%LOCATE%\%PRODUCT%,DisplayName,,"%REMOVE_DESC%"
HKLM,%LOCATE%\%PRODUCT%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 32 %17%\CcDos.inf"
HKCR,Directory\Shell\%PRODUCT%,,,"%CCDOS_HERE%"
HKCR,Directory\Shell\%PRODUCT%\command,,,"%10%\system32\cmd.exe /k %01%\%PROGRAM%
HKCR,Drive\Shell\%PRODUCT%,,,"%CCDOS_HERE%"
HKCR,Drive\Shell\%PRODUCT%\command,,,"%10%\system32\cmd.exe /k %01%\%PROGRAM%
HKLM,Software\Classes\batfile\shell\%PRODUCT%,,,"%RUN_IN_CCDOS%"
HKLM,Software\Classes\batfile\shell\%PRODUCT%\command,,,"%10%\system32\cmd.exe /c %01%\%PROGRAM% /x ""%%1"" %*"

[Eof]
