mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Installer: Made SSE a requirement
This commit is contained in:
parent
4591a969a6
commit
39b9832540
@ -134,6 +134,15 @@ Function .onInit
|
|||||||
Quit
|
Quit
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
|
System::Call 'kernel32::IsProcessorFeaturePresent(i${PF_XMMI_INSTRUCTIONS_AVAILABLE})i.r0'
|
||||||
|
${If} $0 == 0
|
||||||
|
${IfNot} ${Silent}
|
||||||
|
MessageBox MB_OK|MB_ICONSTOP "A Pentium III or later processor is required to install Rainmeter ${VER}."
|
||||||
|
${EndIf}
|
||||||
|
SetErrorLevel ${ERROR_UNSUPPORTED}
|
||||||
|
Quit
|
||||||
|
${EndIf}
|
||||||
|
|
||||||
ReadRegStr $0 HKLM "SOFTWARE\Rainmeter" "Language"
|
ReadRegStr $0 HKLM "SOFTWARE\Rainmeter" "Language"
|
||||||
ReadRegDWORD $NonDefaultLanguage HKLM "SOFTWARE\Rainmeter" "NonDefault"
|
ReadRegDWORD $NonDefaultLanguage HKLM "SOFTWARE\Rainmeter" "NonDefault"
|
||||||
|
|
||||||
@ -720,19 +729,14 @@ Section
|
|||||||
StrCpy $R4 "0"
|
StrCpy $R4 "0"
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
System::Call 'kernel32::IsProcessorFeaturePresent(i${PF_XMMI_INSTRUCTIONS_AVAILABLE})i.r5'
|
System::Call 'kernel32::IsProcessorFeaturePresent(i${PF_XMMI64_INSTRUCTIONS_AVAILABLE})i.r6'
|
||||||
${If} $5 != 0
|
${If} $6 != 0
|
||||||
StrCpy $R5 "1"
|
StrCpy $R5 "1"
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
System::Call 'kernel32::IsProcessorFeaturePresent(i${PF_XMMI64_INSTRUCTIONS_AVAILABLE})i.r6'
|
System::Call 'kernel32::GetUserDefaultUILanguage() i.R6'
|
||||||
${If} $6 != 0
|
|
||||||
StrCpy $R6 "1"
|
|
||||||
${EndIf}
|
|
||||||
|
|
||||||
System::Call 'kernel32::GetUserDefaultUILanguage() i.R7'
|
NSISdl::download_quiet /TIMEOUT=30000 "http://rainmeter.net/stat/${VER}.php?id=$R0&vmj=$R1&vmi=$R2&vsp=$R3&d2d=$R4&sse2=$R5&uilang=$R6&lang=$LANGUAGE" "$PLUGINSDIR\_"
|
||||||
|
|
||||||
NSISdl::download_quiet /TIMEOUT=30000 "http://rainmeter.net/stat/${VER}.php?id=$R0&vmj=$R1&vmi=$R2&vsp=$R3&d2d=$R4&sse=$R5&sse2=$R6&uilang=$R7&lang=$LANGUAGE" "$PLUGINSDIR\_"
|
|
||||||
Delete "$PLUGINSDIR\_"
|
Delete "$PLUGINSDIR\_"
|
||||||
${EndIf}
|
${EndIf}
|
||||||
!endif
|
!endif
|
||||||
|
Loading…
Reference in New Issue
Block a user