!include WordFunc.nsh\r
!insertmacro VersionCompare\r
!include LogicLib.nsh\r
+!include x64.nsh\r
\r
InstallDir "$PROGRAMFILES64\HandBrake"\r
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""\r
Quit\r
${EndIf}\r
\r
+ ${IfNot} ${RunningX64}\r
+ MessageBox MB_OK "HandBrake requires a 64bit version of Windows 7 SP1 or later to install. Your system has a 32bit version of Windows."\r
+ Quit\r
+ ${EndIf}\r
+\r
;Remove previous version\r
ReadRegStr $R0 HKLM \\r
"Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}\" \\r
Call CheckFramework\r
StrCmp $0 "1" +3\r
StrCpy $InstallDotNET "Yes"\r
- MessageBox MB_OK|MB_ICONINFORMATION "${PRODUCT_NAME} requires that the Microsoft .NET Framework 4.6 Client Profile is installed. The latest .NET Framework will be downloaded and installed automatically during installation of ${PRODUCT_NAME}." /SD IDOK\r
+ MessageBox MB_OK|MB_ICONINFORMATION "${PRODUCT_NAME} requires that the Microsoft .NET Framework 4.6.2 is installed. The latest .NET Framework will be downloaded and installed automatically during installation of ${PRODUCT_NAME}." /SD IDOK\r
Pop $0\r
\r
; Get .NET if required\r
${If} $InstallDotNET == "Yes"\r
SetDetailsView hide\r
- inetc::get /caption "Downloading Microsoft .NET Framework 4.6" /canceltext "Cancel" "https://www.microsoft.com/en-us/download/confirmation.aspx?id=49982" "$INSTDIR\dotnetfx.exe" /end\r
+ inetc::get /caption "Downloading Microsoft .NET Framework 4.6.2" /canceltext "Cancel" "https://www.microsoft.com/en-us/download/confirmation.aspx?id=53344" "$INSTDIR\dotnetfx.exe" /end\r
Pop $1\r
\r
${If} $1 != "OK"\r
Delete "$INSTDIR\dotnetfx.exe"\r
- Abort "Installation cancelled, ${PRODUCT_NAME} requires the Microsoft .NET 4.6 Framework"\r
+ Abort "Installation cancelled, ${PRODUCT_NAME} requires the Microsoft .NET 4.6.2 Framework"\r
${EndIf}\r
\r
ExecWait "$INSTDIR\dotnetfx.exe"\r
!include WordFunc.nsh\r
!insertmacro VersionCompare\r
!include LogicLib.nsh\r
+!include x64.nsh\r
\r
InstallDir "$PROGRAMFILES64\HandBrake Nightly"\r
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""\r
Quit\r
${EndIf}\r
\r
+ ${IfNot} ${RunningX64}\r
+ MessageBox MB_OK "HandBrake requires a 64bit version of Windows 7 SP1 or later to install. Your system has a 32bit version of Windows."\r
+ Quit\r
+ ${EndIf}\r
+\r
;Remove previous version\r
ReadRegStr $R0 HKLM \\r
"Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}\" \\r
Call CheckFramework\r
StrCmp $0 "1" +3\r
StrCpy $InstallDotNET "Yes"\r
- MessageBox MB_OK|MB_ICONINFORMATION "${PRODUCT_NAME} requires that the Microsoft .NET Framework 4.6 is installed. The latest .NET Framework will be downloaded and installed automatically during installation of ${PRODUCT_NAME}." /SD IDOK\r
+ MessageBox MB_OK|MB_ICONINFORMATION "${PRODUCT_NAME} requires that the Microsoft .NET Framework 4.6.2 is installed. The latest .NET Framework will be downloaded and installed automatically during installation of ${PRODUCT_NAME}." /SD IDOK\r
Pop $0\r
\r
; Get .NET if required\r
${If} $InstallDotNET == "Yes"\r
SetDetailsView hide\r
- inetc::get /caption "Downloading Microsoft .NET Framework 4.6" /canceltext "Cancel" "https://www.microsoft.com/en-us/download/confirmation.aspx?id=49982" "$INSTDIR\dotnetfx.exe" /end\r
+ inetc::get /caption "Downloading Microsoft .NET Framework 4.6.2" /canceltext "Cancel" "https://www.microsoft.com/en-us/download/confirmation.aspx?id=53344" "$INSTDIR\dotnetfx.exe" /end\r
Pop $1\r
\r
${If} $1 != "OK"\r
Delete "$INSTDIR\dotnetfx.exe"\r
- Abort "Installation cancelled, ${PRODUCT_NAME} requires the Microsoft .NET 4.6 Framework"\r
+ Abort "Installation cancelled, ${PRODUCT_NAME} requires the Microsoft .NET 4.6.2 Framework"\r
${EndIf}\r
\r
ExecWait "$INSTDIR\dotnetfx.exe"\r