简体   繁体   English

如何首先安装第三方msi或exe或bin,然后完成安装后启动主应用程序?

[英]How to install third party msi or exe or bin first and then when its done, start the main application?

Here is the problem, myapp.jar works and runs. 这是问题所在,myapp.jar可以运行。 But it has other native dependencies. 但是它还有其他本机依赖性。

  • It has other third party libraries dependencies, which need to be installed first in windows and linux/mac depending on the user platform. 它具有其他第三方库依赖项,具体取决于用户平台,需要首先将它们安装在Windows和linux / mac中。

  • How the third_ party _will_it_install_or_just_download_only.exe OR third_ party _will_it_install_or_just_download_only.bin 第三方 _will_it_install_or_just_download_only.exe或第三方 _will_it_install_or_just_download_only.bin

Can be installed automatically ? 可以自动安装吗? They are themselves separate installations also. 它们本身也是单独的装置。

>     <?xml version="1.0" encoding="utf-8"?>
>     <jnlp spec="1.0+" codebase="http://localhost:8080/" 
> href="advance.jnlp" >
>     
>     
>       <information>
>         <title>Test</title>
>         <vendor>Testing</vendor>
>         <homepage href="http://localhost:8080/"/>
>         <description>Demo</description>
>         <offline-allowed/>
>       </information>
>       
>     
>       <security>
>         <all-permissions/>
>       </security>
>       
>     
>       <resources>
>         <property name="jnlp.packEnabled" value="true"/>
>         <jar href="myapp.jar" />
>       </resources>
>     
>       <resources os="Windows" arch="x86"> 
>     
>         <j2se version="1.5+"/>
>     
>         <jar href="third___party___will_it_install_or_just_download_only.exe"/>
>     
>       </resources>
>     
>       <resources os="Linux" arch="i386">
>         <j2se version="1.5+"/>
>         <jar href="third___party___will_it_install_or_just_download_only.bin"/>
>       </resources>
>       
>       <application-desc main-class="web.Application" />
>       
>     </jnlp>

There's a demo here . 有一个演示这里

Note: the entry point for the installer must be a .jar, so if you want to launch an .exe or .msi you must create another process from within the .jar 注意:安装程序的入口点必须是.jar,因此,如果要启动.exe或.msi,则必须从.jar中创建另一个进程。

If the installers simply do the effect of adding natives to the run-time class-path, then the ExtensionInstallerService will not be required. 如果安装程序只是简单地执行将本机添加到运行时类路径的效果,则不需要ExtensionInstallerService。

In that case, just add the natives themselves to the root of a Jar file for each OS and add references to those Jars into the resources section (suitably partitioned for each OS) as nativelib elements. 在这种情况下,只需将本机本身添加到每个OS的Jar文件的根目录中,然后将对这些Jar的引用添加到资源部分(适合每个OS进行分区)中,作为nativelib元素。


@finnw BTW: Nice link to the EIS demo. @finnw BTW:到EIS演示的不错链接。 I might be biased though - I wrote it. 我可能还是有偏见-我写了它。 ;) ;)

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

相关问题 在JNLP Web Start应用程序中加载第三方许可证 - Load third party license in JNLP Web start Application 如何在Swing应用程序中使用第三方主题? - How to use third party themes in swing application? 第三方jar到exe的转换如何影响软件 - How do third party jar to exe conversion affects software 当工作线程在android中完成其工作时如何从工作线程向主线程获取通知 - How to get notification from worker thread to main thread when worker thread done with its work in android 如何使用LDAP,应用程序,第三方应用程序等进行身份验证 - How to do authentication using LDAP, Application, Third Party application etc 使用 netbeans 为带有 DB 和第三方库的 Java 应用程序打包和分发 exe - package and distribute exe for Java application with DB and third party lib using netbeans 在 maven 解决其依赖关系之前,在本地 maven 中安装第三方 jar? - Install third party jar in local maven before maven resolves its dependency? Android第三方应用服务器 - Android Third Party Application Server 如何在Notes Xpages应用程序中添加外部第三方jar? - How to add external third party jar in Notes Xpages application? 如何在Android的第三方应用程序中访问电子邮件帐户? - How to access the email accounts in third party application in android?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM