Installing multiple CAB files with the same setup application
2010-10-11 11:17
721 查看
Installing multiple CAB files with the same setup application
By Alexandru Balut, February 28, 2003.Print version
Introduction
This articles describes how to create desktop installation program that installs multiple CAB files to Pocket PC using freeware NSIS.Once you have the CAB file generated by cabwiz, and it's ini file, it is easy to make a setup application that displays a readme text and a licence, and installs it on the pocketpc; for example using EzSetup 2.0.
What You Need
NSISUsing NSIS
If you need to install, with only one setup application, two or more CAB files (for example a CAB file containing your Java application and a CAB containing the JVM), or if you need a setup application with extended functionality, you can use Nullsoft Install System - NSIS http://www.nullsoft.com/free/nsis. Both EzSetup and NSIS are freeware.To use NSIS for making a setup application, you need a .nsi file. The nsi file included in the provided sample allows you to make a setup that installs two CAB files. It first displays a eula.txt; after the user agrees with it, it allows the user to deselect the installation of the second app. Then it copies the files and installs the CABs using CeAppMgr. At the end, it asks the user to open readme.html, using the default browser.
To install a CAB file on the pocketpc, for example YourApp.cab, the setup application has to start CeAppMgr.exe, passing as parameter the absolute path to the YourApp.ini file that is required by CeAppMgr.
To accomplish this, the setup application has to read the location of CeAppMgr.exe, from the registry:
ReadRegStr $1 HKEY_LOCAL_MACHINE "software/Microsoft/Windows/CurrentVersion/App Paths/CEAppMgr.exe" ""
Installing the CAB becomes as simple as:
StrCpy $0 "$INSTDIR/YourApp.ini"
Call InstallCAB
where InstallCAB is:
Function InstallCAB
ExecWait '"$1" "$0"'
FunctionEnd
Sample
You can download a sample NSIS project for multiple CAB installation here - MultiCabInstallation.zip (200 Kb). To build the sample setup application, install NSIS, right-click on test.nsi, click Compile NSI.Related resources:
Section: InstallationArticle: Using EzSetup for creating Pocket PC installations
Article: Using Spb AirSetup to create Pocket PC installers
QA: How can I add my custom function to installation/uninstallation?
QA: How to uninstall a Pocket PC application?
QA: How can I create setup.exe file that will automatically install necessart .cab file on Pocket PC?
QA: How to install a cab file on Pocket PC?
Article: Successful Installation for Pocket PC Applications
Article: Creating an Application Installation Package with Microsoft Windows CE 3.0
Article: Deploying Windows CE applications with Wise InstallMaster
Article: deVBuzz speaks with Jeff Law of PPCInstall
Discuss
Discuss this article. Here you can write your comments and read comments of other developers.相关文章推荐
- maven使用jstl表达式和The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application解决
- jeesite部署到Tomcat后,无法访问,cannot be resolved in either web.xml or the jar files deployed with this application
- Hosting Multiple Service Implementations On The Same Port With WCF
- exception http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
- multiple lua files with same-named functions
- cannot be resolved in either web.xml or the jar files deployed with this application
- The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application的解决办法
- HTTP Status 500 - The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
- Install multiple instances of Reporting Services on the same computer (for use with Microsoft Dynami
- [Nuxt] Setup a "Hello World" Server-Rendered Vue.js Application with the Vue-CLI and Nuxt
- 异常:The absolute uri: http://www.springframework.org/security/tags cannot be resolved in either web.xml or the jar files deployed with this application
- Files to be needed by importing the android application with eclipse
- The absolute uri: http://struts.apache.org/tags-bean cannot be resolved in either web.xml or the jar files deployed with this application
- multiple web application host under the same website on IIS
- cannot be resolved in either web.xml or the jar files deployed with this application
- wo or more files with the name of logging.cc will produce outputs to the same location.
- This absolute uri http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
- cannot be resolved in either web.xml or the jar files deployed with this application
- [References]Installing Multiple CAB Files
- HTTP Status 500 - The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application