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