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