NSIS to set default program to launch specified file type

戏子无情 提交于 2019-12-24 11:37:16

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/1302075/nsis-to-set-default-program-to-launch-specified-file-type

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!