Added a changelog and updated installer scripts.

git-svn-id: http://svn.purei.org/purei/trunk@766 b36208d7-6611-0410-8bec-b1987f11c4a2
This commit is contained in:
jpd002 2011-05-30 02:52:59 +00:00
parent aeeb6993f7
commit 21a96f09c0
3 changed files with 149 additions and 5 deletions

19
changelog.html Normal file
View file

@ -0,0 +1,19 @@
<html>
<head>
<title>Play! Change Log</title>
</head>
<body>
<h3>Version 0.30</h3>
<ul>
<li>Added AVI format video recording functionality.</li>
<li>Fixed COUNT register increment rate. (For Half-Life)</li>
<li>Improved frame-buffer flip detection.</li>
<li>Improved MAC flags support and Q/P register pipelines. (For games using 3D)</li>
<li>Switched to new recompilation engine and added x64 version.</li>
</ul>
<h3>Version 0.26 and earlier</h3>
<ul>
<li>Not recorded.</li>
</ul>
</body>
</html>

View file

@ -6,7 +6,7 @@
Name "Play! v${APP_VERSION}"
; The file to write
OutFile "Play-${APP_VERSION}.exe"
OutFile "Play-${APP_VERSION}-32.exe"
; The default installation directory
InstallDir $PROGRAMFILES\Play
@ -62,9 +62,8 @@ Section "Play! (required)"
; Put file there
File "..\win32\Release\Play.exe"
File "..\Readme.html"
File "..\Changelog.html"
File "..\Patches.xml"
File "..\icudt34.dll"
File "..\icuuc34.dll"
; Write the installation path into the registry
WriteRegStr HKLM SOFTWARE\NSIS_Play "Install_Dir" "$INSTDIR"
@ -85,6 +84,7 @@ Section "Start Menu Shortcuts"
CreateShortCut "$SMPROGRAMS\Play!\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
CreateShortCut "$SMPROGRAMS\Play!\Play!.lnk" "$INSTDIR\Play.exe" "" "$INSTDIR\Play.exe" 0
CreateShortCut "$SMPROGRAMS\Play!\Read Me.lnk" "$INSTDIR\Readme.html" "" "$INSTDIR\Readme.html" 0
CreateShortCut "$SMPROGRAMS\Play!\changelog.html.lnk" "$INSTDIR\changelog.html" "" "$INSTDIR\changelog.html" 0
SectionEnd
@ -101,9 +101,8 @@ Section "Uninstall"
; Remove files and uninstaller
Delete $INSTDIR\Play.exe
Delete $INSTDIR\Readme.html
Delete $INSTDIR\Changelog.html
Delete $INSTDIR\Patches.xml
Delete $INSTDIR\icudt34.dll
Delete $INSTDIR\icuuc34.dll
Delete $INSTDIR\uninstall.exe
; Remove shortcuts, if any

View file

@ -0,0 +1,126 @@
!include "MUI2.nsh"
!include "x64.nsh"
!searchparse /file ../Source/AppDef.h '#define APP_VERSIONSTR _T("' APP_VERSION '")'
; The name of the installer
Name "Play! v${APP_VERSION}"
; The file to write
OutFile "Play-${APP_VERSION}-64.exe"
; The default installation directory
InstallDir $PROGRAMFILES64\Play
; Registry key to check for directory (so if you install again, it will
; overwrite the old one automatically)
InstallDirRegKey HKLM "Software\NSIS_Play" "Install_Dir"
; Request application privileges for Windows Vista
RequestExecutionLevel admin
;--------------------------------
;Interface Settings
!define MUI_ABORTWARNING
;--------------------------------
;Pages
;!insertmacro MUI_PAGE_LICENSE "${NSISDIR}\Docs\Modern UI\License.txt"
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
;--------------------------------
;Languages
!insertmacro MUI_LANGUAGE "English"
;--------------------------------
; Pages
;Page components
;Page directory
;Page instfiles
;UninstPage uninstConfirm
;UninstPage instfiles
;--------------------------------
; The stuff to install
Section "Play! (required)"
SectionIn RO
; Set output path to the installation directory.
SetOutPath $INSTDIR
; Put file there
File "..\x64\Release\Play.exe"
File "..\Readme.html"
File "..\Changelog.html"
File "..\Patches.xml"
; Write the installation path into the registry
WriteRegStr HKLM SOFTWARE\NSIS_Play "Install_Dir" "$INSTDIR"
; Write the uninstall keys for Windows
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Play" "DisplayName" "Play"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Play" "UninstallString" '"$INSTDIR\uninstall.exe"'
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Play" "NoModify" 1
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Play" "NoRepair" 1
WriteUninstaller "uninstall.exe"
SectionEnd
; Optional section (can be disabled by the user)
Section "Start Menu Shortcuts"
CreateDirectory "$SMPROGRAMS\Play!"
CreateShortCut "$SMPROGRAMS\Play!\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
CreateShortCut "$SMPROGRAMS\Play!\Play!.lnk" "$INSTDIR\Play.exe" "" "$INSTDIR\Play.exe" 0
CreateShortCut "$SMPROGRAMS\Play!\Read Me.lnk" "$INSTDIR\Readme.html" "" "$INSTDIR\Readme.html" 0
CreateShortCut "$SMPROGRAMS\Play!\changelog.html.lnk" "$INSTDIR\changelog.html" "" "$INSTDIR\changelog.html" 0
SectionEnd
;--------------------------------
; Uninstaller
Section "Uninstall"
; Remove registry keys
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Play"
DeleteRegKey HKLM SOFTWARE\NSIS_Play
; Remove files and uninstaller
Delete $INSTDIR\Play.exe
Delete $INSTDIR\Readme.html
Delete $INSTDIR\Changelog.html
Delete $INSTDIR\Patches.xml
Delete $INSTDIR\uninstall.exe
; Remove shortcuts, if any
Delete "$SMPROGRAMS\Play!\*.*"
; Remove directories used
RMDir "$SMPROGRAMS\Play!"
RMDir "$INSTDIR"
SectionEnd
# Installer functions
Function .onInit
${If} ${RunningX64}
${Else}
MessageBox MB_OK "This installer is for the 64-bits version of Windows. Bailing out."
Abort
${EndIf}
SetRegView 64
FunctionEnd