Skip to content

Commit

Permalink
Added Associate .KeyInsert files to installer
Browse files Browse the repository at this point in the history
release v1.2.1
  • Loading branch information
Walkman100 committed Dec 12, 2015
1 parent 7e9413f commit a5ae9aa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions NSIS Installer for KeyInsert.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ Section "Quick Launch Shortcut"
CreateShortCut "$QUICKLAUNCH\KeyInsert.lnk" "$INSTDIR\KeyInsert.exe" "" "$INSTDIR\KeyInsert.exe" "" "" "" "KeyInsert"
SectionEnd

Section "Associate with *.KeyInsert files"
WriteRegStr HKCR "Applications\KeyInsert.exe\shell\open\command" "" "$\"$INSTDIR\KeyInsert.exe$\" $\"%1$\""
WriteRegStr HKCR ".KeyInsert\OpenWithList\KeyInsert.exe" "" ""
WriteRegStr HKCR ".KeyInsert" "" "KeyInsert_auto_file"
WriteRegStr HKCR "KeyInsert_auto_file\shell\open\command" "" "$\"$INSTDIR\KeyInsert.exe$\" $\"%1$\""
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.KeyInsert\OpenWithList" "j" "KeyInsert.exe"
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.KeyInsert\UserChoice" "Progid" "Applications\KeyInsert.exe"
SectionEnd

; Functions

Function .onInit
Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ Imports System.Runtime.InteropServices
' You can specify all values by your own or you can build default build and revision
' numbers with the '*' character (the default):

<Assembly: AssemblyVersion("1.2.0.0")>
<Assembly: AssemblyFileVersion("1.2.0.0")>
<Assembly: AssemblyVersion("1.2.1.0")>
<Assembly: AssemblyFileVersion("1.2.1.0")>

0 comments on commit a5ae9aa

Please sign in to comment.