|
|||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||
|
Announcements
Want a new Job?
Chapters
Services
Feature Zones
|
IntroductionCurrently when you install a .NET Compact Framework application in Pocket PC 2002 devices, you have to ascertain the hardware of the device, copy the .NET runtime and application cab files generated for that platform, execute those files. There is no utility like the Application Setup Wizard utility which we have in Embedded Visual tools. This article provides a solution to automate the installation of .NET Compact Framework applications without doing the above mentioned steps for installing .NET Compact Framework applications. Before going in detail, let me give u an overview of the functionality of the Application Install wizard. It produces executables only for ARM and X86 platforms. The wizard takes the .ebp (EVB project file), .vb (file we get when we compile an EVB application), custom files to be included in the application like images, help files etc. as input. From the project file, it determines the COM objects and ActiveX controls used in the project and creates .cab files for ARM and X86 platforms, a setup.ini file and a setup.exe file. So all that we have to do is double click on the setup.exe file and your application is installed to device. How does the setup.exe identify the .cab files? - through setup.ini. Here is a template of setup.ini for your reference. [General]
Component= Applicaton Name
Description=Application description
DefaultDirectory= Installation Directory (created under \program files)
CabCount=Number of .cab files to process
Cab0=File1_PPC.ARM.cab
Cab1=File1_PPC.MIPS.cab
Cab1=File1_PPC.SH3.cab
The entries We can reuse the same setup.exe and setup.ini for deploying .NET Compact Framework applications. What we have to do is:
The following listing is the setup.ini of the sample .NET Compact Framework application provided with this article: [General]
Component=SampleApp
Description=SampleApp Build 1
DefaultDirectory=SampleApp
CabCount=6
Cab0=SampleApp_PPC.ARM.cab
Cab1=SampleApp_PPC.ARMV4.cab
Cab2=SampleApp_PPC.MIPS.cab
Cab3=SampleApp_PPC.SH3.cab
Cab4=SampleApp_PPC.WCE420X86.cab
Cab5=SampleApp_PPC.X86.cab
In this case cab files have been generated for 6 platforms. So Before that, if .NET compact framework runtime is not present in the device, your application cant run. The runtime libraries are distributed in the following files:
where ConclusionThis article discussed the automation of installation of .NET Compact Framework applications. There are still a lot of things we can do with application installation which I will discuss in future articles.
|
||||||||||||||||||||||||||||||||||||||||||||