Deploying and updating custom tasks/extensions
In ArcGIS for Windows Mobile, you have the ability to develop custom tasks or extensions (which is termed "capabilities" in Mobile Project Center [MPC]) that modify existing functionality or to embed new features into your project using MPC. When saving a mobile project, MPC copies the assemblies with the implementation of these tasks and/or extensions to the project folder, and the assemblies are deployed together with the project into the field devices; therefore, there is no need to separately deploy these custom tasks and extensions.
Read http://resources.arcgis.com/en/help/windows-mobile-sdk/concepts/index.html#/Overview_of_application_framework/01sp0000004n000000/in the developer help to learn about developing custom tasks and extensions.
Deploying custom tasks or extensions
- Close the MPC.
- Make sure that you have the task/extension assemblies ready. You should have a set of two to three assemblies for each task/extension: one is built for use by MPC and the other assembly or assemblies include(s) the actual implementation of the task/extension used by the field applications. Note that separate assemblies are required for Windows and Windows Mobile platforms.
- The assembly for MPC should be copied to:
- For Windows 7 and Windows 8 machines: C:\ProgramData\ESRI\MobileProjectCenter\Extensions
- For Windows XP machines: C:\Documents and Settings\All Users\Application Data\ESRI\MobileProjectCenter\Extensions
- The assembly with the implementation for the field applications should be copied to:
- For Windows 7 and Windows 8 machines: C:\ProgramData\ESRI\MobileProjectCenter\Extensions\Win32 if your task/extension runs in Windows devicesor notebook, or C:\ProgramData\ESRI\MobileProjectCenter\Extensions\WinCE if your task/extension runs in Windows Mobile device.
- For Windows XP machines: C:\Documents and Settings\All Users\Application Data\ESRI\MobileProjectCenter\Extensions\Win32 folder if your task/extension runs in Windows devices or notebook, or C:\Documents and Settings\All Users\Application Data\ESRI\MobileProjectCenter\Extensions\WinCE folder if your task/extension runs in Windows Mobile devices.
You need to create the Extensions\Win32 and Extensions\WinCE folders at the locations specified in step 2b if they do not exist.
- The assembly for MPC should be copied to:
- Create a new project or open an existing project in MPC.
- To add a custom task, click the Tasks tab on the left panel, then click the Add button.
You will see the custom tasks at the end of the available list of tasks:
- Click to include the custom task that you want to include from the list.
- To add a custom extension, click the Capabilities tab on the left panel, then click the Add button. Click to include the custom extension you want to use from the list.
- Configure other settings of your project then save the project (For details, see Creating a mobile project).
- After you save the project, MPC automatically copies the assemblies with the implementation of the custom tasks/extensions to <Project Folder>\Extensions\Win32 if the assemblies work on Windows devices, or <Project Folder>\Extensions\WinCE if the assemblies work on Windows Mobile devices.
After you deploy the mobile project to your Windows devices or Windows Mobile devices, the custom tasks/extensions will be ready to use. For details about deploying a project, see Sharing and deploying mobile projects
Updating custom tasks or extensions
In some cases, you might update the task/extension with the implementation detail while keeping the assembly's namespace, class name, and assembly file the same. If so, you only need to overwrite the older assembly with the updated assembly in the appropriate folder as addressed in step 8 in the last section.
If, however, you update the custom task or extension in the assembly with the implementation but also in the assembly for use by MPC, restart MPC and re-open the project, then remove the existing task/extension and add the updated one back in as described in steps 4–6 in the last section.