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
|
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 - - - - - - - - - - - - - -
|
||||||
|
Loading…
Reference in New Issue
Block a user