Mercurial > pidgin
comparison gaim-installer.nsi @ 3892:ac76cf27f8d5
[gaim-migrate @ 4044]
A check to see if Gaim is already installed
committer: Tailor Script <tailor@pidgin.im>
author | Herman Bloggs <hermanator12002@yahoo.com> |
---|---|
date | Sun, 03 Nov 2002 23:36:22 +0000 |
parents | d0897828bd0d |
children | 0d8b11bed18b |
comparison
equal
deleted
inserted
replaced
3891:a611ec77d1d2 | 3892:ac76cf27f8d5 |
---|---|
5 ; NOTE: this .NSI script is designed for NSIS v1.8+ | 5 ; NOTE: this .NSI script is designed for NSIS v1.8+ |
6 | 6 |
7 Name "Gaim 0.60 alpha 3 (Win32)" | 7 Name "Gaim 0.60 alpha 3 (Win32)" |
8 OutFile "gaim-0.60-alpha3.exe" | 8 OutFile "gaim-0.60-alpha3.exe" |
9 Icon .\pixmaps\gaim-install.ico | 9 Icon .\pixmaps\gaim-install.ico |
10 UninstallIcon .\pixmaps\gaim-install.ico | |
10 | 11 |
11 ; Some default compiler settings (uncomment and change at will): | 12 ; Some default compiler settings (uncomment and change at will): |
12 ; SetCompress auto ; (can be off or force) | 13 ; SetCompress auto ; (can be off or force) |
13 ; SetDatablockOptimize on ; (can be off) | 14 ; SetDatablockOptimize on ; (can be off) |
14 ; CRCCheck on ; (can be off) | 15 ; CRCCheck on ; (can be off) |
20 InstallDirRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Gaim" "" | 21 InstallDirRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Gaim" "" |
21 DirShow show ; (make this hide to not let the user change it) | 22 DirShow show ; (make this hide to not let the user change it) |
22 DirText "Select the directory to install Gaim in:" | 23 DirText "Select the directory to install Gaim in:" |
23 | 24 |
24 Section "" ; (default section) | 25 Section "" ; (default section) |
26 ; Check if previous intallation exists | |
27 ReadRegStr $R0 HKEY_LOCAL_MACHINE "SOFTWARE\gaim" "" | |
28 StrCmp $R0 "" cont_install | |
29 ReadRegStr $R1 HKEY_LOCAL_MACHINE "SOFTWARE\gaim" "Version" | |
30 StrCmp $R1 "" no_version | |
31 ; Gaim found, so exit Intallation | |
32 MessageBox MB_OK "Gaim v$R1 has already been installed. If you wish to install a new version, uninstall first." IDOK | |
33 Quit | |
34 no_version: | |
35 MessageBox MB_OK "Gaim has already been installed on your machine. If you wish to install a new version, uninstall first." IDOK | |
36 Quit | |
37 cont_install: | |
38 | |
25 ; Install Aspell | 39 ; Install Aspell |
26 SetOutPath "$INSTDIR" | 40 SetOutPath "$INSTDIR" |
27 File ..\win32-dev\aspell-15\bin\aspell-0.50.2.exe | 41 File ..\win32-dev\aspell-15\bin\aspell-0.50.2.exe |
28 ExecWait "$INSTDIR\aspell-0.50.2.exe" | 42 ExecWait "$INSTDIR\aspell-0.50.2.exe" |
29 | 43 |
31 ; Gaim files | 45 ; Gaim files |
32 File /r .\win32-install-dir\*.* | 46 File /r .\win32-install-dir\*.* |
33 | 47 |
34 ; Gaim Registry Settings | 48 ; Gaim Registry Settings |
35 WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Gaim" "" "$INSTDIR" | 49 WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Gaim" "" "$INSTDIR" |
50 WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Gaim" "Version" "0.60a3" | |
36 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gaim" "DisplayName" "Gaim (remove only)" | 51 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"' | 52 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gaim" "UninstallString" '"$INSTDIR\gaim-uninst.exe"' |
38 ; Set App path to include aspell dir | 53 ; Set App path to include aspell dir |
39 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\App Paths\gaim.exe" "" "$INSTDIR\gaim.exe" | 54 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\App Paths\gaim.exe" "" "$INSTDIR\gaim.exe" |
40 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\App Paths\gaim.exe" "Path" "$PROGRAMFILES\aspell" | 55 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\App Paths\gaim.exe" "Path" "$PROGRAMFILES\aspell" |