Commit 883cf9664e991cd067119d8e99bb175deeedfc64
1 parent
147ad2e5
Exists in
master
and in
3 other branches
Adding file association on windows.
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
win/pw3270.nsi.in
... | ... | @@ -29,6 +29,7 @@ |
29 | 29 | !include "FileFunc.nsh" |
30 | 30 | !include "LogicLib.nsh" |
31 | 31 | !include "winmessages.nsh" |
32 | +!include "FileAssociation.nsh" | |
32 | 33 | |
33 | 34 | Name "@PRODUCT_NAME@" |
34 | 35 | Caption "@PRODUCT_NAME@ - @PACKAGE_DESCRIPTION@" |
... | ... | @@ -106,6 +107,9 @@ SubSection "@PRODUCT_NAME@" SecMain |
106 | 107 | file "/oname=$INSTDIR\lib@LIBRARY_NAME@.dll" "lib@LIBRARY_NAME@.dll" |
107 | 108 | file "/oname=$INSTDIR\libv3270.dll" "libv3270.dll" |
108 | 109 | |
110 | + # Register file association | |
111 | + ${registerExtension} "$INSTDIR\@PRODUCT_NAME@.exe" ".3270" "@PRODUCT_NAME@ Session file" | |
112 | + | |
109 | 113 | # Configuration files |
110 | 114 | file "/oname=$INSTDIR\@PRODUCT_NAME@-logo.png" "@PRODUCT_NAME@\@PRODUCT_NAME@-logo.png" |
111 | 115 | file "/oname=$INSTDIR\@PRODUCT_NAME@.png" "@PRODUCT_NAME@\@PRODUCT_NAME@.png" | ... | ... |