zoukankan      html  css  js  c++  java
  • 为MSRS机器服务打包

    今天主要学习了怎样为写好的机器人服务打包,利用VS2005写好的服务,编译时会编译到MSRS安装目录的bin下,但是用VS2005没法为这些服务打包,它只是生产了dll文件。

    怎么为这些散落在bin下的服务打包呢?当然要用到dssdeploy.exe这个工具。

    语法如下:

    dssdeploy /p /m:"samples\config\ServiceTutorial1.manifest.xml" ServiceTutorial1.exe

    其中需要指定一个manifese.xml文件,因为每一个服务都有一个manifest.xml,当然不能为每个服务都各自打个包了,要把这些服务打成一个包的话,就需要一个新的manifest.xml,新的manifest.xml文件将所有的服务都组合到一起,这样的话就需要用到DSS Manifest Editor 2008 Express这个工具了。

    打开这个工具 :

    从左侧把要打包的服务拖到中间的Manifest区,设置好Partner关系,如上图所示,AppDrive的Partner是AppRobotBase,只需按住AppRobotBase拖放到AppRobotService上即可。

    把所有的服务拖放并设置好Partner关系后,选择:Deploy=>Create Deployment Package,或者按快捷键:Ctrl+shift+B。

    选择安装包的存放位置,提示打包成功后,这样多个服务就打成一个包了,很简单。

    另外,如果希望安装包可以检测目标机器上是否安装了msrs,可以利用一个cv命令行开关,如下:

    dssdeploy /p  /cv+ /s- /m:"samples\config\ServiceTutorial1.manifest.xml" ServiceTutorial1.exe

    如果想部署到.net cf上的话利用/cf开关即可,下面是所有命令参数:

    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.

  • 相关阅读:
    将C#文档注释生成.chm帮助文档
    Html5shiv
    C#创建COM组件
    WebBrowser控件使用详解
    iframe跨域
    VMware Workstation 虚拟机暂停后无法启动 出现Exception 0xc0000006 (disk error while paging) has occurred.错误
    Java Timer 定时器的使用
    adf笔记
    JS编码解码
    【Python】Django CSRF问题
  • 原文地址:https://www.cnblogs.com/hongyin163/p/1543196.html
Copyright © 2011-2022 走看看