Now comes in new flavour with real Add/Remove Programs entry.

This commit is contained in:
Matthew Bowra-Dean
2010-03-04 23:22:29 +13:00
parent 6309b3bd93
commit 0c4a91cd97

View File

@@ -15,6 +15,11 @@ SetCompressor lzma
!insertmacro MUI_PAGE_INSTFILES
;!insertmacro MUI_PAGE_FINISH
;!insertmacro MUI_UNPAGE_WELCOME
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_UNPAGE_FINISH
!insertmacro MUI_LANGUAGE "English"
;***************************
@@ -33,6 +38,8 @@ Section "Client" Client
File "..\..\FreeSans.ttf"
File "..\..\FreeSansBold.ttf"
File "..\..\OpenRA.Game\OpenRA.ico"
File /r "..\..\thirdparty\Tao\*.dll"
SetOutPath "$INSTDIR\shaders"
@@ -110,6 +117,39 @@ Section "-Freetype" Freetype
done:
SectionEnd
;***************************
;Uninstaller Sections
;***************************
Section "-Uninstaller"
WriteUninstaller $INSTDIR\uninstaller.exe
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA" "DisplayName" "OpenRA"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA" "UninstallString" "$INSTDIR\uninstaller.exe"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA" "InstallLocation" "$INSTDIR"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA" "DisplayIcon" "$INSTDIR\OpenRA.ico"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA" "Publisher" "IJW Software (New Zealand)"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA" "URLInfoAbout" "http://open-ra.org"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA" "NoModify" "1"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA" "NoRepair" "1"
SectionEnd
Section "Uninstall"
RMDir /r $INSTDIR\mods
RMDir /r $INSTDIR\shaders
Delete $INSTDIR\OpenRA.Game.exe
Delete $INSTDIR\OpenRA.Server.exe
Delete $INSTDIR\OpenRA.FileFormats.dll
Delete $INSTDIR\OpenRA.Gl.dll
Delete $INSTDIR\Tao.*.dll
Delete $INSTDIR\COPYING
Delete $INSTDIR\HACKING
Delete $INSTDIR\INSTALL
Delete $INSTDIR\OpenRA.ico
Delete $INSTDIR\*.ttf
Delete $INSTDIR\settings-netplay-*.ini
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA"
SectionEnd
;***************************
;Section Descriptions
;***************************