Deployment command-line options#
Cloudhouse Alchemy Compatibility Packages are deployed using the Cloudhouse.Container.Deployment.exe executable. The following table outlines which command-line options are supported:
Applies to: Alchemy
Note
Command-line options are case insensitive and can be prefixed with either two slashes (--) or a single backslash (/). For example, --deploydir and /deploydir are both valid and will achieve the same result.
AcceptEula(aliasa)- Accepts the End User Licensing Agreement (EULA). This agreement must be accepted in order to use Alchemy and the Compatibility Packages it creates. You can find the EULA in the root of each Compatibility Package in the
eula.htmlfile. DeployAlias-
Specifies an alias for the deployment. The deployment executable only supports the
Serveralias, which sets:RootHivetoHKEY_LOCAL_MACHINE.DeployTypetoMachine.WriteRegistryOnDeploytotrue.
Deploydir(aliasd)-
Specifies the deployment directory.
Note
This folder must already exist on the target computer, and if the path contains a space, this argument must be surrounded by quotes. For example:
/deploydir "C:\Program Files (x86)". DeployType(aliast)- Specifies the deployment type. Valid deployment types are either
"User"or"Machine". If a deployment type is not specified, the Compatibility Package is deployed to the Machine. Dryrun(aliasr)-
Used in combination with
updateto simulate the update without making any changes to the system.This saves any changes that will be made to the system in a report called
package-diff.jsonin the source packaging. This lets you verify the performance of any updates before fully deploying them. For more information, see Performing a Simulated Update (Dry Run). EventToken-
Expands the
%EventToken%variable for use in theEventscomponent. To provide authorisation to executables executed as part of the events. If not supplied,%EventToken%will expand to an empty string.For example:
Cloudhouse.Container.Deployment.exe --eventtoken my_tokenTip
This feature was introduced in Alchemy October 2024, V4.7.2410.3821 of Package Runtimes.
Force(aliasf)- Forces the deployment, even if it fails.
Help(aliash)- Displays help and this list of options.
Licensing(aliasl)- Used in combination with
updateto perform the update against the licensing component only. No other components are updated if this argument is used. This saves any changes that will be made to the system in a report calledpackage-diff.jsonin the source package and updates all run tokens in all the required run token stores. Noregister-
Stops the user context components from being written at deploy time. The user context components are File Associations (FileAssociations.xml) and Shortcuts (Shortcuts.xml).
Trueif the argument exists.Falseif the argument does not exist. Nouninstallentry-
Ensures an uninstall entry is not created in the Windows add/remove programs component during deployment.
For example:
Cloudhouse.Container.Deployment.exe --nouninstallentryTip
This feature was introduced in Alchemy October 2024, V4.7.2410.3821 of Package Runtimes.
Register- Writes the user context components of a Compatibility Package to the current users context. The user context components are File Associations (FileAssociations.xml) and Shortcuts (Shortcuts.xml).
RootHive(alias h)-
Specifies the hive where registry keys in
AppRegistry.xmlandComRegistry.xmlwill be written. This also specifies where the redirections inRedirections.xmlwill redirect to.Supported values are either
"User"for theHKEY_CURRENT_USERhive or"Machine"for theHKEY_LOCAL_MACHINEhive.If this argument is not specified, the default will be
"User". Shared(aliass)- A shared deployment.
TokenFileLocationDeprecated(aliask)- Specifies the name and path of the Usage Token for Usage Reporting. If the path contains a space, this argument must be surrounded by quotes. For example:
/tokenfilelocation "C:\Program Files (x86)\usage-testcontainer.token". Unregister- Unregisters the Compatibility Package by removing the user context components of a Package from the current user's context. The user context components are File Associations (FileAssociations.xml) and Shortcuts (Shortcuts.xml).
Uninstall(aliasu)- Uninstalls the Compatibility Package.
Update(aliasp)- Updates the Compatibility Package.
WriteRegistry(aliasw)- Writes the registry entries in
AppRegistry.xmlandComRegistryKeys.xmlat deployment time instead of at run time.