changeset 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 9f1893ad06e8
children 63e4d47f4e35
files gaim-installer.nsi
diffstat 1 files changed, 16 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/gaim-installer.nsi	Sat Nov 02 03:41:23 2002 +0000
+++ b/gaim-installer.nsi	Sat Nov 02 03:50:20 2002 +0000
@@ -21,16 +21,16 @@
 DirShow show ; (make this hide to not let the user change it)
 DirText "Select the directory to install Gaim in:"
 
-Section "Aspell"
-  SetOutPath $OUTDIR
+Section "" ; (default section)
+  ; Install Aspell
+  SetOutPath "$INSTDIR"
   File ..\win32-dev\aspell-15\bin\aspell-0.50.2.exe
-  ExecWait "$OUTDIR\aspell-0.50.2.exe"
-SectionEnd
+  ExecWait "$INSTDIR\aspell-0.50.2.exe"
 
-Section "" ; (default section)
   SetOutPath "$INSTDIR"
   ; Gaim files
   File /r .\win32-install-dir\*.*
+
   ; Gaim Registry Settings
   WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Gaim" "" "$INSTDIR"
   WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gaim" "DisplayName" "Gaim (remove only)"
@@ -46,19 +46,19 @@
   Push "C:\Program Files\aspell\pspell-15.dll"
   Call AddSharedDLL
 
-  ; write out uninstaller
-  WriteUninstaller "$INSTDIR\gaim-uninst.exe"
-SectionEnd ; end of default section
-
-Section "Gaim Start Menu Group"
+  ; Set Start Menu icons
   SetOutPath "$SMPROGRAMS\Gaim"
   CreateShortCut "$SMPROGRAMS\Gaim\Gaim.lnk" \
                  "$INSTDIR\gaim.exe"
   CreateShortCut "$SMPROGRAMS\Gaim\Unistall.lnk" \
                  "$INSTDIR\gaim-uninst.exe"
-SectionEnd
+
+  ; write out uninstaller
+  WriteUninstaller "$INSTDIR\gaim-uninst.exe"
 
-
+  ; cleanup aspell installer file
+  Delete "$INSTDIR\aspell-0.50.2.exe"
+SectionEnd ; end of default section
 
 ; begin uninstall settings/section
 UninstallText "This will uninstall Gaim from your system"
@@ -68,13 +68,6 @@
   RMDir /r "$INSTDIR"
   RMDir /r "$SMPROGRAMS\Gaim"
 
-  ; Delete Aspell Files
-  ;RMDir /r $PROGRAMFILES\aspell\data
-  ;RMDir /r $PROGRAMFILES\aspell\dict
-  ;Delete $PROGRAMFILES\aspell\aspell-15.dll
-  ;Delete $PROGRAMFILES\aspell\aspell-common-0-50-2.dll
-  ;Delete $PROGRAMFILES\aspell\pspell-15.dll
-
   ; Delete Gaim Registry Settings
   DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Gaim"
   DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Gaim"
@@ -87,10 +80,14 @@
   Call un.RemoveSharedDLL
   Push "C:\Program Files\aspell\pspell-15.dll"
   Call un.RemoveSharedDLL
+
   ; Delete aspell dir if its empty
   RMDir "C:\Program Files\aspell"
 SectionEnd ; end of uninstall section
 
+;;;
+;;; FUNCTIONS
+;;;
 
 ; AddSharedDLL
 ;