comparison gaim-installer.nsi @ 9565:c60809a33460

[gaim-migrate @ 10404] 0.80 changes committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Mon, 19 Jul 2004 16:35:33 +0000
parents 3ff773e92747
children 24f84b7ffe8e
comparison
equal deleted inserted replaced
9564:8faa2e191ba8 9565:c60809a33460
49 !define HKLM_APP_PATHS_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\gaim.exe" 49 !define HKLM_APP_PATHS_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\gaim.exe"
50 !define GAIM_STARTUP_RUN_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\Run" 50 !define GAIM_STARTUP_RUN_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
51 !define GAIM_UNINST_EXE "gaim-uninst.exe" 51 !define GAIM_UNINST_EXE "gaim-uninst.exe"
52 !define GAIM_REG_LANG "Installer Language" 52 !define GAIM_REG_LANG "Installer Language"
53 53
54 !define GTK_VERSION "2.2.4" 54 !define GTK_VERSION "2.4.3"
55 !define GTK_REG_KEY "SOFTWARE\GTK\2.0" 55 !define GTK_REG_KEY "SOFTWARE\GTK\2.0"
56 !define PERL_REG_KEY "SOFTWARE\Perl" 56 !define PERL_REG_KEY "SOFTWARE\Perl"
57 !define PERL_DLL "perl58.dll" 57 !define PERL_DLL "perl58.dll"
58 !define GTK_DEFAULT_INSTALL_PATH "$PROGRAMFILES\Common Files\GTK\2.0" 58 !define GTK_DEFAULT_INSTALL_PATH "$PROGRAMFILES\Common Files\GTK\2.0"
59 !define GTK_RUNTIME_INSTALLER "..\gtk_installer\gtk-runtime*.exe" 59 !define GTK_RUNTIME_INSTALLER "..\gtk_installer\gtk-runtime*.exe"
60 !define GTK_THEME_DIR "..\gtk_installer\gtk_themes" 60 !define GTK_THEME_DIR "..\gtk_installer\gtk_themes"
61 !define GTK_DEFAULT_THEME_GTKRC_DIR "share\themes\Default\gtk-2.0" 61 !define GTK_DEFAULT_THEME_GTKRC_DIR "share\themes\Default\gtk-2.0"
62 !define GTK_DEFAULT_THEME_ENGINE_DIR "lib\gtk-2.0\2.2.0\engines" 62 !define GTK_DEFAULT_THEME_ENGINE_DIR "lib\gtk-2.0\2.4.0\engines"
63 63
64 ;-------------------------------- 64 ;--------------------------------
65 ;Modern UI Configuration 65 ;Modern UI Configuration
66 66
67 !define MUI_ICON ".\pixmaps\gaim-install.ico" 67 !define MUI_ICON ".\pixmaps\gaim-install.ico"
548 RMDir /r "$INSTDIR\locale" 548 RMDir /r "$INSTDIR\locale"
549 RMDir /r "$INSTDIR\pixmaps" 549 RMDir /r "$INSTDIR\pixmaps"
550 RMDir /r "$INSTDIR\perlmod" 550 RMDir /r "$INSTDIR\perlmod"
551 Delete "$INSTDIR\plugins\autorecon.dll" 551 Delete "$INSTDIR\plugins\autorecon.dll"
552 Delete "$INSTDIR\plugins\docklet.dll" 552 Delete "$INSTDIR\plugins\docklet.dll"
553 Delete "$INSTDIR\plugins\extplacement.dll"
553 Delete "$INSTDIR\plugins\history.dll" 554 Delete "$INSTDIR\plugins\history.dll"
554 Delete "$INSTDIR\plugins\iconaway.dll" 555 Delete "$INSTDIR\plugins\iconaway.dll"
555 Delete "$INSTDIR\plugins\idle.dll" 556 Delete "$INSTDIR\plugins\idle.dll"
556 Delete "$INSTDIR\plugins\libgg.dll" 557 Delete "$INSTDIR\plugins\libgg.dll"
557 Delete "$INSTDIR\plugins\libirc.dll" 558 Delete "$INSTDIR\plugins\libirc.dll"
848 Exch $0 ; put $0 on top of stack, restore $0 to original value 849 Exch $0 ; put $0 on top of stack, restore $0 to original value
849 FunctionEnd 850 FunctionEnd
850 851
851 852
852 ; CheckGtkVersion 853 ; CheckGtkVersion
853 ; inputs: Push 2 GTK+ version strings to check. The major and minor values 854 ; inputs: Push 2 GTK+ version strings to check. The major value needs to
854 ; need to be equal, for success. If the micro val to check is equal or greater 855 ; be equal and the minor value needs to be greater or equal.
855 ; to the refrence micro value, then we have success.
856 ; 856 ;
857 ; Usage: 857 ; Usage:
858 ; Push "2.2.0" ; Refrence version 858 ; Push "2.1.0" ; Refrence version
859 ; Push "2.2.1" ; Version to check 859 ; Push "2.2.1" ; Version to check
860 ; Call CheckGtkVersion 860 ; Call CheckGtkVersion
861 ; Pop $R0 861 ; Pop $R0
862 ; $R0 will now equal "0", because 2.2.0 is less than 2.2.1 862 ; $R0 will now equal "1", because 2.2 is greater than 2.1
863 ; 863 ;
864 Function CheckGtkVersion 864 Function CheckGtkVersion
865 ; Version we want to check 865 ; Version we want to check
866 Pop $6 866 Pop $6
867 ; Reference version 867 ; Reference version
872 IntCmp $7 5 0 bad_version 872 IntCmp $7 5 0 bad_version
873 873
874 ; Major version check 874 ; Major version check
875 StrCpy $7 $6 1 875 StrCpy $7 $6 1
876 StrCpy $9 $8 1 876 StrCpy $9 $8 1
877 IntCmp $7 $9 check_minor 877 IntCmp $7 $9 check_minor bad_version bad_version
878 Goto bad_version
879 878
880 check_minor: 879 check_minor:
881 StrCpy $7 $6 1 2 880 StrCpy $7 $6 1 2
882 StrCpy $9 $8 1 2 881 StrCpy $9 $8 1 2
883 IntCmp $7 $9 check_micro
884 Goto bad_version
885
886 check_micro:
887 StrCpy $7 $6 1 4
888 StrCpy $9 $8 1 4
889 IntCmp $7 $9 good_version bad_version good_version 882 IntCmp $7 $9 good_version bad_version good_version
890 883
891 bad_version: 884 bad_version:
892 StrCpy $6 "0" 885 StrCpy $6 "0"
893 Push $6 886 Push $6