life.inf 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ; wxWidgets Life Sample AppInstall INF
  3. ; This sample INF file is used as the input file for "Cabwiz.exe".
  4. ; Along with sample binary files, it will create multiple (2) CAB files,
  5. ; for the following types of devices:
  6. ; - Pocket PC 2003 ARM CPU
  7. ; - Pocket PC 2003 X86 CPU (for use in the Pocket PC 2003 emulator)
  8. ;
  9. ; These variables can be used:
  10. ; %CE1% \Program Files
  11. ; %CE2% \Windows
  12. ; %CE3% \Windows Desktop
  13. ; %CE4% \Windows\StartUp
  14. ; %CE5% \My Documents
  15. ; %CE6% \Program Files\Accessories
  16. ; %CE7% \Program Files\Communication
  17. ; %CE8% \Program Files\Games
  18. ; %CE9% \Program Files\Pocket Outlook
  19. ; %CE10% \Program Files\Office
  20. ; %CE11% \Windows\Programs
  21. ; %CE12% \Windows\Accessories
  22. ; %CE13% \Windows\Communications
  23. ; %CE14% \Windows\Programs\Games
  24. ; %CE15% \Windows\Fonts
  25. ; %CE16% \Windows\Recent
  26. ; %CE17% \Windows\Favorites
  27. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  28. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  29. ; Required "Version" section.
  30. ; Contains INF version information
  31. [Version]
  32. Signature = "$Windows NT$" ; Should be $Windows NT$ or $Windows 98$ or other OS name
  33. Provider = "wxWidgets" ; full app name will be "<Provider> <AppName>"
  34. CESignature = "$Windows CE$" ; Must be $Windows CE$
  35. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  36. ; Required "CEStrings" section
  37. ; Specific strings used by Windows CE AppInstall
  38. [CEStrings]
  39. AppName = "Life" ; full app name will be "<Provider> <AppName>"
  40. InstallDir = %CE8%\%AppName% ; "\Program Files\Games\Life" (default install directory, which can be changed by end user.)
  41. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  42. ; Optional "Strings" section
  43. ; Contains string substitutions replacing the key string (enclosed with percent symbols) with the value string
  44. ; For this example, it will store language-dependent strings
  45. [Strings]
  46. LinkFilename = "Life"
  47. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  48. ; Required "CEDevice" section
  49. ; Specifies the various types of CAB files that will be generated
  50. [CEDevice]
  51. ;UnsupportedPlatforms = "HPC","Jupiter","Palm PC2"
  52. ;VersionMin = 3.0
  53. ;VersionMax = 5.0
  54. ; The following string is required to stop a warning about legacy apps.
  55. ; You could also set VersionMin to 4.21 for PC2003, but it won't run on
  56. ; PC2002 devices.
  57. ; Possible BuildMax values:
  58. ; 0xA0000000 Application supports square screens (240x240 pixels).
  59. ; 0xC0000000 Application supports screen rotation.
  60. ; 0xE0000000 Application supports square screens and screen rotation.
  61. BuildMax = 0xE0000000
  62. [CEDevice.PPC2003_ARM]
  63. ProcessorType = 2577 ; ARM CPU
  64. ;[CEDevice.PPC2003_x86]
  65. ;ProcessorType = 686 ; x86 CPU for emulator
  66. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  67. ; Required "SourceDisksNames" section
  68. ; Specifies the source directories of the binary files
  69. ; Format:
  70. ; <source ID> = ,<label>,,<source directory>
  71. ; <source ID> will be used to specify the source files belonging to this directory
  72. ; <label> is unused
  73. ; <source directory> is the relative or absolute directory of the source files
  74. [SourceDisksNames] ; CPU-independent files
  75. 1 = ,"Common Files",,Common ; files are in the relative path "common"
  76. [SourceDisksNames.PPC2003_ARM] ; ARM-specific files for Pocket PC 2003
  77. 2 = ,"PPC ARM Files",,ARM_bins ; files are in the relative path "ARM_bins"
  78. ;[SourceDisksNames.PPC2003_x86]
  79. ;2 = ,"PPC x86 Files",,x86emu_bins ; files are in the relative path "x86emu_bins"
  80. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  81. ; Required "SourceDisksFiles" section
  82. ; Specifies the source filenames that will be packaged in the CAB files
  83. ; Format:
  84. ; <filename> = <source ID>
  85. ; <filename> is the source filename (enclose in doublequotes for long filenames)
  86. ; <source ID> is the ID used in [SourceDisksNames] to specify the source directory
  87. [SourceDisksFiles]
  88. ; CPU-independent files
  89. "life.htp" = 1 ; the main help file (a dummy in this case)
  90. ; "life.bin" = 1 ; binary resources file (if provided: this is purely an example)
  91. "breeder.lif" = 1 ; example data file
  92. ; CPU-specific files
  93. "life.exe" = 2 ; main executable
  94. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  95. ; Required "DefaultInstall" section
  96. ; Specifies the INF sections for file copying, registry settings and creating shortcuts
  97. ; INF sections that are not listed here will not be used
  98. [DefaultInstall]
  99. CopyFiles = Files.Windows,Files.InstallDir,Files.DocumentsDir ; Required INF sections that lists the files to be copied
  100. AddReg = Reg.Version1 ; Required INF sections that lists the registry entries to be created
  101. CEShortcuts = Links ; Optional INF sections that lists the shortcuts to be created
  102. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  103. ; Required "DestinationDirs" section
  104. ; Specifies the directories to use for the file copy lists
  105. ; Format:
  106. ; <section name> = 0,<dest directory>
  107. ; <section name> is the section name used in "[DefaultInstall] CopyFiles"
  108. ; <dest directory> is the destination directory, using an absolute device path, the directory macros, or the install directory %InstallDir%
  109. [DestinationDirs]
  110. Files.Windows = 0,%CE2% ; "\Windows" directory
  111. Files.InstallDir = 0,%InstallDir% ; "\Program Files\Games\Life" directory (%CE8%\%AppName%)
  112. DefaultDestDir = 0,%InstallDir% ; "\Program Files\Games\Life" directory (%CE8%\%AppName%)
  113. Files.DocumentsDir = 0,%CE5%\Life ; "\My Documents\Life" directory
  114. ; Files to go into the My Documents folder
  115. [Files.DocumentsDir]
  116. "breeder.lif"
  117. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  118. ; Required sections specified in "[DefaultInstall] CopyFiles" key
  119. ; Specifies the files to copy
  120. ; Format:
  121. ; <dest filename>,<source filename>,,<copy flags>
  122. ; <dest filename> is the destination filename (or the source filename if <source filename> is empty)
  123. ; <source filename> is the source filename
  124. ; <copy flags> is the copy flags to use
  125. [Files.Windows]
  126. "life.htp"
  127. [Files.InstallDir]
  128. "life.exe"
  129. ; "life.bin"
  130. "readme.txt"
  131. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  132. ; Required sections specified in "[DefaultInstall] AddReg" key
  133. ; Specifies the registry entries to create
  134. ; Format:
  135. ; <reg root>,<reg key>,<reg val>,<reg flags>,<reg data>[,<reg data>]
  136. ; <reg root> is HKCR, HKLM or HKCU
  137. ; <reg key> is the registry key name
  138. ; <reg val> is the registry value name, which is set to "default" if empty
  139. ; <reg flags> is the registry type/flags to use
  140. ; <reg data> is the numeric/string registry data, which depends on the <reg flags> used
  141. [Reg.Version1]
  142. ; Set a sample application version number, using the TYPE_DWORD registry type
  143. HKLM,Software\Microsoft\%AppName%,MajorVersion,0x00010001,1
  144. HKLM,Software\Microsoft\%AppName%,MinorVersion,0x00010001,0
  145. ; Set a sample default player name, using the TYPE_SZ registry type. Also, do not replace if already exists.
  146. ; HKCU,Software\Microsoft\%AppName%,"DefaultPlayer",0x00000002,%PlayerName%
  147. ; Set a sample high score list (4 string multi-string), using the TYPE_MULTI_SZ registry type. Also, do not replace if already exists.
  148. ; HKCU,Software\Microsoft\%AppName%,"HighScores",0x00010002,%HighScorer1%,"200",%HighScorer2%,"100"
  149. ; Set a sample binary stream (8-bytes), using the BINARY registry type
  150. ; HKLM,Software\Microsoft\%AppName%,"ProductID",0x00000001,2,F,B,3,0,A,6,D
  151. ; Associate .LIF files with the "Life.exe" executable
  152. ; HKCR,.LIF,,0x00000000,LifeFile
  153. ; HKCR,LifeFile\Shell\Open\Command,,0x00000000,"""%InstallDir%\Life.exe""" %%1
  154. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  155. ; Sections specified in "[DefaultInstall] CEShortcuts" key
  156. ; Specifies the shortcuts to create
  157. ; Format:
  158. ; <shortcut filename>,<shortcut type>,<target file/path>[,<standard dest path>]
  159. ; <shortcut filename> is the filename of the shortcut
  160. ; <shortcut type> specifies if the shortcut is to a file or a folder
  161. ; <target file/path> is the target filename or pathname, which depends on the <shortcut type> flag used
  162. ; <standard dest path> is an optional destination directory macro (or %InstallDir%) to use
  163. [Links]
  164. %LinkFilename%,0,"life.exe",%CE14% ; shortcut to a file, created in the standard destination path %CE14%