Moved VC++2013 redist installer scripts and updated PsfPlayer installer script.

This commit is contained in:
Jean-Philip Desjardins 2015-06-24 20:49:17 -04:00
parent e5335a82ba
commit e805e5ea9e
4 changed files with 339 additions and 339 deletions

View file

@ -1,39 +1,39 @@
;Inspired by PCSX2's Web Installer Script
!define REDIST_NAME "Visual C++ 2013 Redistributable"
!define REDIST_SETUP_FILENAME "vcredist_x64.exe"
Section "${REDIST_NAME}" SEC_CRT2013
SectionIn RO
ClearErrors
ReadRegDword $R0 HKLM "SOFTWARE\Wow6432Node\Microsoft\VisualStudio\12.0\VC\Runtimes\x64" "Installed"
IfErrors 0 +2
DetailPrint "Installing ${REDIST_NAME}..."
StrCmp $R0 "1" 0 +3
DetailPrint "${REDIST_NAME} is already installed. Skipping."
Goto done
SetOutPath "$TEMP"
DetailPrint "Downloading ${REDIST_NAME} Setup..."
NSISdl::download /TIMEOUT=15000 "http://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x64.exe" "${REDIST_SETUP_FILENAME}"
Pop $R0 ;Get the return value
StrCmp $R0 "success" OnSuccess
Pop $R0 ;Get the return value
StrCmp $R0 "success" +2
MessageBox MB_OK "Could not download ${REDIST_NAME} Setup."
Goto done
OnSuccess:
DetailPrint "Running ${REDIST_NAME} Setup..."
ExecWait '"$TEMP\${REDIST_SETUP_FILENAME}" /q /norestart'
DetailPrint "Finished ${REDIST_NAME} Setup"
Delete "$TEMP\${REDIST_SETUP_FILENAME}"
done:
SectionEnd
;Inspired by PCSX2's Web Installer Script
!define REDIST_NAME "Visual C++ 2013 Redistributable"
!define REDIST_SETUP_FILENAME "vcredist_x64.exe"
Section "${REDIST_NAME}" SEC_CRT2013
SectionIn RO
ClearErrors
ReadRegDword $R0 HKLM "SOFTWARE\Wow6432Node\Microsoft\VisualStudio\12.0\VC\Runtimes\x64" "Installed"
IfErrors 0 +2
DetailPrint "Installing ${REDIST_NAME}..."
StrCmp $R0 "1" 0 +3
DetailPrint "${REDIST_NAME} is already installed. Skipping."
Goto done
SetOutPath "$TEMP"
DetailPrint "Downloading ${REDIST_NAME} Setup..."
NSISdl::download /TIMEOUT=15000 "http://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x64.exe" "${REDIST_SETUP_FILENAME}"
Pop $R0 ;Get the return value
StrCmp $R0 "success" OnSuccess
Pop $R0 ;Get the return value
StrCmp $R0 "success" +2
MessageBox MB_OK "Could not download ${REDIST_NAME} Setup."
Goto done
OnSuccess:
DetailPrint "Running ${REDIST_NAME} Setup..."
ExecWait '"$TEMP\${REDIST_SETUP_FILENAME}" /q /norestart'
DetailPrint "Finished ${REDIST_NAME} Setup"
Delete "$TEMP\${REDIST_SETUP_FILENAME}"
done:
SectionEnd

View file

@ -1,39 +1,39 @@
;Inspired by PCSX2's Web Installer Script
!define REDIST_NAME "Visual C++ 2013 Redistributable"
!define REDIST_SETUP_FILENAME "vcredist_x86.exe"
Section "${REDIST_NAME}" SEC_CRT2013
SectionIn RO
ClearErrors
ReadRegDword $R0 HKLM "SOFTWARE\Microsoft\VisualStudio\12.0\VC\Runtimes\x86" "Installed"
IfErrors 0 +2
DetailPrint "Installing ${REDIST_NAME}..."
StrCmp $R0 "1" 0 +3
DetailPrint "${REDIST_NAME} is already installed. Skipping."
Goto done
SetOutPath "$TEMP"
DetailPrint "Downloading ${REDIST_NAME} Setup..."
NSISdl::download /TIMEOUT=15000 "http://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x86.exe" "${REDIST_SETUP_FILENAME}"
Pop $R0 ;Get the return value
StrCmp $R0 "success" OnSuccess
Pop $R0 ;Get the return value
StrCmp $R0 "success" +2
MessageBox MB_OK "Could not download ${REDIST_NAME} Setup."
Goto done
OnSuccess:
DetailPrint "Running ${REDIST_NAME} Setup..."
ExecWait '"$TEMP\${REDIST_SETUP_FILENAME}" /q /norestart'
DetailPrint "Finished ${REDIST_NAME} Setup"
Delete "$TEMP\${REDIST_SETUP_FILENAME}"
done:
SectionEnd
;Inspired by PCSX2's Web Installer Script
!define REDIST_NAME "Visual C++ 2013 Redistributable"
!define REDIST_SETUP_FILENAME "vcredist_x86.exe"
Section "${REDIST_NAME}" SEC_CRT2013
SectionIn RO
ClearErrors
ReadRegDword $R0 HKLM "SOFTWARE\Microsoft\VisualStudio\12.0\VC\Runtimes\x86" "Installed"
IfErrors 0 +2
DetailPrint "Installing ${REDIST_NAME}..."
StrCmp $R0 "1" 0 +3
DetailPrint "${REDIST_NAME} is already installed. Skipping."
Goto done
SetOutPath "$TEMP"
DetailPrint "Downloading ${REDIST_NAME} Setup..."
NSISdl::download /TIMEOUT=15000 "http://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x86.exe" "${REDIST_SETUP_FILENAME}"
Pop $R0 ;Get the return value
StrCmp $R0 "success" OnSuccess
Pop $R0 ;Get the return value
StrCmp $R0 "success" +2
MessageBox MB_OK "Could not download ${REDIST_NAME} Setup."
Goto done
OnSuccess:
DetailPrint "Running ${REDIST_NAME} Setup..."
ExecWait '"$TEMP\${REDIST_SETUP_FILENAME}" /q /norestart'
DetailPrint "Finished ${REDIST_NAME} Setup"
Delete "$TEMP\${REDIST_SETUP_FILENAME}"
done:
SectionEnd

View file

@ -1,124 +1,124 @@
!include "MUI2.nsh"
!searchparse /file ../Source/AppDef.h '#define APP_VERSIONSTR _T("' APP_VERSION '")'
; The name of the installer
Name "PsfPlayer v${APP_VERSION}"
; The file to write
OutFile "PsfPlayer-${APP_VERSION}-32.exe"
; The default installation directory
InstallDir $PROGRAMFILES\PsfPlayer
; Registry key to check for directory (so if you install again, it will
; overwrite the old one automatically)
InstallDirRegKey HKLM "Software\NSIS_PsfPlayer" "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
;--------------------------------
!define REG_UNINSTALL "Software\Microsoft\Windows\CurrentVersion\Uninstall\PsfPlayer"
; The stuff to install
Section "PsfPlayer (required)"
SectionIn RO
; Set output path to the installation directory.
SetOutPath $INSTDIR
; Put file there
File "..\build_win32\Win32\Release\PsfPlayer.exe"
File "..\build_win32\Win32\Release\SH_WaveOut.dll"
File "..\build_win32\Win32\Release\SH_OpenAL.dll"
File "..\build_win32\Win32\Release\SH_XAudio2.dll"
File "..\build_win32\Win32\Release\TDEmu.dll"
File "..\changelog.html"
; Write the installation path into the registry
WriteRegStr HKLM SOFTWARE\NSIS_PsfPlayer "Install_Dir" "$INSTDIR"
; Write the uninstall keys for Windows
WriteRegStr HKLM "${REG_UNINSTALL}" "DisplayName" "PsfPlayer"
WriteRegStr HKLM "${REG_UNINSTALL}" "UninstallString" '"$INSTDIR\uninstall.exe"'
WriteRegDWORD HKLM "${REG_UNINSTALL}" "NoModify" 1
WriteRegDWORD HKLM "${REG_UNINSTALL}" "NoRepair" 1
WriteRegStr HKLM "${REG_UNINSTALL}" "DisplayIcon" '"$INSTDIR\PsfPlayer.exe"'
WriteRegStr HKLM "${REG_UNINSTALL}" "DisplayVersion" "${APP_VERSION}"
WriteUninstaller "uninstall.exe"
SectionEnd
!include "vcredist2013_x86.nsh"
; Optional section (can be disabled by the user)
Section "Start Menu Shortcuts"
CreateDirectory "$SMPROGRAMS\PsfPlayer"
CreateShortCut "$SMPROGRAMS\PsfPlayer\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
CreateShortCut "$SMPROGRAMS\PsfPlayer\PsfPlayer.lnk" "$INSTDIR\PsfPlayer.exe" "" "$INSTDIR\PsfPlayer.exe" 0
CreateShortCut "$SMPROGRAMS\PsfPlayer\changelog.html.lnk" "$INSTDIR\changelog.html" "" "$INSTDIR\changelog.html" 0
SectionEnd
;--------------------------------
; Uninstaller
Section "Uninstall"
; Remove registry keys
DeleteRegKey HKLM "${REG_UNINSTALL}"
DeleteRegKey HKLM SOFTWARE\NSIS_PsfPlayer
; Remove files and uninstaller
Delete $INSTDIR\PsfPlayer.exe
Delete $INSTDIR\SH_WaveOut.dll
Delete $INSTDIR\SH_OpenAL.dll
Delete $INSTDIR\SH_XAudio2.dll
Delete $INSTDIR\TDEmu.dll
Delete $INSTDIR\changelog.html
Delete $INSTDIR\uninstall.exe
; Remove shortcuts, if any
Delete "$SMPROGRAMS\PsfPlayer\*.*"
; Remove directories used
RMDir "$SMPROGRAMS\PsfPlayer"
RMDir "$INSTDIR"
SectionEnd
!include "MUI2.nsh"
!searchparse /file ../Source/AppDef.h '#define APP_VERSIONSTR _T("' APP_VERSION '")'
; The name of the installer
Name "PsfPlayer v${APP_VERSION}"
; The file to write
OutFile "PsfPlayer-${APP_VERSION}-32.exe"
; The default installation directory
InstallDir $PROGRAMFILES\PsfPlayer
; Registry key to check for directory (so if you install again, it will
; overwrite the old one automatically)
InstallDirRegKey HKLM "Software\NSIS_PsfPlayer" "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
;--------------------------------
!define REG_UNINSTALL "Software\Microsoft\Windows\CurrentVersion\Uninstall\PsfPlayer"
; The stuff to install
Section "PsfPlayer (required)"
SectionIn RO
; Set output path to the installation directory.
SetOutPath $INSTDIR
; Put file there
File "..\build_win32\Win32\Release\PsfPlayer.exe"
File "..\build_win32\Win32\Release\SH_WaveOut.dll"
File "..\build_win32\Win32\Release\SH_OpenAL.dll"
File "..\build_win32\Win32\Release\SH_XAudio2.dll"
File "..\build_win32\Win32\Release\TDEmu.dll"
File "..\changelog.html"
; Write the installation path into the registry
WriteRegStr HKLM SOFTWARE\NSIS_PsfPlayer "Install_Dir" "$INSTDIR"
; Write the uninstall keys for Windows
WriteRegStr HKLM "${REG_UNINSTALL}" "DisplayName" "PsfPlayer"
WriteRegStr HKLM "${REG_UNINSTALL}" "UninstallString" '"$INSTDIR\uninstall.exe"'
WriteRegDWORD HKLM "${REG_UNINSTALL}" "NoModify" 1
WriteRegDWORD HKLM "${REG_UNINSTALL}" "NoRepair" 1
WriteRegStr HKLM "${REG_UNINSTALL}" "DisplayIcon" '"$INSTDIR\PsfPlayer.exe"'
WriteRegStr HKLM "${REG_UNINSTALL}" "DisplayVersion" "${APP_VERSION}"
WriteUninstaller "uninstall.exe"
SectionEnd
!include "..\..\..\installer_win32\vcredist2013_x86.nsh"
; Optional section (can be disabled by the user)
Section "Start Menu Shortcuts"
CreateDirectory "$SMPROGRAMS\PsfPlayer"
CreateShortCut "$SMPROGRAMS\PsfPlayer\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
CreateShortCut "$SMPROGRAMS\PsfPlayer\PsfPlayer.lnk" "$INSTDIR\PsfPlayer.exe" "" "$INSTDIR\PsfPlayer.exe" 0
CreateShortCut "$SMPROGRAMS\PsfPlayer\changelog.html.lnk" "$INSTDIR\changelog.html" "" "$INSTDIR\changelog.html" 0
SectionEnd
;--------------------------------
; Uninstaller
Section "Uninstall"
; Remove registry keys
DeleteRegKey HKLM "${REG_UNINSTALL}"
DeleteRegKey HKLM SOFTWARE\NSIS_PsfPlayer
; Remove files and uninstaller
Delete $INSTDIR\PsfPlayer.exe
Delete $INSTDIR\SH_WaveOut.dll
Delete $INSTDIR\SH_OpenAL.dll
Delete $INSTDIR\SH_XAudio2.dll
Delete $INSTDIR\TDEmu.dll
Delete $INSTDIR\changelog.html
Delete $INSTDIR\uninstall.exe
; Remove shortcuts, if any
Delete "$SMPROGRAMS\PsfPlayer\*.*"
; Remove directories used
RMDir "$SMPROGRAMS\PsfPlayer"
RMDir "$INSTDIR"
SectionEnd

View file

@ -1,137 +1,137 @@
!include "MUI2.nsh"
!include "x64.nsh"
!searchparse /file ../Source/AppDef.h '#define APP_VERSIONSTR _T("' APP_VERSION '")'
; The name of the installer
Name "PsfPlayer v${APP_VERSION}"
; The file to write
OutFile "PsfPlayer-${APP_VERSION}-64.exe"
; The default installation directory
InstallDir $PROGRAMFILES64\PsfPlayer
; Registry key to check for directory (so if you install again, it will
; overwrite the old one automatically)
InstallDirRegKey HKLM "Software\NSIS_PsfPlayer" "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
;--------------------------------
!define REG_UNINSTALL "Software\Microsoft\Windows\CurrentVersion\Uninstall\PsfPlayer"
; The stuff to install
Section "PsfPlayer (required)"
SectionIn RO
; Set output path to the installation directory.
SetOutPath $INSTDIR
; Put file there
File "..\build_win32\x64\Release\PsfPlayer.exe"
File "..\build_win32\x64\Release\SH_WaveOut.dll"
File "..\build_win32\x64\Release\SH_OpenAL.dll"
File "..\build_win32\x64\Release\SH_XAudio2.dll"
File "..\build_win32\x64\Release\TDEmu64.dll"
File "..\changelog.html"
; Write the installation path into the registry
WriteRegStr HKLM SOFTWARE\NSIS_PsfPlayer "Install_Dir" "$INSTDIR"
; Write the uninstall keys for Windows
WriteRegStr HKLM "${REG_UNINSTALL}" "DisplayName" "PsfPlayer"
WriteRegStr HKLM "${REG_UNINSTALL}" "UninstallString" '"$INSTDIR\uninstall.exe"'
WriteRegDWORD HKLM "${REG_UNINSTALL}" "NoModify" 1
WriteRegDWORD HKLM "${REG_UNINSTALL}" "NoRepair" 1
WriteRegStr HKLM "${REG_UNINSTALL}" "DisplayIcon" '"$INSTDIR\PsfPlayer.exe"'
WriteRegStr HKLM "${REG_UNINSTALL}" "DisplayVersion" "${APP_VERSION}"
WriteUninstaller "uninstall.exe"
SectionEnd
!include "vcredist2013_x64.nsh"
; Optional section (can be disabled by the user)
Section "Start Menu Shortcuts"
CreateDirectory "$SMPROGRAMS\PsfPlayer"
CreateShortCut "$SMPROGRAMS\PsfPlayer\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
CreateShortCut "$SMPROGRAMS\PsfPlayer\PsfPlayer.lnk" "$INSTDIR\PsfPlayer.exe" "" "$INSTDIR\PsfPlayer.exe" 0
CreateShortCut "$SMPROGRAMS\PsfPlayer\changelog.html.lnk" "$INSTDIR\changelog.html" "" "$INSTDIR\changelog.html" 0
SectionEnd
;--------------------------------
; Uninstaller
Section "Uninstall"
SetRegView 64
; Remove registry keys
DeleteRegKey HKLM "${REG_UNINSTALL}"
DeleteRegKey HKLM SOFTWARE\NSIS_PsfPlayer
; Remove files and uninstaller
Delete $INSTDIR\PsfPlayer.exe
Delete $INSTDIR\SH_WaveOut.dll
Delete $INSTDIR\SH_OpenAL.dll
Delete $INSTDIR\SH_XAudio2.dll
Delete $INSTDIR\TDEmu64.dll
Delete $INSTDIR\changelog.html
Delete $INSTDIR\uninstall.exe
; Remove shortcuts, if any
Delete "$SMPROGRAMS\PsfPlayer\*.*"
; Remove directories used
RMDir "$SMPROGRAMS\PsfPlayer"
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
!include "MUI2.nsh"
!include "x64.nsh"
!searchparse /file ../Source/AppDef.h '#define APP_VERSIONSTR _T("' APP_VERSION '")'
; The name of the installer
Name "PsfPlayer v${APP_VERSION}"
; The file to write
OutFile "PsfPlayer-${APP_VERSION}-64.exe"
; The default installation directory
InstallDir $PROGRAMFILES64\PsfPlayer
; Registry key to check for directory (so if you install again, it will
; overwrite the old one automatically)
InstallDirRegKey HKLM "Software\NSIS_PsfPlayer" "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
;--------------------------------
!define REG_UNINSTALL "Software\Microsoft\Windows\CurrentVersion\Uninstall\PsfPlayer"
; The stuff to install
Section "PsfPlayer (required)"
SectionIn RO
; Set output path to the installation directory.
SetOutPath $INSTDIR
; Put file there
File "..\build_win32\x64\Release\PsfPlayer.exe"
File "..\build_win32\x64\Release\SH_WaveOut.dll"
File "..\build_win32\x64\Release\SH_OpenAL.dll"
File "..\build_win32\x64\Release\SH_XAudio2.dll"
File "..\build_win32\x64\Release\TDEmu64.dll"
File "..\changelog.html"
; Write the installation path into the registry
WriteRegStr HKLM SOFTWARE\NSIS_PsfPlayer "Install_Dir" "$INSTDIR"
; Write the uninstall keys for Windows
WriteRegStr HKLM "${REG_UNINSTALL}" "DisplayName" "PsfPlayer"
WriteRegStr HKLM "${REG_UNINSTALL}" "UninstallString" '"$INSTDIR\uninstall.exe"'
WriteRegDWORD HKLM "${REG_UNINSTALL}" "NoModify" 1
WriteRegDWORD HKLM "${REG_UNINSTALL}" "NoRepair" 1
WriteRegStr HKLM "${REG_UNINSTALL}" "DisplayIcon" '"$INSTDIR\PsfPlayer.exe"'
WriteRegStr HKLM "${REG_UNINSTALL}" "DisplayVersion" "${APP_VERSION}"
WriteUninstaller "uninstall.exe"
SectionEnd
!include "..\..\..\installer_win32\vcredist2013_x64.nsh"
; Optional section (can be disabled by the user)
Section "Start Menu Shortcuts"
CreateDirectory "$SMPROGRAMS\PsfPlayer"
CreateShortCut "$SMPROGRAMS\PsfPlayer\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
CreateShortCut "$SMPROGRAMS\PsfPlayer\PsfPlayer.lnk" "$INSTDIR\PsfPlayer.exe" "" "$INSTDIR\PsfPlayer.exe" 0
CreateShortCut "$SMPROGRAMS\PsfPlayer\changelog.html.lnk" "$INSTDIR\changelog.html" "" "$INSTDIR\changelog.html" 0
SectionEnd
;--------------------------------
; Uninstaller
Section "Uninstall"
SetRegView 64
; Remove registry keys
DeleteRegKey HKLM "${REG_UNINSTALL}"
DeleteRegKey HKLM SOFTWARE\NSIS_PsfPlayer
; Remove files and uninstaller
Delete $INSTDIR\PsfPlayer.exe
Delete $INSTDIR\SH_WaveOut.dll
Delete $INSTDIR\SH_OpenAL.dll
Delete $INSTDIR\SH_XAudio2.dll
Delete $INSTDIR\TDEmu64.dll
Delete $INSTDIR\changelog.html
Delete $INSTDIR\uninstall.exe
; Remove shortcuts, if any
Delete "$SMPROGRAMS\PsfPlayer\*.*"
; Remove directories used
RMDir "$SMPROGRAMS\PsfPlayer"
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