简体   繁体   中英

NSIS to set default program to launch specified file type

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.

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作为指导的注册表功能自行处理它

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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