Mercurial > pidgin.yaz
comparison gaim-installer.nsi @ 3910:0d8b11bed18b
[gaim-migrate @ 4069]
Fixed aspell path bug
committer: Tailor Script <tailor@pidgin.im>
author | Herman Bloggs <hermanator12002@yahoo.com> |
---|---|
date | Wed, 06 Nov 2002 19:49:04 +0000 |
parents | ac76cf27f8d5 |
children | 29ccbc3eb9c1 |
comparison
equal
deleted
inserted
replaced
3909:c98beec22f39 | 3910:0d8b11bed18b |
---|---|
37 cont_install: | 37 cont_install: |
38 | 38 |
39 ; Install Aspell | 39 ; Install Aspell |
40 SetOutPath "$INSTDIR" | 40 SetOutPath "$INSTDIR" |
41 File ..\win32-dev\aspell-15\bin\aspell-0.50.2.exe | 41 File ..\win32-dev\aspell-15\bin\aspell-0.50.2.exe |
42 ExecWait "$INSTDIR\aspell-0.50.2.exe" | 42 ExecWait "$INSTDIR\aspell-0.50.2.exe" $R0 |
43 ; Check if user canceled aspell installation | |
44 StrCmp $R0 "0" no_exit | |
45 MessageBox MB_OK "Gaim can not be installed without first installing Aspell." IDOK | |
46 RMDir /r "$INSTDIR" | |
47 Quit | |
48 no_exit: | |
43 | 49 |
44 SetOutPath "$INSTDIR" | 50 SetOutPath "$INSTDIR" |
45 ; Gaim files | 51 ; Gaim files |
46 File /r .\win32-install-dir\*.* | 52 File /r .\win32-install-dir\*.* |
47 | 53 |
48 ; Gaim Registry Settings | 54 ; Gaim Registry Settings |
55 ; Read in Aspell install path | |
56 ReadRegStr $R0 HKEY_LOCAL_MACHINE "Software\Aspell" "" | |
49 WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Gaim" "" "$INSTDIR" | 57 WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Gaim" "" "$INSTDIR" |
50 WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Gaim" "Version" "0.60a3" | 58 WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Gaim" "Version" "0.60a3" |
59 ; Keep track of aspell install path, for when we uninstall | |
60 WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Gaim" "AspellPath" $R0 | |
51 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gaim" "DisplayName" "Gaim (remove only)" | 61 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gaim" "DisplayName" "Gaim (remove only)" |
52 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gaim" "UninstallString" '"$INSTDIR\gaim-uninst.exe"' | 62 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gaim" "UninstallString" '"$INSTDIR\gaim-uninst.exe"' |
53 ; Set App path to include aspell dir | 63 ; Set App path to include aspell dir (so Gaim can find aspell dlls) |
54 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\App Paths\gaim.exe" "" "$INSTDIR\gaim.exe" | 64 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\App Paths\gaim.exe" "" "$INSTDIR\gaim.exe" |
55 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\App Paths\gaim.exe" "Path" "$PROGRAMFILES\aspell" | 65 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\App Paths\gaim.exe" "Path" $R0 |
56 ; Increase refrence count for aspell dlls | 66 ; Increase refrence count for aspell dlls |
57 Push "C:\Program Files\aspell\aspell-15.dll" | 67 Push "$R0\aspell-15.dll" |
58 Call AddSharedDLL | 68 Call AddSharedDLL |
59 Push "C:\Program Files\aspell\aspell-common-0-50-2.dll" | 69 Push "$R0\aspell-common-0-50-2.dll" |
60 Call AddSharedDLL | 70 Call AddSharedDLL |
61 Push "C:\Program Files\aspell\pspell-15.dll" | 71 Push "$R0\pspell-15.dll" |
62 Call AddSharedDLL | 72 Call AddSharedDLL |
63 | 73 |
64 ; Set Start Menu icons | 74 ; Set Start Menu icons |
65 SetOutPath "$SMPROGRAMS\Gaim" | 75 SetOutPath "$SMPROGRAMS\Gaim" |
66 CreateShortCut "$SMPROGRAMS\Gaim\Gaim.lnk" \ | 76 CreateShortCut "$SMPROGRAMS\Gaim\Gaim.lnk" \ |
81 Section Uninstall | 91 Section Uninstall |
82 ; Delete Gaim Dir | 92 ; Delete Gaim Dir |
83 RMDir /r "$INSTDIR" | 93 RMDir /r "$INSTDIR" |
84 RMDir /r "$SMPROGRAMS\Gaim" | 94 RMDir /r "$SMPROGRAMS\Gaim" |
85 | 95 |
96 ; Read in Aspell install path | |
97 ReadRegStr $R0 HKEY_LOCAL_MACHINE "Software\Gaim" "AspellPath" | |
98 | |
86 ; Delete Gaim Registry Settings | 99 ; Delete Gaim Registry Settings |
87 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Gaim" | 100 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Gaim" |
88 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Gaim" | 101 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Gaim" |
89 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\gaim.exe" | 102 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\gaim.exe" |
90 | 103 |
91 ; Decrease refrence count for Aspell dlls | 104 ; Decrease refrence count for Aspell dlls |
92 Push "C:\Program Files\aspell\aspell-15.dll" | 105 Push "$R0\aspell-15.dll" |
93 Call un.RemoveSharedDLL | 106 Call un.RemoveSharedDLL |
94 Push "C:\Program Files\aspell\aspell-common-0-50-2.dll" | 107 Push "$R0\aspell-common-0-50-2.dll" |
95 Call un.RemoveSharedDLL | 108 Call un.RemoveSharedDLL |
96 Push "C:\Program Files\aspell\pspell-15.dll" | 109 Push "$R0\pspell-15.dll" |
97 Call un.RemoveSharedDLL | 110 Call un.RemoveSharedDLL |
98 | 111 |
99 ; Delete aspell dir if its empty | 112 ; Delete aspell dir if its empty |
100 RMDir "C:\Program Files\aspell" | 113 RMDir "$R0" |
101 SectionEnd ; end of uninstall section | 114 SectionEnd ; end of uninstall section |
102 | 115 |
103 ;;; | 116 ;;; |
104 ;;; FUNCTIONS | 117 ;;; FUNCTIONS |
105 ;;; | 118 ;;; |