Installer: Don't show service pack message twice on UAC-enabled systems.

This commit is contained in:
LoRd_MuldeR 2011-08-27 14:53:44 +02:00
parent 8faa0949bd
commit 1dc6a81916

View File

@ -257,8 +257,7 @@ UninstPage Custom un.LockedListShow
Function .onInit Function .onInit
${If} ${UAC_IsInnerInstance} ${If} ${UAC_IsInnerInstance}
!insertmacro MUI_LANGDLL_DISPLAY ${OrIf} ${UAC_IsAdmin}
${ElseIf} ${UAC_IsAdmin}
!insertmacro MUI_LANGDLL_DISPLAY !insertmacro MUI_LANGDLL_DISPLAY
${Else} ${Else}
System::Call 'kernel32::CreateMutexA(i 0, i 0, t "{2B3D1EBF-B3B6-4E93-92B9-6853029A7162}") i .r1 ?e' System::Call 'kernel32::CreateMutexA(i 0, i 0, t "{2B3D1EBF-B3B6-4E93-92B9-6853029A7162}") i .r1 ?e'
@ -283,29 +282,32 @@ Function .onInit
Quit Quit
${EndIf} ${EndIf}
${If} ${IsWin2000} ${If} ${UAC_IsInnerInstance}
${AndIf} ${AtMostServicePack} 3 ${OrIf} ${UAC_IsAdmin}
MessageBox MB_TOPMOST|MB_ICONEXCLAMATION "This application requires the Service Pack 4 for Windows 2000!" ${If} ${IsWin2000}
MessageBox MB_TOPMOST|MB_ICONQUESTION|MB_YESNO "Do you want to download Service Pack 4 for Windows 2000 now?" IDNO +2 ${AndIf} ${AtMostServicePack} 3
ExecShell "open" "http://www.microsoft.com/download/en/details.aspx?id=4127" MessageBox MB_TOPMOST|MB_ICONEXCLAMATION "This application requires the Service Pack 4 for Windows 2000!"
${EndIf} MessageBox MB_TOPMOST|MB_ICONQUESTION|MB_YESNO "Do you want to download Service Pack 4 for Windows 2000 now?" IDNO +2
${If} ${IsWinXP} ExecShell "open" "http://www.microsoft.com/download/en/details.aspx?id=4127"
${AndIf} ${AtMostServicePack} 2 ${EndIf}
MessageBox MB_TOPMOST|MB_ICONEXCLAMATION "This application requires the Service Pack 3 for Windows XP!" ${If} ${IsWinXP}
MessageBox MB_TOPMOST|MB_ICONQUESTION|MB_YESNO "Do you want to download Service Pack 3 for Windows XP now?" IDNO +2 ${AndIf} ${AtMostServicePack} 2
ExecShell "open" "http://technet.microsoft.com/en-us/windows/bb794714" MessageBox MB_TOPMOST|MB_ICONEXCLAMATION "This application requires the Service Pack 3 for Windows XP!"
${EndIf} MessageBox MB_TOPMOST|MB_ICONQUESTION|MB_YESNO "Do you want to download Service Pack 3 for Windows XP now?" IDNO +2
${If} ${IsWinVista} ExecShell "open" "http://technet.microsoft.com/en-us/windows/bb794714"
${AndIf} ${AtMostServicePack} 1 ${EndIf}
MessageBox MB_TOPMOST|MB_ICONEXCLAMATION "This application requires the Service Pack 2 for Windows Vista!" ${If} ${IsWinVista}
MessageBox MB_TOPMOST|MB_ICONQUESTION|MB_YESNO "Do you want to download Service Pack 2 for Windows Vista now?" IDNO +2 ${AndIf} ${AtMostServicePack} 1
ExecShell "open" "http://technet.microsoft.com/en-us/windows/dd262148" MessageBox MB_TOPMOST|MB_ICONEXCLAMATION "This application requires the Service Pack 2 for Windows Vista!"
${EndIf} MessageBox MB_TOPMOST|MB_ICONQUESTION|MB_YESNO "Do you want to download Service Pack 2 for Windows Vista now?" IDNO +2
${If} ${IsWin7} ExecShell "open" "http://technet.microsoft.com/en-us/windows/dd262148"
${AndIf} ${AtMostServicePack} 0 ${EndIf}
MessageBox MB_TOPMOST|MB_ICONEXCLAMATION "This application requires the Service Pack 1 for Windows 7!" ${If} ${IsWin7}
MessageBox MB_TOPMOST|MB_ICONQUESTION|MB_YESNO "Do you want to download Service Pack 1 for Windows 7 now?" IDNO +2 ${AndIf} ${AtMostServicePack} 0
ExecShell "open" "http://technet.microsoft.com/en-us/windows/gg635126" MessageBox MB_TOPMOST|MB_ICONEXCLAMATION "This application requires the Service Pack 1 for Windows 7!"
MessageBox MB_TOPMOST|MB_ICONQUESTION|MB_YESNO "Do you want to download Service Pack 1 for Windows 7 now?" IDNO +2
ExecShell "open" "http://technet.microsoft.com/en-us/windows/gg635126"
${EndIf}
${EndIf} ${EndIf}
InitPluginsDir InitPluginsDir