fixed UnInstallLib for installers

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4912 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2007-01-27 16:31:26 +00:00
parent c33f7c361b
commit e92f1b0675

View file

@ -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