diff options
author | Werner Koch <[email protected]> | 2005-03-14 19:19:21 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2005-03-14 19:19:21 +0000 |
commit | a043c14d229a5201fc4c4332dbd541916e9fee16 (patch) | |
tree | f18c2882a81dfcc5d19e8253aa4f1f71f3b881fd /scripts | |
parent | * configure.ac: New option --enable-noexecstack. (diff) | |
download | gnupg-a043c14d229a5201fc4c4332dbd541916e9fee16.tar.gz gnupg-a043c14d229a5201fc4c4332dbd541916e9fee16.zip |
* cardglue.c (pin_cb): Disable debug output.
* mk-w32-dist: Check for patch files.
* w32installer.nsi: Translated a few more strings. Print a
warning if permssions are not suitable for the installation.
Add Uninstaller entries.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/ChangeLog | 7 | ||||
-rwxr-xr-x | scripts/mk-w32-dist | 20 | ||||
-rw-r--r-- | scripts/w32installer.nsi | 92 |
3 files changed, 96 insertions, 23 deletions
diff --git a/scripts/ChangeLog b/scripts/ChangeLog index b8c7433c7..abd8d4156 100644 --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,10 @@ +2005-03-14 Werner Koch <[email protected]> + + * mk-w32-dist: Check for patch files. + * w32installer.nsi: Translated a few more strings. Print a + warning if permssions are not suitable for the installation. + Add Uninstaller entries. + 2005-02-16 David Shaw <[email protected]> * gnupg.spec.in: Fix problem with storing the gpgkeys helpers in diff --git a/scripts/mk-w32-dist b/scripts/mk-w32-dist index 28b0b70b6..c40787371 100755 --- a/scripts/mk-w32-dist +++ b/scripts/mk-w32-dist @@ -122,15 +122,17 @@ for i in README COPYING NEWS; do cp ${srcdir}/$i $i.txt todos $i.txt done -for i in README.W32 ; do - cp ${srcdir}/doc/$i $i.txt - todos $i.txt -done -for i in gnupg-w32.reg; do - cp ${srcdir}/doc/$i . - todos $i + +cp ${srcdir}/doc/README.W32 README-W32.txt +todos README-W32.txt + +patches_defs= +for i in `find "$topdir/patches" -type f -name '*.diff'`; do + cp $i . + patches_defs="-DWITH_PATCHES" done + # We must distribute the MO files in UTF-8, the conversion is done by # gpg at runtime. To include English at the right position in the list we # need a special case. @@ -217,11 +219,11 @@ if [ -n "$topdir" ]; then echo makensis -v2 -nocd -DVERSION="${version}" \ -DPROD_VERSION="${prod_version}" \ -DGNUPG_SRCDIR="${srcdir}" ${winpt_defs} ${src_defs} \ - ${srcdir}/scripts/w32installer.nsi + ${patches_defs} ${srcdir}/scripts/w32installer.nsi BUILDINFO=$buildinfo makensis -v2 -nocd -DVERSION="${version}" \ -DPROD_VERSION="${prod_version}" \ -DGNUPG_SRCDIR="${srcdir}" ${winpt_defs} ${src_defs} \ - ${srcdir}/scripts/w32installer.nsi + ${patches_defs} ${srcdir}/scripts/w32installer.nsi echo "Installer created" >&2 else zip -9 "gnupg-w32cli-${version}.zip" * diff --git a/scripts/w32installer.nsi b/scripts/w32installer.nsi index d9482fc3b..6d7f97d22 100644 --- a/scripts/w32installer.nsi +++ b/scripts/w32installer.nsi @@ -83,20 +83,15 @@ Var STARTMENU_FOLDER !insertmacro MUI_PAGE_WELCOME -!define MUI_PAGE_HEADER_SUBTEXT \ - "This software is licensed under the terms of the GNU General Public \ - License (GPL) which guarantees your freedom to share and change Free \ - Software." +!define MUI_PAGE_HEADER_SUBTEXT "$(T_GPLHeader)" -!define MUI_LICENSEPAGE_TEXT_BOTTOM \ - "In short: You are allowed to run this software for any purpose. \ - You may distribute it as long as you give the recipients the same \ - rights you have received." +!define MUI_LICENSEPAGE_TEXT_BOTTOM "$(T_GPLShort)" !define MUI_LICENSEPAGE_BUTTON "$(^NextBtn)" !insertmacro MUI_PAGE_LICENSE "COPYING.txt" +!define MUI_PAGE_CUSTOMFUNCTION_SHOW PrintNonAdminWarning !insertmacro MUI_PAGE_COMPONENTS Page custom CustomPageOptions @@ -111,10 +106,9 @@ Page custom CustomPageOptions !insertmacro MUI_PAGE_INSTFILES -!define MUI_FINISHPAGE_SHOWREADME "README.W32.txt" +!define MUI_FINISHPAGE_SHOWREADME "README-W32.txt" !define MUI_FINISHPAGE_SHOWREADME_TEXT "$(T_ShowReadme)" -!define MUI_FINISHPAGE_LINK \ - "Visit the GnuPG website for latest news and support" +!define MUI_FINISHPAGE_LINK "$(T_FiniLink)" !define MUI_FINISHPAGE_LINK_LOCATION "http://www.gnupg.org/" !insertmacro MUI_PAGE_FINISH @@ -138,6 +132,8 @@ Page custom CustomPageOptions !insertmacro MUI_RESERVEFILE_INSTALLOPTIONS ReserveFile "opt.ini" ReserveFile "COPYING.txt" +ReserveFile "${NSISDIR}/Plugins/UserInfo.dll" + ${StrStr} # Supportable for Install Sections and Functions ${StrTok} # Supportable for Install Sections and Functions @@ -164,7 +160,7 @@ Section "Base" SecBase SetOutPath "$INSTDIR\Doc" File "README.txt" - File "README.W32.txt" + File "README-W32.txt" File "COPYING.txt" Call InstallIconv @@ -230,6 +226,11 @@ Section "Documentation" SecDoc File "NEWS.winpt.txt" !endif ; WITH_WINPT +!ifdef WITH_PATCHES + SetOutPath "$INSTDIR\Src" + File '*.diff' +!endif + SectionEnd ; Section Documentation @@ -260,6 +261,18 @@ Section "-Finish" ;;-------------------------- WriteUninstaller "$INSTDIR\uninst-gnupg.exe" + StrCpy $MYTMP "Software\Microsoft\Windows\CurrentVersion\Uninstall\GnuPG" + WriteRegExpandStr HKLM $MYTMP "UninstallString" '"$INSTDIR\uninst-gnupg.exe"' + WriteRegExpandStr HKLM $MYTMP "InstallLocation" "$INSTDIR" + WriteRegStr HKLM $MYTMP "DisplayName" "GNU Privacy Guard" + WriteRegStr HKLM $MYTMP "DisplayIcon" "$INSTDIR\gpg.exe,0" + WriteRegStr HKLM $MYTMP "DisplayVersion" "${VERSION}" + WriteRegStr HKLM $MYTMP "Publisher" "Free Software Foundation" + WriteRegStr HKLM $MYTMP "URLInfoAbout" "http://www.gnupg.org/" + WriteRegDWORD HKLM $MYTMP "NoModify" "1" + WriteRegDWORD HKLM $MYTMP "NoRepair" "1" + + ;;--------------------- ;; Create Menu entries ;;--------------------- @@ -270,7 +283,7 @@ Section "-Finish" CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\GnuPG README.lnk" \ "$INSTDIR\Doc\README.txt" CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\GnuPG README.Windows.lnk" \ - "$INSTDIR\Doc\README.W32.txt" + "$INSTDIR\Doc\README-W32.txt" CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\GnuPG NEWS.lnk" \ "$INSTDIR\Doc\NEWS.txt" @@ -353,7 +366,7 @@ Section "Uninstall" Delete "$INSTDIR\gpgkeys_ldap.exe" Delete "$INSTDIR\Doc\README.txt" - Delete "$INSTDIR\Doc\README.W32.txt" + Delete "$INSTDIR\Doc\README-W32.txt" Delete "$INSTDIR\Doc\COPYING.txt" Delete "$INSTDIR\Doc\COPYING.LIB.txt" Delete "$INSTDIR\Doc\README.iconv.txt" @@ -408,6 +421,7 @@ Section "Uninstall" DeleteRegValue HKCU "Software\GNU\GnuPG" "Start Menu Folder" DeleteRegValue HKLM "Software\GNU\GnuPG" "Install Directory" DeleteRegKey /ifempty HKLM "Software\GNU\GnuPG" + DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\GnuPG" SectionEnd ; Uninstall @@ -438,6 +452,22 @@ Function un.onInit FunctionEnd +;; Check whether the current user is in the Administrator group or +;; an OS version without the need for an Administrator is in use. +;; Print a warning if this is not the case. +Function PrintNonAdminWarning + ClearErrors + UserInfo::GetName + IfErrors leave + Pop $0 + UserInfo::GetAccountType + Pop $1 + StrCmp $1 "Admin" leave +1 + MessageBox MB_OK "$(T_AdminNeeded)" + + leave: +FunctionEnd + Function CustomPageOptions SectionGetFlags ${SecNLS} $R0 @@ -531,6 +561,40 @@ LangString T_About ${LANG_GERMAN} \ \r\n\r\n\r\n\r\n\r\nDies ist GnuPG version ${VERSION}\r\n\ erstellt am $%BUILDINFO%" +; Startup page +LangString T_GPLHeader ${LANG_ENGLISH} \ + "This software is licensed under the terms of the GNU General Public \ + License (GPL) which guarantees your freedom to share and change Free \ + Software." +LangString T_GPLHeader ${LANG_GERMAN}} \ + "Diese Software ist unter der GNU General Public License \ + (GPL) lizensiert; dies gibt Ihnen die Freiheit, sie \ + zu �ndern und weiterzugeben." + +LangString T_GPLShort ${LANG_ENGLISH} \ + "In short: You are allowed to run this software for any purpose. \ + You may distribute it as long as you give the recipients the same \ + rights you have received." +LangString T_GPLShort ${LANG_GERMAN} \ + "In aller K�rze: Sie haben das Recht, die Software zu jedem Zweck \ + einzusetzen. Sie k�nnen die Software weitergeben, sofern Sie dem \ + Empf�nger dieselben Rechte einr�umen, die auch Sie erhalten haben." + + +; Finish page +LangString T_FiniLink ${LANG_ENGLISH} \ + "Visit the GnuPG website for latest news and support" +LangString T_FiniLink ${LANG_GERMAN}} \ + "Zur GnuPG Website mit Neuigkeiten und Hilfsangeboten" + +; From Function PrintNonAdminWarning +LangString T_AdminNeeded ${LANG_ENGLISH} \ + "Warning: Administrator permissions required for a successful installation" +LangString T_AdminNeeded ${LANG_GERMAN} \ + "Warnung: Administrator Reche werden f�r eine erfolgreiche \ + Installation ben�tigt." + + ; Installation options like language used for GnuPG LangString T_InstallOptions ${LANG_ENGLISH} "Install Options" LangString T_InstallOptions ${LANG_GERMAN} "Installationsoptionen" |