diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2017-02-02 01:57:46 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2017-02-02 01:57:46 +0000 |
commit | e8afa250c6319a8471b8801922a735644d452578 (patch) | |
tree | ee00ef28bd1b79baaa2a2968b6a1ec476a69fadc /nsis/sylpheed.nsi | |
parent | 00ab74d6f7de694d47b10f3a2555e50c9b5db5e4 (diff) |
updated NSIS scripts.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3524 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'nsis/sylpheed.nsi')
-rw-r--r-- | nsis/sylpheed.nsi | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/nsis/sylpheed.nsi b/nsis/sylpheed.nsi index 5d65907d..86ae32a1 100644 --- a/nsis/sylpheed.nsi +++ b/nsis/sylpheed.nsi @@ -47,6 +47,7 @@ SetCompressor /SOLID lzma ; Uninstaller pages
!insertmacro MUI_UNPAGE_WELCOME
+!define MUI_UNCONFIRMPAGE_TEXT_TOP "$(un_confirmpage_text_top)"
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_COMPONENTS
!insertmacro MUI_UNPAGE_INSTFILES
@@ -131,6 +132,13 @@ ${MementoSection} "$(attachment_tool_plugin)" sec_attachment_tool_plugin File "plugins\doc\plugins\README.attachment_tool.txt"
${MementoSectionEnd}
+!ifdef HAVE_AUTOENC_PLUGIN
+${MementoSection} "$(autoenc_plugin)" sec_autoenc_plugin
+ SetOutPath "$INSTDIR"
+ File /r "autoenc\"
+${MementoSectionEnd}
+!endif
+
SectionGroupEnd
${MementoSection} "sylfilter" sec_sylfilter
@@ -346,6 +354,18 @@ Section "un.$(attachment_tool_plugin)" sec_un_attachment_tool_plugin Delete "$INSTDIR\doc\plugins\README.attachment_tool.txt"
SectionEnd
+!ifdef HAVE_AUTOENC_PLUGIN
+Section "un.$(autoenc_plugin)" sec_un_autoenc_plugin
+ Delete "$INSTDIR\plugins\autoenc.dll"
+ Delete "$INSTDIR\doc\autoenc\COPYING.txt"
+ Delete "$INSTDIR\doc\autoenc\README.autoenc.txt"
+ Delete "$INSTDIR\doc\autoenc\LICENSE.7-zip.txt"
+ RMDir "$INSTDIR\doc\autoenc"
+ Delete "$INSTDIR\7z.dll"
+ Delete "$INSTDIR\7z.exe"
+SectionEnd
+!endif
+
SectionGroupEnd
Section "un.sylfilter" sec_un_sylfilter
@@ -400,6 +420,9 @@ SectionEnd !insertmacro MUI_DESCRIPTION_TEXT ${sec_sylpheed_pro} "$(sylpheed_pro_description)"
!endif
!insertmacro MUI_DESCRIPTION_TEXT ${sec_attachment_tool_plugin} "$(attachment_tool_plugin_description)"
+!ifdef HAVE_AUTOENC_PLUGIN
+ !insertmacro MUI_DESCRIPTION_TEXT ${sec_autoenc_plugin} "$(autoenc_plugin_description)"
+!endif
!insertmacro MUI_DESCRIPTION_TEXT ${sec_sylfilter} "$(sylfilter_description)"
!insertmacro MUI_DESCRIPTION_TEXT ${sec_bsfilter} "$(bsfilter_description)"
!insertmacro MUI_DESCRIPTION_TEXT ${sec_desktop_shortcut} "$(desktop_shortcut_description)"
@@ -413,6 +436,9 @@ SectionEnd !insertmacro MUI_DESCRIPTION_TEXT ${sec_un_sylpheed_pro} "$(un_sylpheed_pro_description)"
!endif
!insertmacro MUI_DESCRIPTION_TEXT ${sec_un_attachment_tool_plugin} "$(un_attachment_tool_plugin_description)"
+!ifdef HAVE_AUTOENC_PLUGIN
+ !insertmacro MUI_DESCRIPTION_TEXT ${sec_un_autoenc_plugin} "$(un_autoenc_plugin_description)"
+!endif
!insertmacro MUI_DESCRIPTION_TEXT ${sec_un_sylfilter} "$(un_sylfilter_description)"
!insertmacro MUI_DESCRIPTION_TEXT ${sec_un_bsfilter} "$(un_bsfilter_description)"
!insertmacro MUI_DESCRIPTION_TEXT ${sec_un_desktop_shortcut} "$(un_desktop_shortcut_description)"
@@ -501,6 +527,13 @@ check_app_running: !insertmacro SetSectionFlag ${sec_un_attachment_tool_plugin} ${SF_RO}
attachment_tool_plugin_file_exists:
+!ifdef HAVE_AUTOENC_PLUGIN
+ IfFileExists "$INSTDIR\plugins\autoenc.dll" autoenc_plugin_file_exists
+ !insertmacro UnselectSection ${sec_un_autoenc_plugin}
+ !insertmacro SetSectionFlag ${sec_un_autoenc_plugin} ${SF_RO}
+ autoenc_plugin_file_exists:
+!endif
+
IfFileExists "$INSTDIR\sylfilter.exe" sylfilter_file_exists
!insertmacro UnselectSection ${sec_un_sylfilter}
!insertmacro SetSectionFlag ${sec_un_sylfilter} ${SF_RO}
|