Cameyo.exe command lines

<< Click to Display Table of Contents >>

Navigation:  Advanced topics >

Cameyo.exe command lines

-ChangeEngine: replace a virtual package's virtualization engine.

Replace a package's virtualization engine with a newer Cameyo engine without having to re-package it.

New Cameyo versions often bring improved virtualization. This command helps you take advantage of the new version without having to re-package the application.

Example: Cameyo.exe -ChangeEngine AppName.cameyo.exe "C:\Program Files\Cameyo\AppVirtDLL.dll"

Results in AppName.virtual.new.exe with the provided virtualization engine.

Tip: You can achieve the same result by dragging & dropping the wanted AppVirtDll.dll over the Package Editor's window, while the package you want to update is being edited.

 

-GhostCapture: captures an installation in "Ghost" mode.

Captures an installation directly into the virtual sandbox, hence without truly installing anything on the host machine.

This mode is convenient for situations where you do not wish to install the software into the real machine. However, while it works for simple installations, more complex installations may fail.

Not supported on 64-bit machines.

Examples:

- Cameyo.exe -GhostCapture C:\SomeDir\Setup.msi

- Cameyo.exe -GhostCapture C:\SomeDir\Installer.exe

- Cameyo.exe -GhostCapture C:\SomeDir\Installer.exe Parameters

 

-SetProperties: sets / modifies virtual package properties

You can modify a virtual package's properties from the command line. The syntax is:

Cameyo.exe -SetProperties:Property1=Value1[,,Property2=Value2,,Property3=Value3] ExePath

The separator ",," allows specifying several properties, while authorizing single-comma to be specified within values.

Examples:

- Cameyo.exe -SetProperties:AppID=NewAppID C:\AppName.cameyo.exe

- Cameyo.exe "-SetProperties:AppID=New application ID,,Expiration=31/12/2012" "C:\Some dir\AppName.cameyo.exe"

 

-ExportProperties: saves a set of properties from a virtual package to a template XML file (licensed versions)

Exports package properties into an XML file.

Examples:

- Cameyo.exe -ExportProperties:C:\PropertiesTemplate.xml C:\AppName.cameyo.exe

- Cameyo.exe "-ExportProperties:C:\PropertiesTemplate.xml" "C:\Some dir\AppName.cameyo.exe"

 

-ImportProperties: applies a set of properties from a template XML file (licensed versions)

Imports a package properties template from an XML file. Typically you can create the template XML file by using the -ExportProperties command on a package which you've configured as you like (using the Package Editor or the SetProperties command) and then apply it to other packages.

Examples:

- Cameyo.exe -ImportProperties:C:\PropertiesTemplate.xml C:\AppName.cameyo.exe

- Cameyo.exe "-ImportProperties:C:\PropertiesTemplate.xml" "C:\Some dir\AppName.cameyo.exe"

 

-StartCapture: saves a pre-snapshot of the system

This parameter performs only the first half of the application packaging process. It creates a pre-snapshot, and saves it on disk.

When preceded by "-Quiet", runs in batch mode: no prompt and an exit code of 0 upon success.

Examples:

- Cameyo.exe -StartCapture

- Cameyo.exe -Quiet -StartCapture

 

-EndCapture: loads a previously saved snapshot, and produces a virtual application package

This parameter loads the snapshot previously saved by -StartCapture, and produces a virtual app package out of it.

When preceded by "-Quiet", runs in batch mode: no prompt and an exit code of 0 upon success.

When preceded by "-OutputExe:full_file_name.exe", it forces the output executable name.

Examples:

- Cameyo.exe -EndCapture

- Cameyo.exe -Quiet -OutputExe:C:\SomeDir\App.cameyo.exe -EndCapture

- Cameyo.exe -Quiet "-OutputExe:C:\Some dir with spaces\App.cameyo.exe" -EndCapture

 

Packager configuration file (advanced)

The Packager's configuration file is Packager.xml, with default location: %AppData%\VOS\Cameyo\PROG\%Program Files%\Cameyo. It includes the following configuration items:

OutputDir: path for saving the produced package.

Compression: compression algorithm to use. Possible values include: none, snappy (default, optimized for speed), bzip2 (optimized for size).

PathsToAvoid: file system paths to avoid during capture.

KeysToAvoid: registry keys to avoid during capture.

 

Automating the packaging process using StartCapture & EndCapture:

The functions StartCapture and EndCapture allow automating the packaging process. Suppose you want to automate two applications:

- Execute & wait: Cameyo.exe -Quiet -StartCapture

- Install application #1

- Execute & wait: Cameyo.exe -Quiet -OutputExe:C:\App1.cameyo.exe -EndCapture

- Execute & wait: Cameyo.exe -Quiet -StartCapture

- Install application #2

- Execute & wait: Cameyo.exe -Quiet -OutputExe:C:\App2.cameyo.exe -EndCapture