comparison gaim-installer.nsi @ 7600:f48c6e4db102

[gaim-migrate @ 8222] Last minute 0.73 changes committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Sat, 22 Nov 2003 18:54:36 +0000
parents df5f8c339c38
children 2fb83607becf
comparison
equal deleted inserted replaced
7599:c3fb280f5ad2 7600:f48c6e4db102
84 !define MUI_FINISHPAGE_LINK_LOCATION "http://gaim.sourceforge.net/win32" 84 !define MUI_FINISHPAGE_LINK_LOCATION "http://gaim.sourceforge.net/win32"
85 85
86 ;-------------------------------- 86 ;--------------------------------
87 ;Pages 87 ;Pages
88 88
89 !define MUI_PAGE_CUSTOMFUNCTION_PRE preWelcomePage
89 !insertmacro MUI_PAGE_WELCOME 90 !insertmacro MUI_PAGE_WELCOME
90 !insertmacro MUI_PAGE_LICENSE "./COPYING" 91 !insertmacro MUI_PAGE_LICENSE "./COPYING"
91 !insertmacro MUI_PAGE_COMPONENTS 92 !insertmacro MUI_PAGE_COMPONENTS
92 93
93 !ifdef WITH_GTK 94 !ifdef WITH_GTK
539 Delete "$INSTDIR\plugins\libmsn.dll" 540 Delete "$INSTDIR\plugins\libmsn.dll"
540 Delete "$INSTDIR\plugins\liboscar.dll" 541 Delete "$INSTDIR\plugins\liboscar.dll"
541 Delete "$INSTDIR\plugins\libtoc.dll" 542 Delete "$INSTDIR\plugins\libtoc.dll"
542 Delete "$INSTDIR\plugins\libyahoo.dll" 543 Delete "$INSTDIR\plugins\libyahoo.dll"
543 Delete "$INSTDIR\plugins\perl.dll" 544 Delete "$INSTDIR\plugins\perl.dll"
545 Delete "$INSTDIR\plugins\relnot.dll"
544 Delete "$INSTDIR\plugins\spellchk.dll" 546 Delete "$INSTDIR\plugins\spellchk.dll"
545 Delete "$INSTDIR\plugins\ssl-nss.dll" 547 Delete "$INSTDIR\plugins\ssl-nss.dll"
546 Delete "$INSTDIR\plugins\ssl.dll" 548 Delete "$INSTDIR\plugins\ssl.dll"
547 Delete "$INSTDIR\plugins\statenotify.dll" 549 Delete "$INSTDIR\plugins\statenotify.dll"
548 Delete "$INSTDIR\plugins\ticker.dll" 550 Delete "$INSTDIR\plugins\ticker.dll"
973 StrCpy $ISSILENT "/S" 975 StrCpy $ISSILENT "/S"
974 set_gtk_normal: 976 set_gtk_normal:
975 977
976 Call ParseParameters 978 Call ParseParameters
977 979
978 ; If this installer dosn't have GTK, check whether we need it. 980 ; Select Language
979 !ifndef WITH_GTK 981 IntCmp $LANG_IS_SET 1 skip_lang
980 Call DoWeNeedGtk 982 ; Display Language selection dialog
981 Pop $0 983 !insertmacro MUI_LANGDLL_DISPLAY
982 Pop $GTK_FOLDER 984 skip_lang:
983
984 StrCmp $0 "0" have_gtk need_gtk
985 need_gtk:
986 IfSilent skip_mb
987 MessageBox MB_OK $(GTK_INSTALLER_NEEDED) IDOK
988 skip_mb:
989 Quit
990 have_gtk:
991 !endif
992 985
993 ; If install path was set on the command, use it. 986 ; If install path was set on the command, use it.
994 StrCmp $INSTDIR "" 0 instdir_done 987 StrCmp $INSTDIR "" 0 instdir_done
995 988
996 Call CheckUserInstallRights 989 Call CheckUserInstallRights
1007 Pop $2 1000 Pop $2
1008 StrCpy $INSTDIR "$2\Gaim" 1001 StrCpy $INSTDIR "$2\Gaim"
1009 1002
1010 instdir_done: 1003 instdir_done:
1011 1004
1012 IntCmp $LANG_IS_SET 1 skip_lang
1013 ; Display Language selection dialog
1014 !insertmacro MUI_LANGDLL_DISPLAY
1015 skip_lang:
1016 FunctionEnd 1005 FunctionEnd
1017 1006
1018 Function un.onInit 1007 Function un.onInit
1019 1008
1020 ; Get stored language prefrence 1009 ; Get stored language prefrence
1071 Pop $2 1060 Pop $2
1072 Pop $0 1061 Pop $0
1073 FunctionEnd 1062 FunctionEnd
1074 1063
1075 ; Page enter and exit functions.. 1064 ; Page enter and exit functions..
1065
1066 Function preWelcomePage
1067 ; If this installer dosn't have GTK, check whether we need it.
1068 ; We do this here an not in .onInit because language change in
1069 ; .onInit doesn't take effect until it is finished.
1070 !ifndef WITH_GTK
1071 Call DoWeNeedGtk
1072 Pop $0
1073 Pop $GTK_FOLDER
1074
1075 StrCmp $0 "0" have_gtk need_gtk
1076 need_gtk:
1077 IfSilent skip_mb
1078 MessageBox MB_OK $(GTK_INSTALLER_NEEDED) IDOK
1079 skip_mb:
1080 Quit
1081 have_gtk:
1082 !endif
1083 FunctionEnd
1076 1084
1077 !ifdef WITH_GTK 1085 !ifdef WITH_GTK
1078 Function preGtkDirPage 1086 Function preGtkDirPage
1079 Call DoWeNeedGtk 1087 Call DoWeNeedGtk
1080 Pop $0 1088 Pop $0