Http://msdn2.microsoft.com/en-us/library/ms889558.aspxWindows mobile version 5.0 SDK creating an. ini file for the Application Manager
Send feedback
The. ini file contains information that registers an application with the Application Manager. The. ini file uses the following format:
Copy code
[CEAppManager]Version = 1.0Component = component_name[component_name]Description = descriptive_name[Uninstall = uninstall_name][IconFile = icon_filename][IconIndex = icon_index][DeviceFile = device_filename]CabFiles = cab_filename [,cab_filename]
-
Component_name
-
String that identifies the name of the Section for the application.
-
Descriptive_name
-
String that will appear in
DescriptionField of the application manager when a user chooses the application. The full name of the application is found in the cab wizard. inf file, in the format"
Provider
Appname". The value
ProviderIs from [version] provider, while
AppnameIs from the [cestrings] appname.
If there is more than one cab file listed in the. ini file, the name is taken from the first cab file on the list.
-
Uninstall_name
-
String that identifies the application's windows
UninstallRegistry Key name. This name must match the application's registered windows
UninstallKey name, which is found in
HKLM \ Software \ Microsoft \ Windows
\ CurrentVersion \ UninstallRegistry Key. Providing this name enables the application manager to automatically remove the application from the desktop computer and the device when a user clicks
RemoveButton in the Application Manager UI.
-
Icon_filename
-
String that identifies the desktop icon file. This string is used to display
Device_filenameWhen the file name is viewed in ActiveSync.
-
Icon_index
-
Numeric index
Icon_filename. The value is used to display
Device_filenameWhen it is viewed in ActiveSync. If this key is nonexistent, the first icon in
Icon_filenameIs used.
-
Device_filename
-
File Name on the device that will display the icon specified
Icon_filenameAnd
Icon_indexWhen
Device_filenameIs viewed in ActiveSync.
-
Cab_filename
-
File Name of the available. CAB files, relative
Install_directory. Use commas to separate multiple
Cab_filenames. Do not include unnecessary spaces in this list of file names.
NoteIn a situation where. INI file lists multiple. CAB files, to ensure that the correct. cab is installed on the device, the list must follow a specific order. this list must begin with. cab file that is targeted at the widest range of platform types and versions, and end with. cab file for the most specific platform types and versions. the list must also use an order that begins with the newest version and ends with the earliest version. finally, if platform string and version information are specified, information about the OS version is ignored.
Example
In the following example of a versioning scenario, there are three cab files targeted toward the following platforms:
- Windows Mobile 5.0 for both smartphone and Pocket PC platforms
- All versions of Windows Mobile-based smartphone
- Windows Mobile-based Pocket PC 2003.
In the Application Manager. ini file, these. CAB files wocould be listed according to the platform that they are targeted toward. The following list shows the order that the. CAB files are listed in.
- All versions of Windows Mobile-based smartphone
- Windows Mobile 5.0 for both smartphone and Pocket PC
- Windows Mobile-based Pocket PC 2003
See also
Using the Application Manager | sample. ini file | delivering applications