DefaultInstall (Compact 2013)
3/26/2014
The [DefaultInstall] section is required and describes the default installation of your application.
Note
If you want to use the .inf file to target multiple processors or platforms that you specify, append a unique label that indicates the platform to the section name to distinguish the sections. For more information, see CEDevice.
Syntax
[DefaultInstall]
CopyFiles=copyfile_list_section[,copyfile_list_section]
AddReg=add_registry_section[,add_registry_section]
[CEShortcuts=shortcut_list_section[,shortcut_list_section]]
[CESetupDLL=setup_DLL]
[CESelfRegister=self_reg_DLL_filename[,self_reg_DLL_filename]
Parameters
copyfile_list_section
String which identifies the default files to copy to the target device.For more information about the syntax to use, see CopyFiles.
add_registry_section
String which identifies the keys and values that the .cab file adds to the target device registry.For more information about the syntax to use, see AddReg.
shortcut_list_section
String that identifies one more sections which define shortcuts to a file.For more information about the syntax to use, see CEShortcuts.
- setup_DLL
Optional string specifying a Setup.dll file, which must be specified in the [SourceDisksFiles] section. This file must contain customized functions for operations during installation and removal of the application.
self_reg_DLL_filename
String which identifies files that self-register on the target device at installation time. You must also specify these files in the [SourceDisksFiles] section.At installation time on the device, the installer automatically loads the DLL and calls the DllRegisterServer Component Object Model (COM) function. If this function call fails, then the installation fails.
At uninstall time, the uninstaller automatically calls the DllUnregisterServer COM function.
Remarks
Do not use unsupported characters in your file path, such as /, *, ?, <, >, and |. The CAB Wizard will replace these characters with spaces, which may cause the configuration service provider (CSP) to terminate with errors. If you are using environment variables in your path, make sure that their value strings do not contain these characters.
The following code example uses this format:
[DefaultInstall]
CopyFiles = CopyToInstallDir,CopyToWindows
AddReg = RegSettings
CEShortcuts = Shortcuts
CESetupDLL = SetupDLLFileName.dll
CESelfRegister = SelfRegDLLFileName.dll
See Also
Reference
Information (.inf) File Overview
CAB Wizard
CopyFiles
AddReg
CEShortcuts