NSIS设置默认程序以启动指定的文件类型 [英] NSIS to set default program to launch specified file type

查看:822
本文介绍了NSIS设置默认程序以启动指定的文件类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用NSIS脚本为我的Java程序创建安装程序。我的可执行jar是从BAT文件启动的。安装程序工作正常,但我想要一个特定的文件类型(仅作为示例.zip)始终使用我的应用程序作为默认值。现在,如果我双击该文件,我必须浏览程序文件>公司名称> bat文件并指定始终使用此BAT文件来启动此文件类型。

I am using an NSIS script to create an installer for my Java program. My executeable jar is launched from a BAT file. The installer works fine, but I want a specific file type (just for an example ".zip") to always use my app as the default. Right now if I double click the file, I have to browse into "Program Files > Company Name > bat file" and specify to always use this BAT file to launch this file type.

有没有办法在NSIS脚本中指定这个,这样用户就不必浏览并设置总是使用复选框?如果是这样,怎么样?

Is there a way to specify this in an NSIS script so the user doesnt have to browse and set that always use checkbox? If so, how?

提前感谢您提供的任何帮助。

Thanks in advance for any help you can provide.

推荐答案

使用来自nsis wiki的帮助者,或者只需自己处理它注册表函数使用 MSDN 作为指南

Use the helper macros from the nsis wiki, or just handle it on your own with the registry functions using MSDN as your guide

这篇关于NSIS设置默认程序以启动指定的文件类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆