OSDN Git Service

Make sure the language selection dialog is shown on systems that don't use UAC (like...
authorlordmulder <mulder2@gmx.de>
Mon, 28 Mar 2011 02:25:06 +0000 (04:25 +0200)
committerlordmulder <mulder2@gmx.de>
Mon, 28 Mar 2011 02:25:06 +0000 (04:25 +0200)
etc/NSIS/setup.nsi

index 0a7ae36..9a327a5 100644 (file)
@@ -251,6 +251,8 @@ UninstPage Custom un.LockedListShow
 Function .onInit
        ${If} ${UAC_IsInnerInstance}
                !insertmacro MUI_LANGDLL_DISPLAY
+       ${ElseIf} ${UAC_IsAdmin}
+               !insertmacro MUI_LANGDLL_DISPLAY
        ${Else}
                System::Call 'kernel32::CreateMutexA(i 0, i 0, t "{2B3D1EBF-B3B6-4E93-92B9-6853029A7162}") i .r1 ?e'
                Pop $0
@@ -276,6 +278,8 @@ FunctionEnd
 Function un.onInit
        ${If} ${UAC_IsInnerInstance}
                !insertmacro MUI_LANGDLL_DISPLAY
+       ${ElseIf} ${UAC_IsAdmin}
+               !insertmacro MUI_LANGDLL_DISPLAY
        ${Else}
                System::Call 'kernel32::CreateMutexA(i 0, i 0, t "{2B3D1EBF-B3B6-4E93-92B9-6853029A7162}") i .r1 ?e'
                Pop $0
@@ -313,9 +317,10 @@ Function MyUacInit
        
        !ifdef LAMEXP_IS_PRERELEASE
                !insertmacro GetCommandlineParameter "Update" "?" $R0
-               StrCmp $R0 "?" 0 +3
+               StrCmp $R0 "?" 0 SkipPrereleaseWarning
                MessageBox MB_TOPMOST|MB_ICONEXCLAMATION|MB_OKCANCEL "$(LAMEXP_LANG_PRERELEASE_WARNING)" /SD IDOK IDOK +2
                Abort
+               SkipPrereleaseWarning:
        !endif
 FunctionEnd