changeset 4857:cb0681cfb9f2

[gaim-migrate @ 5184] Removed Aspell portion from Gaim installer committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Sat, 22 Mar 2003 18:27:28 +0000
parents ac9ed6c5594f
children 748c25897809
files gaim-installer.nsi
diffstat 1 files changed, 0 insertions(+), 98 deletions(-) [+]
line wrap: on
line diff
--- a/gaim-installer.nsi	Sat Mar 22 18:13:49 2003 +0000
+++ b/gaim-installer.nsi	Sat Mar 22 18:27:28 2003 +0000
@@ -34,43 +34,15 @@
       MessageBox MB_OK "Gaim already exists on this machine. Uninstall first then try again." IDOK
       Quit
   cont_install:
-  ; Install Aspell
-  SetOutPath "$INSTDIR"
-  File ..\win32-dev\aspell-15\bin\aspell-0.50.2.exe
-  ; Don't do this silently (i.e /S switch).. because some people wish to specify
-  ; the location of the Aspell install directory. (
-  ExecWait '"$INSTDIR\aspell-0.50.2.exe"' $R0
-  ; cleanup aspell installer file
-  Delete "$INSTDIR\aspell-0.50.2.exe"
-  ; Check if aspell installer completed ok
-  StrCmp $R0 "0" have_aspell
-    ; Aspell exited uncleanly so we will exit uncleanly too.
-    RMDir /r "$INSTDIR"
-    Quit
-  have_aspell:
   SetOutPath "$INSTDIR"
   ; Gaim files
   File /r .\win32-install-dir\*.*
 
   ; Gaim Registry Settings
-  ; Read in Aspell install path
-  ReadRegStr $R0 HKEY_LOCAL_MACHINE "Software\Aspell" ""
   WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Gaim" "" "$INSTDIR"
   WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Gaim" "Version" "${GAIM_VERSION}"
-  ; Keep track of aspell install path, for when we uninstall
-  WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Gaim" "AspellPath" $R0
   WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gaim" "DisplayName" "Gaim (remove only)"
   WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gaim" "UninstallString" '"$INSTDIR\gaim-uninst.exe"'
-  ; Set App path to include aspell dir (so Gaim can find aspell dlls)
-  WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\App Paths\gaim.exe" "" "$INSTDIR\gaim.exe"
-  WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\App Paths\gaim.exe" "Path" $R0
-  ; Increase refrence count for aspell dlls
-  Push "$R0\aspell-15.dll"
-  Call AddSharedDLL
-  Push "$R0\aspell-common-0-50-2.dll"
-  Call AddSharedDLL
-  Push "$R0\pspell-15.dll"
-  Call AddSharedDLL
 
   ; Set Start Menu icons
   SetShellVarContext "all"
@@ -99,81 +71,11 @@
   RMDir /r "$SMPROGRAMS\Gaim"
   Delete "$DESKTOP\Gaim.lnk"
 
-  ; Read in Aspell install path
-  ReadRegStr $R0 HKEY_LOCAL_MACHINE "Software\Gaim" "AspellPath"
-
   ; Delete Gaim Registry Settings
   DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Gaim"
   DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Gaim"
-  DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\gaim.exe"
 
-  ; Decrease refrence count for Aspell dlls
-  Push "$R0\aspell-15.dll"
-  Call un.RemoveSharedDLL
-  Push "$R0\aspell-common-0-50-2.dll"
-  Call un.RemoveSharedDLL
-  Push "$R0\pspell-15.dll"
-  Call un.RemoveSharedDLL
-
-  ; Delete aspell dir if its empty
-  RMDir "$R0"
 SectionEnd ; end of uninstall section
 
-;;;
-;;; FUNCTIONS
-;;;
-
-; AddSharedDLL
-;
-; Increments a shared DLLs reference count.
-; Use by passing one item on the stack (the full path of the DLL).
-;
-; Usage: 
-;   Push $SYSDIR\myDll.dll
-;   Call AddSharedDLL
-;
-
-Function AddSharedDLL
-  Exch $R1
-  Push $R0
-  ReadRegDword $R0 HKLM Software\Microsoft\Windows\CurrentVersion\SharedDLLs $R1
-  IntOp $R0 $R0 + 1
-  WriteRegDWORD HKLM Software\Microsoft\Windows\CurrentVersion\SharedDLLs $R1 $R0
-  Pop $R0
-  Pop $R1
-FunctionEnd
-
-; un.RemoveSharedDLL
-;
-; Decrements a shared DLLs reference count, and removes if necessary.
-; Use by passing one item on the stack (the full path of the DLL).
-; Note: for use in the main installer (not the uninstaller), rename the
-; function to RemoveSharedDLL.
-; 
-; Usage:
-;   Push $SYSDIR\myDll.dll
-;   Call un.RemoveShareDLL
-;
-
-Function un.RemoveSharedDLL
-  Exch $R1
-  Push $R0
-  ReadRegDword $R0 HKLM Software\Microsoft\Windows\CurrentVersion\SharedDLLs $R1
-  StrCmp $R0 "" remove
-    IntOp $R0 $R0 - 1
-    IntCmp $R0 0 rk rk uk
-    rk:
-      DeleteRegValue HKLM Software\Microsoft\Windows\CurrentVersion\SharedDLLs $R1
-    goto Remove
-    uk:
-      WriteRegDWORD HKLM Software\Microsoft\Windows\CurrentVersion\SharedDLLs $R1 $R0
-    Goto noremove
-  remove:
-    Delete /REBOOTOK $R1
-  noremove:
-  Pop $R0
-  Pop $R1
-FunctionEnd
-
 ; eof