Remove oramod and orarep file type handlers.

This commit is contained in:
Paul Chote
2017-04-09 10:07:01 +00:00
parent 3f4f56d728
commit d7c710e5fc
4 changed files with 7 additions and 51 deletions

View File

@@ -1,12 +0,0 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=OpenRA
GenericName=Real Time Strategy Game
Comment=Reimagining of early Westwood Games
Icon=openra
Exec=openra Game.Mod=%f
Terminal=false
NoDisplay=true
Categories=Game;StrategyGame;
MimeType=application/x-openra-mod;

View File

@@ -1,20 +1,6 @@
<?xml version="1.0"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
<mime-type type="application/x-openra-replay">
<icon name="openra" />
<generic-icon name="applications-games"/>
<comment>OpenRA Replay</comment>
<glob weight="60" pattern="*.orarep"/>
</mime-type>
<mime-type type="application/x-openra-mod">
<icon name="openra" />
<generic-icon name="applications-games"/>
<comment>OpenRA Mod</comment>
<glob weight="60" pattern="*.oramod"/>
</mime-type>
<mime-type type="x-scheme-handler/openra">
<icon name="openra" />
<generic-icon name="applications-games"/>

View File

@@ -1,12 +0,0 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=OpenRA
GenericName=Real Time Strategy Game
Comment=Reimagining of early Westwood Games
Icon=openra
Exec=openra Launch.Replay=%f
Terminal=false
NoDisplay=true
Categories=Game;StrategyGame;
MimeType=application/x-openra-replay;

View File

@@ -55,23 +55,19 @@ 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$\""
; oramod file association
WriteRegStr HKLM "Software\Classes\.oramod" "" "OpenRA_mod"
WriteRegStr HKLM "Software\Classes\OpenRA_mod\DefaultIcon" "" "$INSTDIR\OpenRA.ico,0"
WriteRegStr HKLM "Software\Classes\OpenRA_mod\Shell\Open\Command" "" "$INSTDIR\OpenRA.exe Game.Mod=$\"%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"
; Remove obsolete file associations
DeleteRegKey HKLM "Software\Classes\.orarep"
DeleteRegKey HKLM "Software\Classes\OpenRA_replay"
DeleteRegKey HKLM "Software\Classes\.oramod"
DeleteRegKey HKLM "Software\Classes\OpenRA_mod"
SectionEnd
Section "Game" GAME
@@ -213,8 +209,6 @@ Function ${UN}Clean
RMDir /r $INSTDIR\Support
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA"
DeleteRegKey HKLM "Software\Classes\.orarep"
DeleteRegKey HKLM "Software\Classes\OpenRA_replay"
DeleteRegKey HKLM "Software\Classes\openra"
Delete $INSTDIR\uninstaller.exe