分享
 
 
 

InstallAnyWhere6.1快速建立安装程序

王朝java/jsp·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

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.

Create New Project

Launch InstallAnywhere.

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

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.

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

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.

Type the information in the appropriate textboxes.

For this tutorial, use the following:

Product Name: OfficeSuite

Install Folder Name: OfficeSuite

Application Shortcut Name: OfficeSuite

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

Files tasks

Add Files

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.

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.

Click Done.

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

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.

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.

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

Select the Main Class.

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.

Click OK to confirm and close the dialog box.

The icon will appear on the main screen.

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.

Set Classpath

Set Classpath automatically configures a Java application’s classpath.

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.

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

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.

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.

Test

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

After deploying the sample installer:

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

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

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

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).

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.

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有