add URL handler registration for Interface

This commit is contained in:
Stephen Birarda 2016-01-11 13:28:26 -08:00
parent b8966de85e
commit 7739749220

View file

@ -704,10 +704,16 @@ Section "-Core installation"
@CPACK_NSIS_CREATE_ICONS@ @CPACK_NSIS_CREATE_ICONS@
@CPACK_NSIS_CREATE_ICONS_EXTRA@ @CPACK_NSIS_CREATE_ICONS_EXTRA@
; Conditional handling for interface shortcut ; Conditional handling for Interface specific options
${If} ${SectionIsSelected} ${client} ${If} ${SectionIsSelected} ${client}
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\${INTERFACE_SHORTCUT_NAME}.lnk" \ CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\${INTERFACE_SHORTCUT_NAME}.lnk" \
"$INSTDIR\${INTERFACE_EXEC_NAME}" "$INSTDIR\${INTERFACE_EXEC_NAME}"
; hifi:// protocol handler registry entries
WriteRegStr HKCR 'hifi' '' 'URL:Alert Protocol'
WriteRegStr HKCR 'hifi' 'URL Protocol' ''
WriteRegStr HKCR 'hifi\DefaultIcon' '' '$INSTDIR\${INTERFACE_EXEC_NAME},1'
WriteRegStr HKCR 'hifi\shell\open\command' '' '$INSTDIR\${INTERFACE_EXEC_NAME} --url "%1"'
${EndIf} ${EndIf}
; Conditional handling for server console shortcut ; Conditional handling for server console shortcut