| author | John Bailey <rekkanoryo@rekkanoryo.org> |
| Sun Aug 30 20:10:58 2009 -0400 (2009-08-30) | |
| changeset 1046 | 93089a7ce7f6 |
| permissions | -rw-r--r-- |
| grim@938 | 1 |
; NSIS Script for the Purple Plugin Pack |
| grim@938 | 2 |
; Author Gary Kramlich |
| grim@938 | 3 |
; Based on the guifications2.x installer |
| grim@938 | 4 |
; Uses NSIS v2.0 |
| grim@938 | 5 |
|
| grim@938 | 6 |
;Include Modern UI |
| grim@938 | 7 |
!include "MUI.nsh" |
| grim@938 | 8 |
|
| grim@938 | 9 |
!include "FileFunc.nsh" |
| grim@938 | 10 |
!insertmacro GetParameters |
| grim@938 | 11 |
!insertmacro GetOptions |
| grim@938 | 12 |
|
| grim@938 | 13 |
;--------- |
| grim@938 | 14 |
; General |
| grim@938 | 15 |
;--------- |
| grim@938 | 16 |
Name "Plugin Pack ${PP_VERSION}" |
| grim@938 | 17 |
CRCCheck On |
| grim@938 | 18 |
OutFile "purple-plugin-pack-${PP_VERSION}.exe" |
| grim@938 | 19 |
|
| grim@938 | 20 |
InstallDir "$PROGRAMFILES\pidgin" |
| grim@938 | 21 |
InstallDirRegKey HKLM SOFTWARE\pidgin "" |
| grim@938 | 22 |
|
| grim@938 | 23 |
ShowInstDetails show |
| grim@938 | 24 |
ShowUnInstDetails show |
| grim@938 | 25 |
SetCompressor /SOLID lzma |
| grim@938 | 26 |
|
| grim@938 | 27 |
!insertmacro MUI_RESERVEFILE_LANGDLL |
| grim@938 | 28 |
!define PP_UNINST_EXE "purple-plugin-pack-uninst.exe" |
| grim@938 | 29 |
|
| grim@938 | 30 |
|
| grim@938 | 31 |
; Pidgin helper stuff |
| grim@938 | 32 |
!addincludedir "${PIDGIN_TREE_TOP}\pidgin\win32\nsis" |
| grim@938 | 33 |
!include "pidgin-plugin.nsh" |
| grim@938 | 34 |
|
| grim@938 | 35 |
;--------------------------- |
| grim@938 | 36 |
; UI Config |
| grim@938 | 37 |
;--------------------------- |
| grim@938 | 38 |
!define MUI_HEADERIMAGE |
| grim@938 | 39 |
!define MUI_HEADERIMAGE_BITMAP "nsis\header.bmp" |
| grim@938 | 40 |
!define MUI_ABORTWARNING |
| grim@938 | 41 |
|
| grim@938 | 42 |
;--------------------------- |
| grim@938 | 43 |
; Translations |
| grim@938 | 44 |
;--------------------------- |
| grim@938 | 45 |
!insertmacro MUI_LANGUAGE "English" |
| grim@938 | 46 |
!include "nsis\translations\english.nsh" |
| grim@938 | 47 |
|
| grim@938 | 48 |
;--------------------------- |
| grim@938 | 49 |
; Pages |
| grim@938 | 50 |
;--------------------------- |
| grim@938 | 51 |
|
| grim@938 | 52 |
; Welcome |
| grim@938 | 53 |
!define MUI_WELCOMEPAGE_TITLE $(WELCOME_TITLE) |
| grim@938 | 54 |
!define MUI_WELCOMEPAGE_TEXT $(WELCOME_TEXT) |
| grim@938 | 55 |
!insertmacro MUI_PAGE_WELCOME |
| grim@938 | 56 |
|
| grim@938 | 57 |
;--------------------------- |
| grim@938 | 58 |
; Sections |
| grim@938 | 59 |
;--------------------------- |
| grim@938 | 60 |
Section -SecUninstallOld |
| grim@938 | 61 |
; Check install rights... |
| grim@938 | 62 |
Call CheckUserInstallRights |
| grim@938 | 63 |
Pop $R0 |
| grim@938 | 64 |
|
| grim@938 | 65 |
StrCmp $R0 "HKLM" rights_hklm |
| grim@938 | 66 |
StrCmp $R0 "HKCU" rights_hkcu done |