Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

125 lines
5.9 KiB

  1. ///////////////////////////////////////////////////////////////////////////////////////////////////////////
  2. // Setup script for Whistler Setup.
  3. //
  4. // Setup program assumes that setup program and script file has same file body name. That is, if setup
  5. // program is named "setup.exe", script file name must be "setup.inf", if setup program is named
  6. // "wissetup.exe", script file name must be "wissetup.inf", and so on.
  7. //
  8. // - We have some commands as used below. For detail usage about each command, please refer comment at
  9. // where each command is used.
  10. // - Some commands have call sequence restriction. Also these information is provided in below comments.
  11. // - We can use common environment variable in command argument for file path. Also, Following additional
  12. // environment variable are defined by setup program:
  13. // - SETUPSOURCE: refers to directory in where setup program resides.
  14. // - SETUPEXE: refers to file name (not full path) for setup program.
  15. // - SETUPINF: refers to file name (not full path) for setup inf file.
  16. // - SYSTEMDIR: refers to system directory.
  17. ///////////////////////////////////////////////////////////////////////////////////////////////////////////
  18. // Turn on error logging. Basically we have to remove all errors in script.
  19. // ErrorLogOn:
  20. ///////////////////////////////////////////////////////////////////////////////////////////////////////////
  21. // Initialize setup program. For example, setup current package version of this setup.
  22. SetupDefaultParameters:
  23. // SetVersion:6.1.0.2412
  24. ///////////////////////////////////////////////////////////////////////////////////////////////////////////
  25. // Add source file path to FileList.
  26. // Syntax:
  27. // FileList:<SourceFilePath>
  28. // Imkrinst.exe does nothing with FileList now.
  29. // Files to be installed into system directory.
  30. FileList:%SYSTEMDIR%\imekr61.IME
  31. // Files to be installed into Help directory.
  32. FileList:%WINDIR%\ime\imkr6_1\help\imkr61.chm
  33. FileList:%WINDIR%\ime\imkr6_1\help\imkren61.chm
  34. FileList:%WINDIR%\ime\imkr6_1\help\korpaden.chm
  35. FileList:%WINDIR%\ime\imkr6_1\help\impdko61.chm
  36. FileList:%WINDIR%\ime\imkr6_1\help\imkr61.hlp
  37. FileList:%WINDIR%\ime\imkr6_1\help\imkren61.hlp
  38. // Files to be installed into IMKR6_1 directory.
  39. FileList:%WINDIR%\ime\imkr6_1\imekrcic.dll
  40. // Files to be installed into Dicts directory.
  41. FileList:%WINDIR%\ime\imkr6_1\Dicts\hanja.lex
  42. FileList:%WINDIR%\ime\imkr6_1\Dicts\imekr.lex
  43. FileList:%WINDIR%\ime\imkr6_1\Dicts\hanja.dll
  44. // Files to be installed into Applets directory.
  45. FileList:%WINDIR%\ime\imkr6_1\Applets\imekrmbx.dll
  46. FileList:%WINDIR%\ime\imkr6_1\Applets\hwxkor.dll
  47. // Shared Files
  48. FileList:%WINDIR%\ime\Shared\imlang.dll
  49. FileList:%WINDIR%\ime\Shared\imepadsv.exe
  50. FileList:%WINDIR%\ime\Shared\imepadsm.dll
  51. FileList:%WINDIR%\ime\Shared\imepaden.hlp
  52. FileList:%WINDIR%\ime\Shared\Res\padrs412.dll
  53. // Per user setup - migrations
  54. FileList:%WINDIR%\ime\imkr6_1\imekrmig.exe
  55. ///////////////////////////////////////////////////////////////////////////////////////////////////////////
  56. // Terminate setup if newer version of product has already been installed.
  57. // If we use this command, we have to run <SetupDefaultParameters> and all <FileList> command before it.
  58. PreSetupCheck:
  59. ///////////////////////////////////////////////////////////////////////////////////////////////////////////
  60. // Some per system setup
  61. ///////////////////////////////////////////////////////////////////////////////////////////////////////////
  62. ///////////////////////////////////////////////////////////////////////////////////////////////////////////
  63. // Create dir
  64. //
  65. //CreateDirectory: %WINDIR%\IME
  66. //CreateDirectory: %WINDIR%\IME\IMKR6_1
  67. ///////////////////////////////////////////////////////////////////////////////////////////////////////////
  68. // Syntax: RegisterIMEandTIP: <Full path to IME file>, <Full path of TIP file>, <Wow64 TIP file>
  69. // Wow64 TIP registration: If run on 32bit, it'll be ignored
  70. RegisterIMEandTIP: %SYSTEMDIR%\imekr61.ime, %WINDIR%\ime\imkr6_1\imekrcic.dll, %WINDIR%\ime (x86)\imkr6_1\imekrcic.dll
  71. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  72. RegisterPackageVersion:
  73. ///////////////////////////////////////////////////////////////////////////////////////////////////////////
  74. // Adjust IMEPad applet order
  75. RegisterPadOrder:
  76. ///////////////////////////////////////////////////////////////////////////////////////////////////////////
  77. // Register help files to Help regs
  78. RegisterHelpDirs:
  79. ///////////////////////////////////////////////////////////////////////////////////////////////////////////
  80. // Register Interfaces
  81. RegisterInterface: %WINDIR%\ime\imkr6_1\Applets\imekrmbx.dll
  82. RegisterInterface: %WINDIR%\ime\imkr6_1\Dicts\hanjadic.dll
  83. RegisterInterface: %WINDIR%\ime\Shared\imlang.dll
  84. RegisterInterface: %WINDIR%\ime\Shared\imepadsv.exe
  85. RegisterInterface: %WINDIR%\ime\Shared\imepadsm.dll
  86. // Wow64: If run on 32bit, it'll be ignored
  87. // Currently imekrmbx.dll and hanjadic.dll are not copied for WOW64. It'll be ignored by imkrinst.exe
  88. RegisterInterfaceWow64: %WINDIR%\ime (x86)\imkr6_1\Applets\imekrmbx.dll
  89. RegisterInterfaceWow64: %WINDIR%\ime (x86)\imkr6_1\Dicts\hanjadic.dll
  90. RegisterInterfaceWow64: %WINDIR%\ime (x86)\Shared\imlang.dll
  91. RegisterInterfaceWow64: %WINDIR%\ime (x86)\Shared\imepadsv.exe
  92. RegisterInterfaceWow64: %WINDIR%\ime (x86)\Shared\imepadsm.dll
  93. ///////////////////////////////////////////////////////////////////////////////////////////////////////////
  94. // PrepareMigration
  95. // First, make SID List(make user list for user migration)
  96. // Second, Register IMEKRMIG.EXE to run reg Key on "Software\Microsoft\Windows\CurrentVersion\Run"
  97. PrepareMigration: IMEKRMIG6.1, %WINDIR%\ime\imkr6_1\IMEKRMIG.EXE
  98. // End of IMKRINST.INI (Do Not Remove last line)
  99. ///////////////////////////////////////////////////////////////////////////////////////////////////////////