From c8e9a6f24b6ac577cb145ea73ba6a7a30308c1ad Mon Sep 17 00:00:00 2001 From: joostverburg Date: Sat, 5 Nov 2005 16:57:51 +0000 Subject: [PATCH] * no need to call ClearErrors after IfErrors * documented error flag for Library macros git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4375 212acab6-be3b-0410-9dea-997c60f758d6 --- Docs/src/library.but | 4 ++-- Include/Library.nsh | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Docs/src/library.but b/Docs/src/library.but index 9400e757..ba127331 100644 --- a/Docs/src/library.but +++ b/Docs/src/library.but @@ -31,7 +31,7 @@ Note that you can only compile scripts using this system on Windows systems. It \S1{} Introduction -The InstallLib macro allows you to install a library. +The InstallLib macro allows you to install a library. It sets the error flag if something went wrong during library setup. To ask the user for a reboot if required, use the Modern UI with a Finish page or use \R{ifrebootflag}{IfRebootFlag} and make your own page or message box. @@ -132,7 +132,7 @@ LIBRARY_COM \S1{} Introduction -The UnInstallLib macro allows you to uninstall a library. +The UnInstallLib macro allows you to uninstall a library. It sets the error flag if something went wrong during library removal. \S1{} Parameters diff --git a/Include/Library.nsh b/Include/Library.nsh index a745f085..6d41e0f6 100644 --- a/Include/Library.nsh +++ b/Include/Library.nsh @@ -344,8 +344,6 @@ Call ":installlib.file_${INSTALLLIB_UNIQUE}" IfErrors 0 "installlib.register_${INSTALLLIB_UNIQUE}" - - ClearErrors SetOverwrite lastused