Mercurial > pidgin
comparison gtk/win32/nsis/gaim-plugin.nsh @ 14450:1a01b1dae517
[gaim-migrate @ 17164]
Fix the installer to be more robust in its version checking.
John D. Ramsdell noticed this.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Tue, 05 Sep 2006 03:14:46 +0000 |
parents | 009db0b357b5 |
children |
comparison
equal
deleted
inserted
replaced
14449:74cdcd0c58b5 | 14450:1a01b1dae517 |
---|---|
1 ;; | 1 ;; |
2 ;; Windows Gaim NSIS installer plugin helper utilities | 2 ;; Windows Gaim NSIS installer plugin helper utilities |
3 ;; Copyright 2005, Daniel Atallah <daniel_atallah@yahoo.com> | 3 ;; Copyright 2005, Daniel Atallah <daniel_atallah@yahoo.com> |
4 ;; | 4 ;; |
5 ;; Include in plugin installer scripts using: | 5 ;; Include in plugin installer scripts using: |
6 ;; !addincludedir "${PATH_TO_GAIM_SRC}\src\win32\nsis" | 6 ;; !addincludedir "${PATH_TO_GAIM_SRC}\gtkgaim\win32\nsis" |
7 ;; !include "gaim-plugin.nsh" | 7 ;; !include "gaim-plugin.nsh" |
8 ;; | 8 ;; |
9 | 9 |
10 !define GAIM_REG_KEY "SOFTWARE\gaim" | 10 !define GAIM_REG_KEY "SOFTWARE\gaim" |
11 | 11 |
39 ; Check that the currently installed gaim version is compatible | 39 ; Check that the currently installed gaim version is compatible |
40 ; with the plugin version we are installing | 40 ; with the plugin version we are installing |
41 ; Push the Plugin's Gaim Version onto the Stack before calling | 41 ; Push the Plugin's Gaim Version onto the Stack before calling |
42 ; After calling, the top of the Stack will contain the result of the check: | 42 ; After calling, the top of the Stack will contain the result of the check: |
43 ; GAIM_VERSION_OK - If the installed gaim version is compatible w/ the version specified | 43 ; GAIM_VERSION_OK - If the installed gaim version is compatible w/ the version specified |
44 ; GAIM_VERSION_INCOMPATIBLE - If the installed gaim version isn't compatible w/ the ersion specified | 44 ; GAIM_VERSION_INCOMPATIBLE - If the installed gaim version isn't compatible w/ the version specified |
45 ; GAIM_VERSION_UNDEFINED - If the installed gaim version can't be determined | 45 ; GAIM_VERSION_UNDEFINED - If the installed gaim version can't be determined |
46 Function CheckGaimVersion | 46 Function CheckGaimVersion |
47 ; Save the Variable values that we will use in the stack | 47 ; Save the Variable values that we will use in the stack |
48 Push $R4 | 48 Push $R4 |
49 Exch | 49 Exch |
119 Function GetVersionComponent | 119 Function GetVersionComponent |
120 ClearErrors | 120 ClearErrors |
121 | 121 |
122 ; Save the Variable values that we will use in the stack | 122 ; Save the Variable values that we will use in the stack |
123 Push $1 | 123 Push $1 |
124 Exch | 124 Exch |
125 Pop $1 ;The version component which we want to extract (0, 1, 2) | 125 Pop $1 ;The version component which we want to extract (0, 1, 2) |
126 Exch | 126 Exch |
127 Push $0 | 127 Push $0 |
128 Exch | 128 Exch |
129 Pop $0 ;The string from which to extract the version component | 129 Pop $0 ;The string from which to extract the version component |