C4 Data - Examples

Winzip 14: A basic c4p file, uses InstallerEnvironment

<?xml version="1.0" encoding="UTF-8" ?>
<c4p>
 <applications>
<!-- Winzip 14 -->
<app appid="com.codeweavers.c4.6678">
 <cxversion product="cxoffice">9.0</cxversion>
 <name>WinZip 14</name>
 <name lang="en">WinZip 14</name>
 <appprofile>
 <description>Classic compression program for Windows.</description>
 <description lang="en">Classic compression program for Windows.</description>
 <category>Compression</category>
 <flag>application</flag>
 <installedkeypattern>WinZip</installedkeypattern>
 <installeddisplaypattern>WinZip</installeddisplaypattern>
 <bottletemplate>win2000</bottletemplate>
 <downloadurl>http://download2.winzip.com/winzip140.exe</downloadurl>
 <downloadpageurl>http://www.winzip.com</downloadpageurl>
 </appprofile>
 <installprofile>
 <installnotes>It is recommended to uncheck "Include Quick Pick in taskbar tray"</installnotes>
 <installerenvironment>
 <name>WINE_WAIT_CHILD_PIPE_IGNORE</name>
 <value>WZQKPICK.EXE</value>
 </installerenvironment>
 <alteassoc>.zip//open</alteassoc>
 <alteassoc>.zip//new</alteassoc>
 </installprofile>
 </app>
 </applications>
</c4p>

Notepad++: Demonstrates using InstalledRegistryGlob

<?xml version="1.0"?>
<c4p>
 <applications>
 <app appid="com.codeweavers.c4.2874">
 <cxversion product="cxoffice">9.0</cxversion>
 <name>Notepad++</name>
 <name lang="en">Notepad++</name>
 <appprofile>
 <description>Open Source editor for Windows that includes templates for several programming languages.</description>
 <description lang="en">Open Source editor for Windows that includes templates for several programming languages.</description>
 <medal platform="Mac">untested</medal>
 <medal platform="Linux">untested</medal>
 <category>Productivity/Text Editors</category>
 <flag>application</flag>
 <installedkeypattern>Notepad\+\+</installedkeypattern>
 <installeddisplaypattern>Notepad\+\+</installeddisplaypattern>
 <installedregistryglob>
 <key>HKEY_LOCAL_MACHINE/Software/Classes/CLSID/{00F3C2EC-A6EE-11DE-A03A-EF8F55D89593}</key>
 <value>@</value>
 <data>Notepad\+\+</data>
 </installedregistryglob>
 <bottletemplate>winxp</bottletemplate>
 <bottletemplate>win98</bottletemplate>
 <bottletemplate>win2000</bottletemplate>
 <bottletemplate>winvista</bottletemplate>
 <downloadurl>http://voxel.dl.sourceforge.net/project/notepad-plus/notepad%2B%2B%20releases%20binary/npp%205.6.6%20bin/npp.5.6.6.Installer.exe</downloadurl>
 <downloadpageurl>http://notepad-plus.sourceforge.net/uk/site.htm</downloadpageurl>
 </appprofile>
 </app>
 </applications>
</c4p>

A collection of uncommon settings for CrossTies

Many of these match useful Wine registry keys so checking there for what you're trying to do could also help.

Enable DXVK on a bottle

  1. Install Profile
  2.  Pre-Installation Profile tab
  3. Pre-Dependencies:
  • DXVK (Builtin)

Detect when an installer has completed (gets rid of 'Installation Failed' error in Install Software window)

  1. Install Profile
  2. Installation Profile tab
  3. Advanced Installation Profile Options:
  4. Advanced Installation Environment:
  5. Installer Environment
    • Name: WINE_WAIT_CHILD_PIPE_IGNORE
    • Value: (Program Name).exe

Set Crossover Mac bottle to use X11

  1. Install Profile
  2. Pre-Installation Profile
  3. Pre-Dependencies
    • Add the "Mac X11 Driver"

Enable Virtual Desktop and set size

  1. Install Profile
  2. Installation Profile tab
  3. Advanced Installation Profile Options:
  4. Advanced Installation Steps:
  5. Pre-Install Registry:
    • Key: HKEY_CURRENT_USER\Software\Wine\Explorer\Desktops
    • Name: Default
    • Data: 1024x768
    • Key: HKEY_CURRENT_USER\Software\Wine\Explorer
    • Name: Desktop
    • Data: Default

Disable Client Side Graphics

  1. Install Profile
  2. Installation Profile tab
  3. Advanced Installation Profile Options:
  4. Advanced Installation Steps:
  5. Pre-Install Registry:
    • Name: HKEY_CURRENT_USER\Software\Wine\X11 Driver
    • Key: ClientSideGraphics
    • Data: N

Add/Modify a DLL

  1. Install Profile
  2. Installation Profile tab
  3. Advanced Installation Profile Options:
  4. Advanced Installation Steps:
  5. Pre-Install Registry:
    • Key: HKEY_CURRENT_USER\Software\Wine\DllOverrides
    • Name: (i.e. msvcr120, msvcp110)
    • Data: native, builtin (native, builtin, disable)

Manually create app shortcut icons

  1. Install Profile
  2. Installation Profile tab
  3. Advanced Installation Profile Options:
  4. Advanced Installation Steps:
  5. Lnk Files:
    • Shortcut: %StartMenu%/Mah Jongg
    • Target: %SystemDrive%/Maj/StartMaj.exe
    • Workdir: %SystemDrive%/Maj/

Require a Linux library (cxdiag)

  1. Install Profile
  2. Pre-Installation Profile tab
  3. Advanced Pre-Installation Options:
  4. CX Diag Check:
    • AppRequire:MissingLibCups
    • AppRequire:MissingLibLcms

Only apply patch if program exists in bottle

  1. Application Profile
  2. Advanced Bottle Selection Options:
  3. Extra For:
    • AppID of program that's required to be present for patch
  4. Install Profile
  5. Pre-Installation Profile tab
  6. Pre-Dependencies:
    • Name of program that's required to be present for patch

Generic Key Pattern for any Steam game

  1. Application Profile
  2. Installed Patterns:
  3. Installed Key Pattern
    • Steam App SteamID

Copy a folder into a bottle

  1. Install Profile
  2. Installation Profile
  3. Advanced Installation Profile Options:
  4. Advanced Installation Steps:
  5. Files to Copy:
    • Glob: *
    • Dst: %ProgramFiles%

Next Step: C4 Data Types

Last modified on 2023-11-15 20:39:50 UTC by Andrew Balfour