Java

本类阅读TOP10

·使用MyEclipse开发Struts框架的Hello World!(录像1)
·hibernate配置笔记
·AOP编程入门--Java篇
·linux下Tomcat 5.0.20 与 Apache 2 安装/集成/配置
·在win2003下整合了整合Tomcat5.5+ apache_2.0.53+ mod_jk_2.0.47.dll
·构建Linux下IDE环境--Eclipse篇
·Jsp 连接 mySQL、Oracle 数据库备忘(Windows平台)
·ASP、JSP、PHP 三种技术比较
·Tomcat5.5.9的安装配置
·AWT GUI 设计笔记(二)

分类导航
VC语言Delphi
VB语言ASP
PerlJava
Script数据库
其他语言游戏开发
文件格式网站制作
软件工程.NET开发
InstallAnyWhere6.1快速建立安装程序

作者:未知 来源:月光软件站 加入时间:2005-2-28 月光软件站

Building an Installer

It is possible to build a basic installer with the Project Wizard in six steps and about five minutes. The following tutorial teaches how to build an installer for a sample Java application, called "Office Suite for Java," which is included in the InstallAnywhere folder.

  1. Create New Project

      1. Launch InstallAnywhere.

    On the first screen, the Create New Project option should already be selected.

      1. Click Save As to save and name the project.

    The Save New Project As dialog box appears. By default the project is named My_Product, but any name could be used.

      1. Click Save to confirm the name and close this dialog box.

      2. Click Next to move to the next step of the Project Wizard

    Set Info defines basic information about the installer, such as the product name (as displayed on the installer), the name of the installer to be produced, the name of the destination folder, and the application name.

      1. Type the information in the appropriate textboxes.

    For this tutorial, use the following:

    Product Name: OfficeSuite

    Install Folder Name: OfficeSuite

    Application Shortcut Name: OfficeSuite

      1. Click Next to move to the next step in the Project Wizard.

  2. Files tasks

      1. Add Files

      2. Click Add Files. The Add Files to Project dialog box appears. Browse through the list to find the OfficeSuiteSourceFiles folder. The OfficeSuiteSourceFiles folder is within the InstallAnywhere installation folder.

      3. Click Add All to add the ImagesAndDocs and OfficeSuite2000 folders, which are inside the OfficeSuiteSourceFiles folder.

    These files should appear in the Files to Add list.

      1. Click Done.

    The selected files should appear in the File/Folder Hierarchy.

      1. Click Next to move to the next step in the Project Wizard

    NOTE: Unless installing a Java application, skip ahead by clicking Next without specifying a main class. The Choose a Main Class dialog box appears. Click No to move to the next step.

      1. Choose Main Class

    Choose Main Class selects the starting class for the application. This frame also allows developers to specify custom icons (in GIF format) for the LaunchAnywhere executable file.

      1. Click Automatically Find Main Classes at the bottom of the screen.

      2. Select the Main Class.

      3. Specify a custom icon for the LaunchAnywhere executable by clicking Change and choosing a 32x32 or a 16x16 pixel GIF for the application icon (NOTE: ICO files are not supported.) Navigate to the Image and Docs folder and choose OfficeIcon.gif.

      4. Click OK to confirm and close the dialog box.

    The icon will appear on the main screen.

      1. Click Next to move to the next step in the Project Wizard.

    NOTE: Unless installing a Java application, skip ahead by clicking Next without specifying a main class. The Choose a Main Class dialog box appears. Click No to move to the next step.

      1. Set Classpath

    Set Classpath automatically configures a Java application’s classpath.

      1. Click Automatically Set Classpath.

    InstallAnywhere will calculate which files need to be added to the classpath. A small "CP" icon will appear at the bottom of those folders.

      1. Click Next to move to the next step in the Project Wizard.

  3. Build Installer

    The first several items on the Build Installer screen, from Mac OS X through Unix (All), represent installers that are double-clickable on their respective platforms. The final option, Other Java-Enabled Platforms, is a "pure" Java installer that can be invoked from the command line on any Java-enabled platform. Developers may also choose to build installers with an embedded Virtual Machine. Installers that are built without VMs are smaller, and download faster than installers bundled with one. The InstallAnywhere Web Install process will allow end-users to choose the appropriate installer for their system.

      1. Pick the appropriate destination platforms and click Build.

    The installer folder will be placed in the same location as the project file. This location cannot be changed.

  4. Test

      1. Now that an installer has been built, it can be tested by clicking Try It.

      2. After deploying the sample installer:

      3. On Windows, go to the OfficeSuite program group and choose OfficeSuite.

      4. On Unix, "cd" to the directory where the program was installed and type OfficeSuite.

      5. On Mac OS X, double-click the OfficeSuite icon on the desktop.

      1. After launching Office Suite for Java, quit by selecting Exit from its File menu.

    It is possible to post the installer folder to a Web server and install the software onto another platform as well.

    TIP: Hold down the Control (ctrl) key while the installer launches to see the debug output (Windows only).

      1. Run the completed installer.

    When building for a platform other than that on which the installer is being developed, transfer that installer, and run it manually. By default, installers will be located in the Build_Output directories found in the same folder as the .iap_xml project file. Within the Build_Output folder, will be Web_Installers, and or CDROM_installers. From within each of these directories, choose the platform to test. For the CDROM installer, transfer the entire contents of the CDROM_Installers folder.




相关文章

相关软件