Update gpgol
[gpg4win.git] / src / inst-gpgol.nsi
index a294470..984f115 100644 (file)
 !undef prefix
 !endif
 !define prefix ${ipdir}/gpgol-${gpg4win_pkg_gpgol_version}
+!define bdir ${bpdir}/gpgol-${gpg4win_pkg_gpgol_version}-build
 
 
-Section "GPGol" SEC_gpgol
+${MementoSection} "GpgOL" SEC_gpgol
   SetOutPath "$INSTDIR"
 !ifdef SOURCES
   File "${gpg4win_pkg_gpgol}"
@@ -33,27 +34,36 @@ Section "GPGol" SEC_gpgol
   SetOverwrite try
   File ${prefix}/bin/gpgol.dll
   SetOverwrite lastused
-  ifErrors 0 +4
+  ifErrors 0 do_reg
       File /oname=gpgol.dll.tmp ${prefix}/bin/gpgol.dll
       Rename /REBOOTOK gpgol.dll.tmp gpgol.dll
 
+ do_reg:
   # Register the DLL.
   RegDLL "$INSTDIR\gpgol.dll"
   ifErrors 0 +2
-     MessageBox MB_OK "$(T_GPGol_RegFailed)"
+     MessageBox MB_OK "$(T_GpgOL_RegFailed)"
 
-!endif
-SectionEnd
+  SetOutPath "$INSTDIR\share\locale\de\LC_MESSAGES"
+  File ${prefix}/share/locale/de/LC_MESSAGES/gpgol.mo
+  SetOutPath "$INSTDIR\share\locale\sv\LC_MESSAGES"
+  File ${prefix}/share/locale/sv/LC_MESSAGES/gpgol.mo
+  SetOutPath "$INSTDIR\share\locale\pt\LC_MESSAGES"
+  File ${prefix}/share/locale/pt/LC_MESSAGES/gpgol.mo
+
+  SetOutPath "$INSTDIR\share\gpgol"
+  File "${prefix}/share/gpgol/*.cfg"
+  File "${prefix}/share/gpgol/*.ico"
 
+  SetOutPath "$INSTDIR\share\doc\gpgol"
+  File "${bdir}/doc/gpgol.pdf"
+
+!endif
+${MementoSectionEnd}
 
-LangString T_GPGol_RegFailed ${LANG_ENGLISH} \
-   "Warning: Registration of the GPGol Outlook pluginfailed."
-LangString T_GPGol_RegFailed ${LANG_GERMAN} \
-   "Warnung: Registration des GPGol Outlook Plugin ist fehlgeschlagen. "
 
+LangString T_GpgOL_RegFailed ${LANG_ENGLISH} \
+   "Warning: Registration of the GpgOL Outlook pluginfailed."
 
 LangString DESC_SEC_gpgol ${LANG_ENGLISH} \
    "GnuPG for Outlook"
-LangString DESC_SEC_gpgol ${LANG_GERMAN} \
-   "GnuPG für Outlook (GPGol) is eine Erweiterung für Outlook 2000, die \
-    verwendet wird um Nachrichten mit OpenPGP zu verschlüsseln."