1 ; NSIS Script for the Purple Plugin Pack
3 ; Based on the guifications2.x installer
9 !include "FileFunc.nsh"
10 !insertmacro GetParameters
11 !insertmacro GetOptions
16 Name "Plugin Pack ${PP_VERSION}"
18 OutFile "purple-plugin-pack-${PP_VERSION}.exe"
20 InstallDir "$PROGRAMFILES\pidgin"
21 InstallDirRegKey HKLM SOFTWARE\pidgin ""
24 ShowUnInstDetails show
25 SetCompressor /SOLID lzma
27 !insertmacro MUI_RESERVEFILE_LANGDLL
28 !define PP_UNINST_EXE "purple-plugin-pack-uninst.exe"
32 !addincludedir "${PIDGIN_TREE_TOP}\pidgin\win32\nsis"
33 !include "pidgin-plugin.nsh"
35 ;---------------------------
37 ;---------------------------
38 !define MUI_HEADERIMAGE
39 !define MUI_HEADERIMAGE_BITMAP "nsis\header.bmp"
40 !define MUI_ABORTWARNING
42 ;---------------------------
44 ;---------------------------
45 !insertmacro MUI_LANGUAGE "English"
46 !include "nsis\translations\english.nsh"
48 ;---------------------------
50 ;---------------------------
53 !define MUI_WELCOMEPAGE_TITLE $(WELCOME_TITLE)
54 !define MUI_WELCOMEPAGE_TEXT $(WELCOME_TEXT)
55 !insertmacro MUI_PAGE_WELCOME
57 ;---------------------------
59 ;---------------------------
60 Section -SecUninstallOld
61 ; Check install rights...
62 Call CheckUserInstallRights
65 StrCmp $R0 "HKLM" rights_hklm
66 StrCmp $R0 "HKCU" rights_hkcu done