• 2010年9月02日周四_Deploying to Mobile Devices_4.2


    /************************************************************************/

    //Developing mobile applications using the Mobile SDK

    //Deploying to Mobile Devices  (部署到移动设备)

    //201092

    /***********************************************************************/

    Smart device applications are deployed to devices via cab files which are created from deployment projects in Visual Studio.  Cab files are the windows equivalent of setup and msi files for devices. These can be delivered to the device through a number of means including ActiveSync, simple file transfer and device memory cards. This topic will provide an overview and information relevant to deploying smart device mobile applications. For more in depth information on device deployment you should read the MSDN topic Deploying .NET Compact Framework 2.0 Applications with .cab and .msi Files  .

    智能设备应用程序是通过CAB文件部署到设备的,CAB文件时有VS种的部署工程生成的。 CAB文件是window下与setupmsi安装文件相等的用于设备的安装文件。 通过多种方式可以将CAB文件传输到设备中,这些方法包括:ActiveSync,单文件传输和设备内存卡等方法 这个题目将提供和部署智能设备应用相关的概述和信息。更多关于设备部署的深入信息,你应该阅读MSDN中的题目:Deploying .NET Compact Framework 2.0 Applications with .cab and .msi Files

    Deploying Your ArcGIS Mobile Runtime and Application

    In 9.3, the deployment of ArcGIS Mobile has undergone(经历,遭受) significant changes. It is no longer necessary to deploy ArcGIS Mobile library to the same folder with every application. The managed assembly(托管程序集) will be installed in the Global Assembly Cache (GAC) and the native dll(s) will be put under specific folder within your installation directory. That means only one single copy of ArcGIS Mobile library will be deployed to the target platform. These files will be shared across all your custom-built mobile applications, as well as the ArcGIS Mobile Application provided.

    Note that ArcGIS Mobile Runtime requires Microsoft .NET compact framework to be deployed to the devices. For a full list of requirements, please refer to the SDK document for more information.

    部署你的ArcGIS  Mobile RUNTIME 和应用

    9.3版本中,ArcGIS Mobile 的部署经历了很大的改变。 不在需要不受ArcGIS Mobile 类库到每一个应用中的相同的文件夹。 托管程序集经会安装在全局集合缓存中(GAC),本地的DLL将会安装在你的安装文件目录中指定的文件夹。这就意味着一个单独的ArcGIS Mobile 类库的拷贝就可以部署到目标中。这些文件会在所有你自定义创建的移动程序以及ArcGIS移动应用提供之间分享。

    注意:ArcGIS Mobile Runtime 需要微软的.NET 框架部署到移动设备。 有关要求的全部列表,请参阅SDE文档获取更多的信息。

    Deploying ArcGIS Mobile Runtime

    Deploying ArcGIS Mobile Runtime in 9.3 has been made easier by the development of a CAB file. The CAB file contains all the necessary files that are required to run ArcGIS Mobile based applications. A Cab file is similar to a Zip file in that it contains a compressed version of files, but more than a zip file, since it includes for installation information. To deploy the Mobile Runtime using the CAB file, simply copy the CAB file into your device and then select it from the file explorer to launch the installation. Once the installation is completed, you are ready to deploy your own ArcGIS Mobile based application.

    部署ArcGIS Mobile yunTime

    部署ArcGIS Mobile Runtime  9.3 ,通过CAB文件的开发已经变得容易多了。 CAB文件包含运行基于ArcGIS Mobile的应用要求的所有所需要的文件。 CAB文件类似于一个ZIP文件,里面包含了压缩类型文件,但是又比一个ZIP文件多,因为它包含有安装信息。 为了部署Mobile Runtime ,使用CAB文件,简单的拷贝CAB文件到你的设备,然后从文件浏览器中选择他并安装它。一旦安装结束,你已经做好了部署基于ArcGIS Mobile 应用的准备了。

    Q. How do I get the ArcGIS Mobile Runtime CAB file?

    The ArcGIS Mobile Runtime CAB file is installed on your development computer when you install the Mobile Applications Development Framework feature of the ArcGIS Server .NET Edition setup.

    Q. Where is ArcGIS Mobile Runtime CAB file?

    You can find the ArcGIS Mobile Runtime CAB file under your \Program Files\ArcGIS\DotNet\WindowsCE\Install directory. The name of the CAB file is called AGMRuntime.CAB.

    Q. What does the CAB file contain?

    The CAB file contains managed assembly ESRI.ArcGIS.Mobile.dll and 3 native dll(s), i.e. ESRIMobileCore.dll, ESRIMobilePE.dll and ESRIMobileSdc.dll, and information on how to install them.

    Q. Where do the installed files go on the mobile deviceation locations?

    The installation of ArcGIS Mobile files can be found under \Windows and \Program Files

    Q:如何获取ArcGIS Mobile Runtiome CAB文件?

    ArcGIS Mobile Runtiome CAB文件在你安装Mobile应用程序开发框架的时候安装在你的开发计算机上面,这个开发框架是基于ArcGIS Server .NET的安装版本。

    QArcGIS Mobible  Runtime CAB文件的安装位置?

    CAB文件包含托管程序集ESRI.ArcGIS Mobile.DLL3Native DLL. ESRIMobileCore.dll, ESRIMobilePE.dll and ESRIMobileSdc.dll,和如何安装它们的信息。

    Q:安装文件去哪里移动deviceation位置?

    ARCGIS mobile 安装文件可以在\Windows and \Program Files 目录下找到。

    Windows Mobile 5 Application Security considerations

    All Windows Mobile 5 based devices including Pocket PC and SmartPhones implement security policies that determine whether an application is allowed to run and, if allowed, with what level of trust. Smart device applications built with the Mobile SDK that are to be deployed on Windows Mobile 5 devices require full trust, as they create and interact with a file based cache, and as such must include an appropriate security certificate.()书,执照 to be allowed to run.

    If you do not sign your application with a full trust or privileged certificate your application will either not run, on smartphones for example, or may pop up a dialog on some Pocket PC's asking the user to trust the application. Neither case is desirable of course for your users.

    It is your responsibility to obtain a full trust privileged certificate and sign your smart device project. If you are releasing an application to the general public you should consider participation参加,参与 in the Microsoft Mobile2Market program to certify证明, 保证, 证实, 颁发证书 your application. For more information on security, signing your projects and certification please read the MSDN topic Windows Mobile 5.0 Application Security  .

    所有基于Windows Mobile 5的设备包括Pocket PC 和智能设备使用了安全政策,决定了一个应用是否能够运行,如果允许运行,那么他是信任级别是?使用MOBILE SDK 创建的将要部署到Windows Moile 5 设备上的只能设备应用需要完全信任,它们创建和一个基于文件的缓存进行交互,在这种情况下必须包含合适的安全证书(执照)才能运行。

    如果你没有为你的应用签署完全信任或者有特权的证书,你的应用可能不能运行,比如在一个智能的设备,或者可能在一些Pocket PC上弹出一个对话框让用户信任该程序。 任何一种情对于用户来说都是不可取的。

    你的责任是获取一个完全信任的证书并签署你的只能设备工程。如果你正要发布一个应用为公共使用,你应该考虑参加Microsoft Mobile2Market 程序为你的应用颁发安全证书。 更过关于安全的信息、签署你的工程、证明,请阅读MSDN题目:Windows Mobile 5.0 Application Security

    Creating and deploying smart device cab files

    Creating a cab file for smart device projects is straightforward简单的. You should follow the steps for Creating Device .cab Files with Visual Studio as documented in the link in the opening paragraph(段落). In addition to the project output you will also need to add the native smart device mobile SDK library such as ESRIMobileCore.dll, ESRIMboilePE.dll and ESRIMobileSdc.dll to the deployment project. The native libraries are located under your install location, e.g. ..\Program Files\ArcGIS\DotNet\WindowsCE. you may add them from there.

    为一个智能设备创建一个CAB文件是一件简单的事情。你应该跟从首段的连接中的步骤在VS中创建设备的cab文件作为文文件。除了导出工程文件,你还需要添加本地智能设备Mobile SDK设备类库,比如:ESRIMobileCore.DLL, ESRIMboilePE.dll and ESRIMobileSdc.dll等来部署工程。 Native 类库被放置在你安装的位置\Program Files\ArcGIS\DotNet\WindowsCE. 你可能从这个地方添加他们

    Once the cab file is generated you simply have to transfer it to the device and run it to install the application. You can transfer the cab file a number of ways including file copy when the device is docked, or through ActiveSync by creating an associated msi file as documented in Creating a Desktop Computer Microsoft Installer Package in the same link or by providing the cab on a memory card.

    一旦生成了cab文件,你仅仅需要将CAB文件传输到设备,并运行它来安装程序。 你可以通过若干种方法传输CAB文件包括:当设备docked,拷贝文件、ActiveSync by creating an associated msi file as documented in Creating a Desktop Computer Microsoft Installer Package in the same link或者通过一个内存卡提供一个cab文件

    Included in the developer kit (开发工具包)contains a sample for deploying your own ArcGIS Mobile based application on Pocket PC platform. The Windows CE sample will build MSI installer that includes CAB file containing a sample application and ArcGIS Mobile runtime required to run ArcGIS Mobile based application on Pocket PC platform. The instructions on how to build and use the sample are included in the SDK.

    开发工具包含一个用于部署基于ArcGIS Mobile 的应用到Pocket PC平台下的开发工具包。 Windows CE例子将会建造MSI安装文件,她包括的CAB文件博阿含一个例子应用,并且PocketPC中的基于ArcGIS Mobile 应用要求运行ArcGIS Mobile Runtime。如何创建和使用那些例子的说明包含在SDK中。

    Signed cab files

    The ArcGIS Mobile Cab file is signed so that devices can be assured of it coming from a trusted source. Note that if you are going to sign your CAB file that contains other CAB files, e.g. ArcGIS Mobile Runtime, all the CAB files will be signed using the same signature签名,署名,签字 because Windows allow only 1 signature on a file, the signing process uses the same code signing certificate(证书、证明) to sign the CAB and all files within the CAB. For more information about signing CAB files, please refer to Verisign(简介) Mobile-to-Market (M2M) signing procedure for adding M2M certificate to your CAB files.

    单独的CAB文件

    ArcGIS Mobile CAB文件 是一个单独的文件,因此设备可以假设他来自一个信任的资源。注意:如果你将要signCAB文件包含其他的CAB文件,比如:ArcGIS Mobile Runtime,所有的CAB文件将会被sign相同的签名,因为CAB文件仅仅允许一个文件有一个签名,signing过程使用相同的代码签名证书signCAB文件和所有CAB内部的文件。 更过关于CAB文件签名的信息,请参阅Mobile-to-Market (M2M) signing procedure for adding M2M certificate to your CAB files的简介。

     

     

    Device Security Configuration Manager

    Device Security Configuration Manager is a tool that allows you to examine and provision供应;预备; security configurations for your mobile device. The standard security configuration for your devices comes in one of the followings: Locked, One-Tier Mobile2Market Locked, One-Tier Prompt, Two-Tier Mobile2Market Locked, Two-Tier Prompt, and Security Off. Setting different security configuration will have different effects when you are installing ArcGIS Mobile Runtime CAB and your own application.

    设备安全配置管理器:

    设备安全配置管理器是一个工具,它允许你为你的移动设备检查检查和提供安全配置。你的设备的标准安全配置来自下面的其中一个:Locked, One-Tier Mobile2Market Locked, One-Tier Prompt, Two-Tier Mobile2Market Locked, Two-Tier Prompt, and Security Off 设备不同的安全配置文件,当你安装ArcGIS Runtime CAB和你自己的应用的时候会有不不同的影响。

    Locked – If your device is set to locked, you will not be able to install ArcGIS Mobile Runtime CAB or any other installers. Only the applications signed by the OEM will have permission to run.

    Locked:如果你的设备设置为locked,你将不能安装ArcGIS Mobie Runtime CAB或者任何其他的安装文件。只有被OEM签名的应用才被允许运行。

    One-Tier Mobile2Market Locked – ArcGIS Mobile Runtime CAB is signed with M2M certificate, thus you will be able to run the install without any problem. As for your own application, if the CAB is not signed, you will not be able to launch the install.

    One-Tier Mobile2Market Locked: ArcGIS Mobile运行签署M2M证书的CAB文件,因此,你能够安装而不会遇到任何问题,对于你自己的程序,如果CAB文件没有签名,你将不能运行你的安装文件。

    One-Tier Prompt – Same as One-Tier Mobile2Market Locked, you should be able to run ArcGIS Mobile Runtime CAB installer without any problem. As for your own application, if it is not signed, you will see unknown publisher prompt that you will be able to acknowledge for installing your application.

    One-Tier Prompt:一些作为One-Tier Mobile2Market Locked,你应该能够运行ArcGIS Mobile Runtime CAB安装文件而不会遇到任何问题。 对于你自己的应用,如果没有签名,你就会看到一个莫名的Publisher 提示你能够承认安装你的应用程序。

    Two-Tier Mobile2Market Locked – Same as One-Tier Prompt, you will be able to install ArcGIS Mobile Runtime without any problem. As for your applications if they are not signed, you will not be able to install them. Currently Two-Tier supports are only available in Windows Mobile 5 Smartphone Edition and Windows Mobile 6 Classic Edition.

    Two-Tier Mobile2Market Locked:你可能在安装ArcGIS Mobile Runtime的时候不会遇到任何的问题。而对于你自己的程序,如果他们没有签名,你将不能安装它们。当前,这里只有Two-Tier 支持在windows Mobile 5 智能收集平台和Windows Mobile 6 经典平台中是可以获取的。

    Two-Tier Prompt – you will be able to install ArcGIS Mobile Runtime. As for your own application that is not signed, same as One-Tier Prompt you will see unknown publisher prompt. Note that In Two-Tier, if the application is signed with a certificate in Privilege Certificate Store, it will run “Privileged”. If the application is signed with a certificate in Normal Certificate Store, it will run “Normal”. Currently Two-Tier supports are only available in Windows Mobile 5 Smartphone Edition and Windows Mobile 6 Classic Edition.

    Two-Tier Prompt 你能够安装ArcGIS Mobile Runtime。如果你自己的应用程序没有签名,一些类似于One-Tier提示,你将会看到不知名的publisher 提示。注意:在双层,如果应用程序签署了一个特殊证明存储区的证明,它将会运行“有特权的”。如果程序在一个正常的证明存储区获取了一个证明,它将会运行“Normal”,当前Two-Tier支持仅仅在windows Mobile 5 智能版本和windows 6 经典版本中才能获取。

    Security Off – Your devices will be able to run any installations when the security is set to off. This includes ArcGIS Mobile Runtime, your own CAB installer (signed or unsigned) or any other third party installers (signed or unsigned). However, setting Security Off on your device has risks when you are not aware of potential threats that could result from malware恶意软件 from unknown source.

    Security Off 当安全设置为off,你的设备可以运行任何的安装文件。 这包括ArcGIS Mobile Runtime,你自己的CAB安装文件(签名的或者没有签名的),尽管如此,当你设置security off ,当你没有意识到潜在的威胁的时候你的设备设备会有风险,这些风险会来自资源未知的恶意软件。

    For more information about Device Security Configuration Manager and different device security configuration settings, please refer to Microsoft Security Configuration Manager for Windows Mobile topics.

    The following contains a list of online resources for deployment and device security. The lists are provided here for your convenience when you are working on deploying your mobile applications.

    更多关于设备安全配置管理和不同设备安全配置设置的信息,请参考微软安全配置管理为windows Mobile 题目。

    下面包含了一个关于部署和设备安全的在线资源列表。 当你部署你的移动应用程序的时候,这里提供的列表将为你提供方便。

    MSDN overview of deployment

    Understanding Security for Windows Mobile-based devices

    Downloading the Device Security Manager

  • 相关阅读:
    解决docker-compose: command not found
    idea 包存在提示不存在
    使用haproxy负载均衡
    docker使用阿里云仓库上传与下拉images
    docker使用官方仓库上传与下拉images
    WeaveScope-容器监控
    matlab打开
    硬盘测试
    matlab quiver()画箭头的函数
    SDK 和 API 的区别是什么?
  • 原文地址:https://www.cnblogs.com/xingchen/p/1816159.html
Copyright © 2020-2023  润新知