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,21 +258,24 @@
Exch $9 # resultRegIdx Exch $9 # resultRegIdx
FunctionEnd FunctionEnd
!macro CreatePrepareShellCTXFun UnPrefix !macro PrepareShellCTX
Function ${UnPrefix}PrepareShellCTX ${if} $MultiUser.InstallMode == "CurrentUser"
${if} $MultiUser.InstallMode == "CurrentUser" SetShellVarContext current
SetShellVarContext current ${Else}
${Else} SetShellVarContext all
SetShellVarContext all ${EndIf}
${EndIf} ${If} ${RunningX64}
${If} ${RunningX64} SetRegView ${APP_ARCHITECTURE}
SetRegView ${APP_ARCHITECTURE} ${EndIf}
${EndIf}
FunctionEnd
!macroend !macroend
!insertmacro CreatePrepareShellCTXFun "" Function PrepareShellCTX
!insertmacro CreatePrepareShellCTXFun "un." !insertmacro PrepareShellCTX
FunctionEnd
Function un.PrepareShellCTX
!insertmacro PrepareShellCTX
FunctionEnd
#------------------------------------------------------------- #-------------------------------------------------------------
# - - - - - - - - - - - - Sections - - - - - - - - - - - - - - # - - - - - - - - - - - - Sections - - - - - - - - - - - - - -