From e92f1b067552f6ec7e0e463a0160f09aaebcbe48 Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 27 Jan 2007 16:31:26 +0000 Subject: [PATCH] fixed UnInstallLib for installers git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4912 212acab6-be3b-0410-9dea-997c60f758d6 --- Include/Library.nsh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Include/Library.nsh b/Include/Library.nsh index e43675ec..adf59b98 100644 --- a/Include/Library.nsh +++ b/Include/Library.nsh @@ -34,6 +34,7 @@ !include LogicLib.nsh !include FileFunc.nsh +!insertmacro GetParent !insertmacro un.GetParent ### Initialize session id (GUID) @@ -693,7 +694,11 @@ Delete $R0 # Try moving to directory containing the file. - ${un.GetParent} $R1 $R0 + !ifndef __UNINSTALL__ + ${GetParent} $R1 $R0 + !else + ${un.GetParent} $R1 $R0 + !endif GetTempFileName $R0 $R0 Delete $R0 Rename $R1 $R0