mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 23:55:12 +02:00
conditional reg entries for prod build only
This commit is contained in:
parent
0cdc78bdbe
commit
b4002d5f42
1 changed files with 9 additions and 5 deletions
|
@ -8,6 +8,7 @@
|
||||||
!define CONSOLE_SHORTCUT_NAME "Server Console"
|
!define CONSOLE_SHORTCUT_NAME "Server Console"
|
||||||
!define CONSOLE_EXEC_NAME "server-console.exe"
|
!define CONSOLE_EXEC_NAME "server-console.exe"
|
||||||
!define HIGH_FIDELITY_PROTOCOL "hifi"
|
!define HIGH_FIDELITY_PROTOCOL "hifi"
|
||||||
|
!define PRODUCTION_BUILD "@PRODUCTION_BUILD@"
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
; You must define these values
|
; You must define these values
|
||||||
|
@ -710,11 +711,14 @@ Section "-Core installation"
|
||||||
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
|
${If} $PRODUCTION_BUILD == "1"
|
||||||
WriteRegStr HKCR '${HIGH_FIDELITY_PROTOCOL}' '' 'URL:High Fidelity Protocol'
|
; hifi:// protocol handler registry entries
|
||||||
WriteRegStr HKCR '${HIGH_FIDELITY_PROTOCOL}' 'URL Protocol' ''
|
WriteRegStr HKCR '${HIGH_FIDELITY_PROTOCOL}' '' 'URL:High Fidelity Protocol'
|
||||||
WriteRegStr HKCR '${HIGH_FIDELITY_PROTOCOL}\DefaultIcon' '' '$INSTDIR\${INTERFACE_EXEC_NAME},1'
|
WriteRegStr HKCR '${HIGH_FIDELITY_PROTOCOL}' 'URL Protocol' ''
|
||||||
WriteRegStr HKCR '${HIGH_FIDELITY_PROTOCOL}\shell\open\command' '' '$INSTDIR\${INTERFACE_EXEC_NAME} --url "%1"'
|
WriteRegStr HKCR '${HIGH_FIDELITY_PROTOCOL}\DefaultIcon' '' '$INSTDIR\${INTERFACE_EXEC_NAME},1'
|
||||||
|
WriteRegStr HKCR '${HIGH_FIDELITY_PROTOCOL}\shell\open\command' '' '$INSTDIR\${INTERFACE_EXEC_NAME} --url "%1"'
|
||||||
|
${EndIf}
|
||||||
|
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
; Conditional handling for server console shortcut
|
; Conditional handling for server console shortcut
|
||||||
|
|
Loading…
Reference in a new issue