Mercurial > pidgin.yaz
comparison pidgin/win32/nsis/pidgin-installer.nsi @ 23982:f6b47af95252
Don't select the GTK+ checkbox if the current version or a new er version is
already installed.
Fixes #6942.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Thu, 04 Sep 2008 02:10:15 +0000 |
parents | 11d6c66ad001 |
children | 7be4d472761a |
comparison
equal
deleted
inserted
replaced
23981:11d6c66ad001 | 23982:f6b47af95252 |
---|---|
1414 | 1414 |
1415 !else | 1415 !else |
1416 Push $R1 | 1416 Push $R1 |
1417 Push $R2 | 1417 Push $R2 |
1418 | 1418 |
1419 ; Make the GTK+ Section RO if it is required. | |
1420 Call DoWeNeedGtk | 1419 Call DoWeNeedGtk |
1421 Pop $R0 | 1420 Pop $R0 |
1422 Pop $R2 | 1421 Pop $R2 |
1423 IntCmp $R0 1 gtk_not_mandatory gtk_not_mandatory | 1422 IntCmp $R0 1 gtk_selection_done gtk_not_mandatory |
1423 ; Make the GTK+ Section RO if it is required. | |
1424 !insertmacro SetSectionFlag ${SecGtk} ${SF_RO} | 1424 !insertmacro SetSectionFlag ${SecGtk} ${SF_RO} |
1425 Goto gtk_selection_done | |
1425 gtk_not_mandatory: | 1426 gtk_not_mandatory: |
1427 ; Don't select the GTK+ section if we already have this version or newer installed | |
1428 !insertmacro UnselectSection ${SecGtk} | |
1429 gtk_selection_done: | |
1426 | 1430 |
1427 ; If on Win95/98/ME warn them that the GTK+ version wont work | 1431 ; If on Win95/98/ME warn them that the GTK+ version wont work |
1428 ${Unless} ${IsNT} | 1432 ${Unless} ${IsNT} |
1429 !insertmacro UnselectSection ${SecGtk} | 1433 !insertmacro UnselectSection ${SecGtk} |
1430 !insertmacro SetSectionFlag ${SecGtk} ${SF_RO} | 1434 !insertmacro SetSectionFlag ${SecGtk} ${SF_RO} |