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:
parent
c33f7c361b
commit
e92f1b0675
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue