mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Wininstaller2, code readability
This commit is contained in:
parent
ab31598e04
commit
269f847580
@ -258,21 +258,24 @@
|
||||
Exch $9 # resultRegIdx
|
||||
FunctionEnd
|
||||
|
||||
!macro CreatePrepareShellCTXFun UnPrefix
|
||||
Function ${UnPrefix}PrepareShellCTX
|
||||
${if} $MultiUser.InstallMode == "CurrentUser"
|
||||
SetShellVarContext current
|
||||
${Else}
|
||||
SetShellVarContext all
|
||||
${EndIf}
|
||||
${If} ${RunningX64}
|
||||
SetRegView ${APP_ARCHITECTURE}
|
||||
${EndIf}
|
||||
FunctionEnd
|
||||
!macro PrepareShellCTX
|
||||
${if} $MultiUser.InstallMode == "CurrentUser"
|
||||
SetShellVarContext current
|
||||
${Else}
|
||||
SetShellVarContext all
|
||||
${EndIf}
|
||||
${If} ${RunningX64}
|
||||
SetRegView ${APP_ARCHITECTURE}
|
||||
${EndIf}
|
||||
!macroend
|
||||
|
||||
!insertmacro CreatePrepareShellCTXFun ""
|
||||
!insertmacro CreatePrepareShellCTXFun "un."
|
||||
|
||||
Function PrepareShellCTX
|
||||
!insertmacro PrepareShellCTX
|
||||
FunctionEnd
|
||||
|
||||
Function un.PrepareShellCTX
|
||||
!insertmacro PrepareShellCTX
|
||||
FunctionEnd
|
||||
|
||||
#-------------------------------------------------------------
|
||||
# - - - - - - - - - - - - Sections - - - - - - - - - - - - - -
|
||||
|
Loading…
Reference in New Issue
Block a user