comparison gaim-installer.nsi @ 3860:d0897828bd0d

[gaim-migrate @ 4012] Fixed bug committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Sat, 02 Nov 2002 03:50:20 +0000
parents eddcb3a8c74e
children ac76cf27f8d5
comparison
equal deleted inserted replaced
3859:9f1893ad06e8 3860:d0897828bd0d
19 InstallDir "$PROGRAMFILES\Gaim" 19 InstallDir "$PROGRAMFILES\Gaim"
20 InstallDirRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Gaim" "" 20 InstallDirRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Gaim" ""
21 DirShow show ; (make this hide to not let the user change it) 21 DirShow show ; (make this hide to not let the user change it)
22 DirText "Select the directory to install Gaim in:" 22 DirText "Select the directory to install Gaim in:"
23 23
24 Section "Aspell" 24 Section "" ; (default section)
25 SetOutPath $OUTDIR 25 ; Install Aspell
26 SetOutPath "$INSTDIR"
26 File ..\win32-dev\aspell-15\bin\aspell-0.50.2.exe 27 File ..\win32-dev\aspell-15\bin\aspell-0.50.2.exe
27 ExecWait "$OUTDIR\aspell-0.50.2.exe" 28 ExecWait "$INSTDIR\aspell-0.50.2.exe"
28 SectionEnd
29 29
30 Section "" ; (default section)
31 SetOutPath "$INSTDIR" 30 SetOutPath "$INSTDIR"
32 ; Gaim files 31 ; Gaim files
33 File /r .\win32-install-dir\*.* 32 File /r .\win32-install-dir\*.*
33
34 ; Gaim Registry Settings 34 ; Gaim Registry Settings
35 WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Gaim" "" "$INSTDIR" 35 WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Gaim" "" "$INSTDIR"
36 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gaim" "DisplayName" "Gaim (remove only)" 36 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gaim" "DisplayName" "Gaim (remove only)"
37 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gaim" "UninstallString" '"$INSTDIR\gaim-uninst.exe"' 37 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gaim" "UninstallString" '"$INSTDIR\gaim-uninst.exe"'
38 ; Set App path to include aspell dir 38 ; Set App path to include aspell dir
44 Push "C:\Program Files\aspell\aspell-common-0-50-2.dll" 44 Push "C:\Program Files\aspell\aspell-common-0-50-2.dll"
45 Call AddSharedDLL 45 Call AddSharedDLL
46 Push "C:\Program Files\aspell\pspell-15.dll" 46 Push "C:\Program Files\aspell\pspell-15.dll"
47 Call AddSharedDLL 47 Call AddSharedDLL
48 48
49 ; write out uninstaller 49 ; Set Start Menu icons
50 WriteUninstaller "$INSTDIR\gaim-uninst.exe"
51 SectionEnd ; end of default section
52
53 Section "Gaim Start Menu Group"
54 SetOutPath "$SMPROGRAMS\Gaim" 50 SetOutPath "$SMPROGRAMS\Gaim"
55 CreateShortCut "$SMPROGRAMS\Gaim\Gaim.lnk" \ 51 CreateShortCut "$SMPROGRAMS\Gaim\Gaim.lnk" \
56 "$INSTDIR\gaim.exe" 52 "$INSTDIR\gaim.exe"
57 CreateShortCut "$SMPROGRAMS\Gaim\Unistall.lnk" \ 53 CreateShortCut "$SMPROGRAMS\Gaim\Unistall.lnk" \
58 "$INSTDIR\gaim-uninst.exe" 54 "$INSTDIR\gaim-uninst.exe"
59 SectionEnd
60 55
56 ; write out uninstaller
57 WriteUninstaller "$INSTDIR\gaim-uninst.exe"
61 58
59 ; cleanup aspell installer file
60 Delete "$INSTDIR\aspell-0.50.2.exe"
61 SectionEnd ; end of default section
62 62
63 ; begin uninstall settings/section 63 ; begin uninstall settings/section
64 UninstallText "This will uninstall Gaim from your system" 64 UninstallText "This will uninstall Gaim from your system"
65 65
66 Section Uninstall 66 Section Uninstall
67 ; Delete Gaim Dir 67 ; Delete Gaim Dir
68 RMDir /r "$INSTDIR" 68 RMDir /r "$INSTDIR"
69 RMDir /r "$SMPROGRAMS\Gaim" 69 RMDir /r "$SMPROGRAMS\Gaim"
70
71 ; Delete Aspell Files
72 ;RMDir /r $PROGRAMFILES\aspell\data
73 ;RMDir /r $PROGRAMFILES\aspell\dict
74 ;Delete $PROGRAMFILES\aspell\aspell-15.dll
75 ;Delete $PROGRAMFILES\aspell\aspell-common-0-50-2.dll
76 ;Delete $PROGRAMFILES\aspell\pspell-15.dll
77 70
78 ; Delete Gaim Registry Settings 71 ; Delete Gaim Registry Settings
79 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Gaim" 72 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Gaim"
80 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Gaim" 73 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Gaim"
81 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\gaim.exe" 74 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\gaim.exe"
85 Call un.RemoveSharedDLL 78 Call un.RemoveSharedDLL
86 Push "C:\Program Files\aspell\aspell-common-0-50-2.dll" 79 Push "C:\Program Files\aspell\aspell-common-0-50-2.dll"
87 Call un.RemoveSharedDLL 80 Call un.RemoveSharedDLL
88 Push "C:\Program Files\aspell\pspell-15.dll" 81 Push "C:\Program Files\aspell\pspell-15.dll"
89 Call un.RemoveSharedDLL 82 Call un.RemoveSharedDLL
83
90 ; Delete aspell dir if its empty 84 ; Delete aspell dir if its empty
91 RMDir "C:\Program Files\aspell" 85 RMDir "C:\Program Files\aspell"
92 SectionEnd ; end of uninstall section 86 SectionEnd ; end of uninstall section
93 87
88 ;;;
89 ;;; FUNCTIONS
90 ;;;
94 91
95 ; AddSharedDLL 92 ; AddSharedDLL
96 ; 93 ;
97 ; Increments a shared DLLs reference count. 94 ; Increments a shared DLLs reference count.
98 ; Use by passing one item on the stack (the full path of the DLL). 95 ; Use by passing one item on the stack (the full path of the DLL).