From cffc01ab28f9f255097d3abb488034cab4906f60 Mon Sep 17 00:00:00 2001 From: penev92 Date: Thu, 21 May 2015 20:38:07 +0300 Subject: [PATCH] Register .orarep file type and openra:// URI scheme on Windows --- packaging/windows/OpenRA.nsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packaging/windows/OpenRA.nsi b/packaging/windows/OpenRA.nsi index c88d9ff867..722da967a6 100644 --- a/packaging/windows/OpenRA.nsi +++ b/packaging/windows/OpenRA.nsi @@ -53,7 +53,21 @@ Var StartMenuFolder ;Section Definitions ;*************************** Section "-Reg" Reg + + ; Installation directory WriteRegStr HKLM "Software\OpenRA" "InstallDir" $INSTDIR + + ; Replay file association + WriteRegStr HKLM "Software\Classes\.orarep" "" "OpenRA_replay" + WriteRegStr HKLM "Software\Classes\OpenRA_replay\DefaultIcon" "" "$INSTDIR\OpenRA.ico,0" + WriteRegStr HKLM "Software\Classes\OpenRA_replay\Shell\Open\Command" "" "$INSTDIR\OpenRA.exe Launch.Replay=%1" + + ; OpenRA URL Scheme + WriteRegStr HKLM "Software\Classes\openra" "" "URL:OpenRA scheme" + WriteRegStr HKLM "Software\Classes\openra" "URL Protocol" "" + WriteRegStr HKLM "Software\Classes\openra\DefaultIcon" "" "$INSTDIR\OpenRA.ico,0" + WriteRegStr HKLM "Software\Classes\openra\Shell\Open\Command" "" "$INSTDIR\OpenRA.exe Launch.URI=%1" + SectionEnd Section "Game" GAME