C4 Data Types

A True or False value.

This is a string.
All profiles generated by CodeWeavers or from the compatibility center will be of the form 'com.codeweavers.c4.xxx'.

expandable string
We perform Windows-style environment variable substitutions in these strings. This is used so profiles don't have to hard-code things like 'c:', 'Program Files', etc. To this end the installer core access to the standard environment variables, which include the ones listed below (values are indicative only):

  • %AllUsersProfile% = c:\users\Public
  • %AppData% = c:\users\crossover\Application Data
  • %ComSpec% = c:\windows\system32\cmd.exe
  • %LocalAppData% = c:\users\crossover\Local Settings\Application Data
  • %ProgramFiles% = c:\Program Files
  • %SystemDrive% = c:
  • %SystemRoot% = c:\windows
  • %Temp% = c:\windows\temp
  • %UserProfile% = c:\users\crossover
  • %WinDir% = c:\windows
  • %WinSysDir% = c:\windows\system32

In addition to the standard Windows environment variables, the installer defines (values are indicative only):
  • %Desktop% = c:\users\crossover\Desktop
  • %StartMenu% = c:\users\crossover\Start Menu
  • %Programs% = Programs
  • %Accessories% = Programs\Accessories

limited HTML string
This type is used for most text where we want to allow some control on the formatting so that specific parts of it can be emphasized with bold or colors. This should also allow links.

The exact HTML subset we support will be determined by the GUI widget capabilities.

localizable string
In the current CrossOver Setup a number of strings are automatically localized, the application names for instance. This is needed because applications may have a different name depending on the language, Windows Media Player for instance, and users may not recognize their foreign name.

  • ISVs that put up a c4p file on their web site will want to be able to provide translations for these strings right in that profile file. With XML this can be done by allowing multiple instances of the corresponding tag and giving it a 'lang' attribute. So we would have things like:
<name>Windows Media Player</name> <name lang="fr">Lecteur Windows Media</name>

regular expression
A fairly general perl-style regular expression.

restricted file glob
In many places we need to check for the presence of files or work on a set of files. We do so by using file globs using the standard shell syntax.

The glob can also be an expandable string.

restricted file path
This is a relative file path. This is used to identify a destination directory for a file copy for instance.
Last modified on 2010-02-09 10:18:57 by Aric Stewart
Are you sure you want to delete this page?
Note: Any nested pages that are under this one will be moved up one level. Any attachments tied to this page will be deleted.
Move / Rename Page
Unknown Error, unable to move!
That page exists already!
One or more of the parent pages specified in new path do not exist!
/support/wiki/ /support/wiki/c4p_DataTypes
CodeWeavers or its third-party tools process personal data (e.g. browsing data or IP addresses) and use cookies or other identifiers, which are necessary for its functioning and required to achieve the purposes illustrated in our Privacy Policy. You accept the use of cookies or other identifiers by clicking the Acknowledge button.
Please Wait...