You can manage extensions from the command line, using certain syntax, commands, and attributes.
In CS4 and later, you can use the command line to perform various operations you would normally perform in the Extension Manager workspace.
Extension Manager command-line basics
-
-install
Install an extension. Required attribute: mxp or zxp. Optional attributes: suppresseula (CS5.5 and later), forallusers (CS6 and later), and timeout (CS5 and later).
-remove
Remove an extension. Required attributes: product, extension. Optional attribute (CS5 and later): timeout.
-enable
Enable an extension. Required attributes: product, extension. Optional attribute (CS5 and later): timeout.
-disable
Disable an extension. Required attributes: product, extension. Optional attribute (CS5 and later): timeout.
-from
(CS5 and later) Specifies the command originator when the command line parameter is passed through BridgeTalk. After executing the command, Extension Manager sends the result back to the specified originator. Required attributes: product or pcdentry.
-EMBT
Used only when the command line parameter is passed through BridgeTalk. "-EMBT" should appear before all other commands. Attributes: None.
-suppress
Suppress the Extension Manager user interface. Must precede all the other commands except -EMBT. Attributes: None.
product
Specifies the product that uses the extension. The value should be the same as the product name displayed in the left panel of Extension Manager window.
suppresseula
(CS5.5 and later) Specifies whether to suppress the EULA dialog box when installing the extension. The valid values are “y” (suppress) or “n” (do not suppress). The default value is “n”.
forallusers
(CS6 and later) Specifies that the extension should be installed for all users if the value is "y" and the extension is a per-user extension. A per-user extension is a kind of extension whose files are copied to user-specific folders during installation. The default value is "n".
Package an extension from the command line
- Navigate to the Extension Manager application folder.
- (Windows) Enter the following command, specifying your own attribute values:
- (CS4): "Adobe Extension Manager CS4.exe" -package mxi="c:\myfile.mxi" mxp="c:\myfile.mxp"
- (CS5 and CS5.5, MXP format): "XManCommand.exe" -package mxi="c:\myfile.mxi" mxp="c:\myfile.mxp"
- (CS5 and later, ZXP format): "XManCommand.exe" -package mxi="c:\myfile.mxi" zxp="c:\myfile.zxp"
- (Macintosh) Enter the following command, specifying your own attribute values:
- (CS4/CS5/CS5.5, MXP format): "./Adobe Extension Manager CSx" -package mxi="/myfolder/mysubfolder/myfile.mxi" mxp="/myfolder/mysubfolder/myfile.mxp"
- (CS5 and later, ZXP format): "./Adobe Extension Manager CSx" -package mxi="/myfolder/mysubfolder/myfile.mxi" zxp="/myfolder/mysubfolder/myfile.zxp"
- (CS4/CS5/CS5.5, MXP format): "./Adobe Extension Manager CSx" -package mxi="/myfolder/mysubfolder/myfile.mxi" mxp="/myfolder/mysubfolder/myfile.mxp"
- Install and test the extension to make sure that everything works as intended.
Install an extension from the command line
- Navigate to the Extension Manager application folder.
- (Windows) Enter the following command, specifying your own attribute value:
- (CS4): "Adobe Extension Manager CS4.exe" -install mxp="c:\myfile.mxp"
- (CS5 and later, MXP format): "XManCommand.exe" -install mxp="c:\myfile.mxp"
- (CS5 and later, ZXP format): "XManCommand.exe" -install zxp="c:\myfile.zxp"
- (Macintosh) Enter the following command, specifying your own attribute value:
- (MXP format): "./Adobe Extension Manager CSx" -install mxp="/myfolder/mysubfolder/myfile.mxp"
- (ZXP format): "./Adobe Extension Manager CSx" -install zxp="/myfolder/mysubfolder/myfile.zxp"
- To suppress the Extension Manager user interface, add the suppress command before the install command, as follows:
... -suppress -install zxp="c:\myfile.zxp" - To specify a locale, add the locale command and specify the lang attribute before the install command, as follows:
... -locale lang="en_US" -install zxp="c:\myfile.zxp" - Test the extension to make sure that everything works as intended.
Remove an extension from the command line
Enable an extension from the command line
Disable an extension from the command line
Locate the point product in the Extension Manager workspace
Convert an MXP extension to a ZXP extension from the command line (CS6 and later)
- Navigate to the Extension Manager application folder.
- Enter the following command, specifying your own attribute values:
- Windows: XManCommand.exe -convert mxp="c:\myOldExtension.mxp" zxp=”c:\myNewExtension.zxp"
- Mac OS: "./AdobeExtension Manager CS6" -convert mxp="/myfolder/mysubfolder/myOldExtension.mxp" zxp="/myfolder/mysubfolder/myNewExtension.zxp"
Use the mxp attribute to specify the MXP extension to convert. Use the zxp attribute to specify the path and name of the new ZXP extension.
Activate an extension set from the command line (CS6 and later)
- Navigate to the Extension Manager application folder.
- Enter the following command, specifying your own attribute value:
- Windows: XManCommand.exe -activate product="Dreamweaver CS6" set="Adobe Extensions"
- Mac OS: "./Adobe Extension Manager CS6" -activate product="Dreamweaver CS6" set="Adobe Extensions"
Use the product attribute to specify the product to activate the extension set. Use the set attribute to specify the name of the extension set to activate.
Import a set configuration from the command line (CS6 and later)
- Navigate to the Extension Manager application folder.
- Enter the following command, specifying your own attribute value:
- Windows: XManCommand.exe -import setcfg="c:\SetConfig.xml"
- Mac OS: "./Adobe Extension Manager CS6" -import setcfg="/myfolder/mysubfolder/SetConfig.xml"
Use the setcfg attribute to specify the path and name of the set configuration file to import.
Execute commands through BridgeTalk
Extension Manager can execute commands passed through BridgeTalk. All commands sent through BridgeTalk must begin with "-EMBT" parameter. To send commands to the Extension Manager, specify the target BridgeTalk Identifier as "exman-6.0".
Run the example script below in ExtendScript Toolkit CS6 to send a package command to Extension Manager through BridgeTalk.
Windows: var bt = new BridgeTalk(); bt.target = "exman-6.0" ; bt.body = '-EMBT -package mxi="C:\\test.mxi" zxp="C:\\test.zxp"' ; bt.send(); |
Mac OS: var bt = new BridgeTalk(); bt.target = "exman-6.0" ; bt.body = '-EMBT -package mxi="/Volumes/x1/test.mxi" zxp="/Volumes/x1/test.zxp"' ; bt.send(); |
Return codes after executing commands
Extension Manager provides return codes after executing commands when one of the following two parameters is included in the command:
- "-suppress" (the Extension Manager user interface is not displayed when the command is executed)
- "-from"
After executing the command, Extension Manager returns one of the following return codes:
0 - Command succeeded
1 - Install extension failed
2 - Remove extension failed
3 - Enable extension failed
4 - Disable extension failed
5 - Package extension failed
6 - Activate extension set failed
7 - There is already an instance of Extension Manager
8 - Import set configuration failed
101 - Incorrect CLI format
102 - The specified product does not exist
103 - The specified extension does not exist
104 - The specified extension is already enabled
105 - The specified extension is already disabled
106 - The specified extension set does not exist
107 - The specified set configuration file does not exist
108 - The specified set configuration file is invalid
109 - The specified extension cannot be enabled or disabled when the active extension set is a pre-defined extension set
Note: If the command execution requires administrative privileges and the current permission is insufficient, Extension Manager CS5.5 and later asks for administrator credentials when the user interface is not suppressed. When the user interface is suppressed (when the "-suppress" parameter is specified), the execution fails. In this case, open the command prompt as administrator (Windows) or use the sudo command in the Terminal window (Macintosh).
Logige oma kontole sisse