Skip to content

Commit a5ae9aa

Browse files
committed
Added Associate .KeyInsert files to installer
release v1.2.1
1 parent 7e9413f commit a5ae9aa

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

NSIS Installer for KeyInsert.nsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ Section "Quick Launch Shortcut"
5050
CreateShortCut "$QUICKLAUNCH\KeyInsert.lnk" "$INSTDIR\KeyInsert.exe" "" "$INSTDIR\KeyInsert.exe" "" "" "" "KeyInsert"
5151
SectionEnd
5252

53+
Section "Associate with *.KeyInsert files"
54+
WriteRegStr HKCR "Applications\KeyInsert.exe\shell\open\command" "" "$\"$INSTDIR\KeyInsert.exe$\" $\"%1$\""
55+
WriteRegStr HKCR ".KeyInsert\OpenWithList\KeyInsert.exe" "" ""
56+
WriteRegStr HKCR ".KeyInsert" "" "KeyInsert_auto_file"
57+
WriteRegStr HKCR "KeyInsert_auto_file\shell\open\command" "" "$\"$INSTDIR\KeyInsert.exe$\" $\"%1$\""
58+
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.KeyInsert\OpenWithList" "j" "KeyInsert.exe"
59+
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.KeyInsert\UserChoice" "Progid" "Applications\KeyInsert.exe"
60+
SectionEnd
61+
5362
; Functions
5463

5564
Function .onInit

Properties/AssemblyInfo.vb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ Imports System.Runtime.InteropServices
2828
' You can specify all values by your own or you can build default build and revision
2929
' numbers with the '*' character (the default):
3030

31-
<Assembly: AssemblyVersion("1.2.0.0")>
32-
<Assembly: AssemblyFileVersion("1.2.0.0")>
31+
<Assembly: AssemblyVersion("1.2.1.0")>
32+
<Assembly: AssemblyFileVersion("1.2.1.0")>

0 commit comments

Comments
 (0)