Wininstaller2, code readability

This commit is contained in:
Eugene Chornyi 2020-07-17 21:18:17 +02:00
parent ab31598e04
commit 269f847580

View File

@ -258,8 +258,7 @@
Exch $9 # resultRegIdx
FunctionEnd
!macro CreatePrepareShellCTXFun UnPrefix
Function ${UnPrefix}PrepareShellCTX
!macro PrepareShellCTX
${if} $MultiUser.InstallMode == "CurrentUser"
SetShellVarContext current
${Else}
@ -268,11 +267,15 @@
${If} ${RunningX64}
SetRegView ${APP_ARCHITECTURE}
${EndIf}
FunctionEnd
!macroend
!insertmacro CreatePrepareShellCTXFun ""
!insertmacro CreatePrepareShellCTXFun "un."
Function PrepareShellCTX
!insertmacro PrepareShellCTX
FunctionEnd
Function un.PrepareShellCTX
!insertmacro PrepareShellCTX
FunctionEnd
#-------------------------------------------------------------
# - - - - - - - - - - - - Sections - - - - - - - - - - - - - -