1 ;NSIS Modern User Interface
3 ;Written by Joost Verburg
5 ;--------------------------------
10 ;--------------------------------
14 Name "Pidgin SIPE Plugin"
15 OutFile "pidgin-sipe-${VERSION}.exe"
17 ;Default installation folder
18 InstallDir "$PROGRAMFILES\Pidgin"
20 ;Get installation folder from registry if available
21 InstallDirRegKey HKLM "Software\pidgin" ""
24 SetCompressor /FINAL /SOLID lzma
25 SetCompressorDictSize 64
27 ;--------------------------------
30 !define MUI_ABORTWARNING
32 ;--------------------------------
35 ;!insertmacro MUI_PAGE_LICENSE "Basic.nsi"
36 ;!insertmacro MUI_PAGE_COMPONENTS
37 !insertmacro MUI_PAGE_DIRECTORY
38 !insertmacro MUI_PAGE_INSTFILES
40 !insertmacro MUI_UNPAGE_CONFIRM
41 !insertmacro MUI_UNPAGE_INSTFILES
43 ;--------------------------------
46 !insertmacro MUI_LANGUAGE "English"
48 ;--------------------------------
51 Section "PidginSIPE" SecPidginSIPE
52 SetOutPath "$INSTDIR\plugins"
53 File "${MINGW_LIBDIR}\purple-2\libsipe.dll"
54 SetOutPath "$INSTDIR\pidgin-${PIDGIN_VERSION}-dbgsym\plugins"
55 File "${MINGW_LIBDIR}\purple-2\libsipe.dll.dbgsym"
56 SetOutPath "$INSTDIR\pixmaps\pidgin\protocols\16"
57 File "${MINGW_DATADIR}\pixmaps\pidgin\protocols\16\sipe.png"
58 SetOutPath "$INSTDIR\pixmaps\pidgin\protocols\22"
59 File "${MINGW_DATADIR}\pixmaps\pidgin\protocols\22\sipe.png"
60 SetOutPath "$INSTDIR\pixmaps\pidgin\protocols\48"
61 File "${MINGW_DATADIR}\pixmaps\pidgin\protocols\48\sipe.png"
62 SetOutPath "$INSTDIR\pixmaps\pidgin\protocols\scalable"
63 File "${MINGW_DATADIR}\pixmaps\pidgin\protocols\scalable\sipe.svg"
64 ;;; INSTALL_FILES_LOCALE
67 WriteUninstaller "$INSTDIR\Uninstall-pidgin-sipe.exe"
71 ;--------------------------------
75 LangString DESC_SecPidginSIPE ${LANG_ENGLISH} "The Pidgin SIPE Plugin."
77 ;Assign language strings to sections
78 ;!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
79 ; !insertmacro MUI_DESCRIPTION_TEXT ${SecPidginPP} $(DESC_SecPidginPP)
80 ;!insertmacro MUI_FUNCTION_DESCRIPTION_END
82 ;--------------------------------
87 ;ADD YOUR OWN FILES HERE...
89 Delete "$INSTDIR\Uninstall-pidgin-sipe.exe"
90 Delete "$INSTDIR\plugins\libsipe.dll"
91 Delete "$INSTDIR\pidgin-${PIDGIN_VERSION}-dbgsym\plugins\libsipe.dll.dbgsym"
92 Delete "$INSTDIR\pixmaps\pidgin\protocols\16\sipe.png"
93 Delete "$INSTDIR\pixmaps\pidgin\protocols\22\sipe.png"
94 Delete "$INSTDIR\pixmaps\pidgin\protocols\48\sipe.png"
95 Delete "$INSTDIR\pixmaps\pidgin\protocols\scalable\sipe.svg"
96 ;;; DELETE_FILES_LOCALE