check whether function from StrFunc.nsh is already included
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5616 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
1a999b33e1
commit
71b46b45c3
2 changed files with 8 additions and 2 deletions
|
@ -36,9 +36,13 @@ Var MultiUser.InstallMode
|
|||
!insertmacro un.GetParameters
|
||||
!endif
|
||||
!include StrFunc.nsh
|
||||
${StrStr}
|
||||
!ifndef StrStr_INCLUDED
|
||||
${StrStr}
|
||||
!endif
|
||||
!ifndef MULTIUSER_NOUNINSTALL
|
||||
${UnStrStr}
|
||||
!ifndef UnStrStr_INCLUDED
|
||||
${UnStrStr}
|
||||
!endif
|
||||
!endif
|
||||
|
||||
Var MultiUser.Parameters
|
||||
|
|
|
@ -85,12 +85,14 @@ o-----------------------------------------------------------------------------o
|
|||
!echo `${STRFUNC_FUNCMSGPRE}$ {Un${ShortName}} - © ${Credits}${STRFUNC_FUNCMSGPOST}`
|
||||
!verbose pop
|
||||
!define `Un${ShortName}` `!insertmacro FUNCTION_STRING_Un${ShortName}_Call`
|
||||
!define `Un${ShortName}_INCLUDED`
|
||||
Function `un.${ShortName}`
|
||||
!else
|
||||
!echo `${STRFUNC_FUNCMSGPRE}$ {${ShortName}} - © ${Credits}${STRFUNC_FUNCMSGPOST}`
|
||||
!verbose pop
|
||||
!undef `${ShortName}`
|
||||
!define `${ShortName}` `!insertmacro FUNCTION_STRING_${ShortName}_Call`
|
||||
!define `${ShortName}_INCLUDED`
|
||||
Function `${ShortName}`
|
||||
!endif
|
||||
!macroend
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue