在Windows上将自定义文件扩展名与我的Java程序相关联

问题描述:

有没有一种方法可以将自定义文件扩展名与Windows上的Java程序相关联?我有installAnywhere来创建安装程序.但是我不确定如果可能的话该怎么办.window上的每个安装程序都可以执行此操作,但是如果使用Java,该怎么办.我想这将需要安装程序修改注册表...

is there a way to associate a custom file extension with my java program on windows? I have installAnywhere to create an installer. But I'm not sure how this can be done if it's possible. Every installer on window does this, but what if it's in Java. I imagine it would require registry modification by the installer...

看看 Launch4j .它允许您将Java应用程序包装到本机Windows .exe文件中,与自定义文件扩展名关联起来应该很简单.

Take a look at Launch4j. It allows you to wrap your java application into a native Windows .exe file, with which it should be trivial to associate a custom file extension.

上次我与InstallAnywhere处理是在ZeroG制作它的时候回来的,所以我不太记得它是如何完成的.我现在使用的是 Nullsoft安装系统,该系统具有便捷的

Last time I dealt with InstallAnywhere was back when it was made by ZeroG, so I don't quite remember how it's done there. I'm using Nullsoft Install System now which has a convenient macro to register file extensions, I'm sure InstallAnywhere has a similar facility.