NSIS to set default program to launch specified file type
Asked Answered
D

1

1

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.

Dzerzhinsk answered 19/8, 2009 at 19:17 Comment(0)
F
0

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

Frontier answered 19/8, 2009 at 19:28 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.