简体   繁体   English

自动化InstallAnywhere安装

[英]Automating InstallAnywhere installation

In my company we are using InstallAnywhere for one of our product. 在我的公司中,我们将InstallAnywhere用于我们的一种产品。 I was wondering if it is possible to automate installation process? 我想知道是否可以自动化安装过程? I know that InstallAnywhere is able to run from console with settings given in config file, but unfortunately this option is turned off, and it will not be turned on. 我知道InstallAnywhere可以使用配置文件中给出的设置从控制台运行,但是很遗憾,此选项已关闭,并且不会打开。 I thought maybe I will write application in Java which will automate installation process. 我以为也许我会用Java编写应用程序,从而实现安装过程的自动化。

What kind of subjects I should study before start? 开始之前我应该​​学习哪种科目?

Do you have any other ideas how can I help myself? 您还有其他想法吗?

You can use Test Automation API from InstallAnywhere. 您可以从InstallAnywhere使用Test Automation API

Follow readme.txt to configure environment. 按照readme.txt配置环境。

You can find docs and examples under InstallAnywhere_installation_directory/gui-test-auto 您可以在InstallAnywhere_installation_directory / gui-test-auto下找到文档和示例

for what it's worth, the option to enable this is a function of being in the "enterprise" tier IA and is under Installer UI -> Look & Feel -> General UI Settings -> Allowable UI Modes. 对于它的价值,启用此选项的功能是位于“企业”层IA中,并且位于Installer UI-> Look&Feel-> General UI Settings-> Allowable UI Modes下。

If you tried to contact the publisher for having those enabled and they refused, the next sensible thing to try is scripting it yourself. 如果您试图联系发布者以启用这些功能,但他们拒绝了,那么下一个明智的尝试就是自己编写脚本。

Does the installer in UI mode generate an installer.properties file? UI模式下的安装程序是否生成installer.properties文件? This contains a list of files it placed and where, and would be an easy thing to base a script off of where you just fix the path leading to each file on the list. 它包含一个文件列表以及它放置的位置,并且很容易将脚本作为基础,而您只需要在此基础上修复指向列表中每个文件的路径即可。

If no such luck, you can always make a listing of the resulting installation manually, hoping it's just in one folder. 如果没有运气,您总是可以手动列出最终安装的清单,希望它只是在一个文件夹中。 Once you have a list of where the files go and which files, the rest should be easy. 一旦有了文件的去向和哪些文件的列表,其余的就应该很容易了。 Don't forget to modify all of IA's own files for the path to Java VM ;) 不要忘记修改IA自己的所有文件以获取Java VM的路径;)

Run this command build.exe my product.iap_xml . 运行此命令build.exe我的product.iap_xml。 build.exe is a command line tool of installanywhere. build.exe是installanywhere的命令行工具。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM