mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Add nsis script to add/remove context menu entry
This commit is contained in:
parent
8bc7d979ef
commit
e6e39fbe98
2 changed files with 22 additions and 0 deletions
19
build/win/installer.nsh
Normal file
19
build/win/installer.nsh
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
!macro customInstall
|
||||
WriteRegStr HKCU "Software\Classes\Directory\Background\shell\Hyper" "" "Open Hyper here"
|
||||
WriteRegStr HKCU "Software\Classes\Directory\Background\shell\Hyper" "Icon" "$appExe"
|
||||
WriteRegStr HKCU "Software\Classes\Directory\Background\shell\Hyper\command" "" `$appExe "%V"`
|
||||
|
||||
WriteRegStr HKCU "Software\Classes\Directory\shell\Hyper" "" "Open Hyper here"
|
||||
WriteRegStr HKCU "Software\Classes\Directory\shell\Hyper" "Icon" "$appExe"
|
||||
WriteRegStr HKCU "Software\Classes\Directory\shell\Hyper\command" "" `$appExe "%V"`
|
||||
|
||||
WriteRegStr HKCU "Software\Classes\Drive\shell\Hyper" "" "Open Hyper here"
|
||||
WriteRegStr HKCU "Software\Classes\Drive\shell\Hyper" "Icon" "$appExe"
|
||||
WriteRegStr HKCU "Software\Classes\Drive\shell\Hyper\command" "" `$appExe "%V"`
|
||||
!macroend
|
||||
|
||||
!macro customUnInstall
|
||||
DeleteRegKey HKCU "Software\Classes\Directory\Background\shell\Hyper"
|
||||
DeleteRegKey HKCU "Software\Classes\Directory\shell\Hyper"
|
||||
DeleteRegKey HKCU "Software\Classes\Drive\shell\Hyper"
|
||||
!macroend
|
||||
|
|
@ -50,6 +50,9 @@
|
|||
],
|
||||
"rfc3161TimeStampServer": "http://timestamp.comodoca.com"
|
||||
},
|
||||
"nsis": {
|
||||
"include": "build/win/installer.nsh"
|
||||
},
|
||||
"mac": {
|
||||
"target": {
|
||||
"target": "default",
|
||||
|
|
|
|||
Loading…
Reference in a new issue