The DSS Deploy tool creates and unpacks archive files containing all Microsoft Robotics Developer Studio (RDS) components needed for deploying service implementations across nodes. The archives are self-extracting executable files that either can be unpacked using the DssDeploy utility or by executing them directly.
dssdeploy.exe [options] [archive]
Parameters
| Argument | Description |
|
archive |
File name for archive. |
| Option | Short Name | Description |
|
/ArchiveCompany:<string> |
/ac |
Archive company, visible in file details, defaults to "Microsoft" |
|
/ArchiveCopyright:<string> |
/acp |
Archive copyright, visible in file details, defaults to "Copyright (c) Microsoft 2006" |
|
/ArchiveTitle:<string> |
/at |
Archive title, visible in file details, defaults to "DssDeploy Self Extractor" |
|
/ArchiveVersion:<string> |
/av |
Archive version, visible in file details, defaults to "1.0.0.0" |
|
/Assembly:{<uri>|<path>} |
/a |
Assemblies containing services to be added to archive. |
|
/Contract:{<uri>|<path>} |
/c |
Dss Contracts specifying services to be added to archive. |
|
/CreateForCF[+|-] |
/cf |
Build the package for the Compact Framework. |
|
/CurrentVersion[+|-] |
/cv |
Only deploy to an existing Microsoft Robotics Developer Studio installation with the same version as this one. |
|
/DelaySign[+|-] |
/ds |
Delay-sign the generated assembly. |
|
/Dependencies:<string> |
/d |
Additional file references or folders with references, that should be explicitly included. Wildcards may be used. |
|
/DeployDisplayName:<string> |
/ddn |
Display name of Microsoft Robotics Developer Studio installation identified by DeployVersionGuid. |
|
/DeployVersionGuid:<string> |
/dvg |
Only deploy to an existing Microsoft Robotics Developer Studio installation with this installation GUID. |
|
/DescriptionFile:{<uri>|<path>} |
/df |
Filename of the package description text file. |
|
/KeyFile:{<uri>|<path>} |
/k |
Filename of the Strong Name Key to use to sign the generated assembly. |
|
/License:{<uri>|<path>} |
/l |
Filename of the license agreement to show before installation, this MUST be an RTF file. |
|
/Manifest:{<uri>|<path>} |
/m |
Dss Manifest files specifying services to be added to archive. |
|
/Name:<string> |
/n |
Archive display name. This is NOT the file name of the archive. |
|
/Pack[+|-] |
/p |
Generates archive in the form of self-extracting executable for deployment across nodes. |
|
/Readme:{<uri>|<path>} |
/r |
Filename of the readme file to show after installation, this SHOULD be an HTML file. |
|
/SetAcls[+|-] |
/s |
Set ACLs on the deployed files. |
|
/SubDirectories[+|-] |
/sub |
Search for additional dependencies in all matches and subdirectores thereof. |
|
/Target:{<uri>|<path>} |
/t |
Used in unpack operation. Target path for unpacking archive. Current directory used if not specified |
|
/Unpack[+|-] |
/u |
Extracts files from specified archive file to the target layout path specified using the /target command line argument. |
|
/Verbosity:{Off|Error|Warning|Info|Verbose} |
/v |
Verbosity level. |
|
@<file> | |
Name of a text file containing arguments. Multiple arguments per line are allowed. An unquoted hash (#) comments out the remainder of a line. An argument file is processed by removing comments, leading and trailing spaces and tabs, processing quotation marks and escape sequences, and then processing the arguments as if they were on the command line. |
Remarks
Examples
When run from a Microsoft Robotics Developer Studio Command Line the following example creates an archive called "ServiceTutorial1.exe" containing everything necessary to run ServiceTutorial1:
dssdeploy /p /m:"samples\config\ServiceTutorial1.manifest.xml" ServiceTutorial1.exe
This example creates an archive called "ServiceTutorial1-2.exe" containing everything necessary to run ServiceTutorial1 and ServiceTutorial2:
dssdeploy /p /m:"samples\Config\ServiceTutorial1.manifest.xml" /m:"samples\Config\ServiceTutorial2.manifest.xml" ServiceTutorials1-2.exe
This example builds on the previous example but includes an additional Cascading Style Sheet (CSS) file in the package:
dssdeploy /p /m:"samples\Config\ServiceTutorial1.manifest.xml" /m:"samples\Config\ServiceTutorial2.manifest.xml" /d:"documentation\introduction.htm" ServiceTutorial1-2-css.exe
DssDeploy can also unpack archives by using the /u command line argument. This example unpacks "ServiceTutorial1.exe" into "%TEMP%\ServiceTutorial1" so that the deployed node is ready to run:
dssdeploy /u /t:%TEMP%\ServiceTutorial1 ServiceTutorial1.exe
A simpler way to unpack is just to execute the DssDeploy package itself, e.g. ServiceTutorial1.exe, because it is a self-extracting package. When you are developing and testing a DssDeploy package, this can be useful because there is a drop-down list in the dialog when you run an unpack that allows you to see what files are included in the package. You can cancel the installation if you do not want to overwrite some of the files or if you made a mistake in the packaging, and then try again.
To start the unpacked node (this can be done from a standard comment prompt):
cd /d "%TEMP%\ServiceTutorial1"
bin\dsshost /p:50000 /m:"samples\config\servicetutorial1.manifest.xml"
If you have additional files that you wish to deploy to the target computer, you can specify them using the /d command line argument when you build the package. Note that they will be placed onto the target computer in the same location relative to the installation point as they are compared to the source computer's RDS installation point effectively preserving the directory structure.
If you only want to distribute source code, the the best approach is to create an options file containing a series of arguments like:
/d:"myprojects\code\myservice.cs"
/d:"myprojects\config\mymanifest.xml"