现在的位置: 首页 > 综合 > 正文

[References]Installing Multiple CAB Files

2012年07月04日 ⁄ 综合 ⁄ 共 5649字 ⁄ 字号 评论关闭

http://channel9.msdn.com/wiki/default.aspx/MobileDeveloper.InstallingMultipleCABFiles

Installing Multiple CAB Files


Summary: Installing multiple CAB files from a single CAB file

Often a mobile device application may require that other software be installed onto the device in addition to the actual application; for example a managed application requires the .NET Compact Framework and might also require SQL Server Everywhere Edition. Each piece of software is normally contained in a separate

5/23/2007 3:39:37 PM - hedgehogjim

CABfile meaning that the user will have to manually copy each

5/23/2007 3:39:37 PM - hedgehogjim

CABfile to the device and install them separatly.

 

Rather then make the user install each

5/23/2007 3:39:37 PM - hedgehogjim

CABfile individually, it's preferable to package all of the unique

5/23/2007 3:39:37 PM - hedgehogjim

CABfile into a single master

5/23/2007 3:39:37 PM - hedgehogjim

CABfile and have the master

5/23/2007 3:39:37 PM - hedgehogjim

CABfile handle the details of installing the other

5/23/2007 3:39:37 PM - hedgehogjim

CABfile instances. Another consideration is that the application installation should only install a

5/23/2007 3:39:37 PM - hedgehogjim

CABfile if the CAB file's software hasn't already been installed.

 

You can easily create a master

5/23/2007 3:39:37 PM - hedgehogjim

CABfile that contains multiple CAB files by simply using the Visual Studio 2005 Smart Device CAB project. This Smart Device CAB project acts as the master

5/23/2007 3:39:37 PM - hedgehogjim

CABfile, so you just add all of the desired CAB files to the project. When the master

5/23/2007 3:39:37 PM - hedgehogjim

CABfile is deployed to the device, it will automatically place each individual

5/23/2007 3:39:37 PM - hedgehogjim

CABfile on the device.

 

To install each individual

5/23/2007 3:39:37 PM - hedgehogjim

CABfile requires 2 separate executables

 

  1. A program that loops through the list of all of the CAB files and uses ShellExecute to install each one individually
  2. A DLL that gets associated with the master

Once the master

5/23/2007 3:39:37 PM - hedgehogjim

CABfile, Program and DLL are complete, the install process goes like this:

 

  1. The master
  2. The user initiates the
  3. The device installs the master
  4. Once all of the individual CAB files are placed on the device, the DLL's Install_Exit entry point (a.k.a. function) is called
  5. The Install_Exit function then launches the program
  6. The program then loops through each

Note that the first 2 steps that the user manually performs can be automatically performed as part of a desktop MSI as discussed in

9/29/2006 10:31:50 AM - hedgehogjim

InstallApplication

 

Like pretty much anything else in programming, the best way to understand the multiple

5/23/2007 3:39:37 PM - hedgehogjim

CABfile install process is with a sample.

 

If you would like information about how to install a

5/23/2007 3:39:37 PM - hedgehogjim

CABfile to a device from a desktop MSI file...

 

  • Checkout the

抱歉!评论已关闭.