support for uninstaller

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5779 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2008-11-20 23:39:45 +00:00
parent 0f977a9c4f
commit 8e06903fc9

View file

@ -95,15 +95,21 @@
!define WINVER_VISTA 0x600 !define WINVER_VISTA 0x600
!macro CallArtificialFunction NAME !macro CallArtificialFunction NAME
Call :.${NAME} !ifndef __UNINSTALL__
!ifndef ${NAME}_DEFINED !define CallArtificialFunction_TYPE inst
Goto ${NAME}_DONE !else
!define ${NAME}_DEFINED !define CallArtificialFunction_TYPE uninst
.${NAME}: !endif
Call :.${NAME}${CallArtificialFunction_TYPE}
!ifndef ${NAME}${CallArtificialFunction_TYPE}_DEFINED
Goto ${NAME}${CallArtificialFunction_TYPE}_DONE
!define ${NAME}${CallArtificialFunction_TYPE}_DEFINED
.${NAME}${CallArtificialFunction_TYPE}:
!insertmacro ${NAME} !insertmacro ${NAME}
Return Return
${NAME}_DONE: ${NAME}${CallArtificialFunction_TYPE}_DONE:
!endif !endif
!undef CallArtificialFunction_TYPE
!macroend !macroend
!define CallArtificialFunction `!insertmacro CallArtificialFunction` !define CallArtificialFunction `!insertmacro CallArtificialFunction`