mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-04 14:20:05 +00:00
35 lines
700 B
Plaintext
35 lines
700 B
Plaintext
|
/*
|
||
|
|
||
|
Reinstall options
|
||
|
|
||
|
*/
|
||
|
|
||
|
;--------------------------------
|
||
|
;Page functions
|
||
|
|
||
|
Function PageReinstall
|
||
|
|
||
|
;Check whether this version is already installed
|
||
|
|
||
|
ReadRegStr $R0 SHELL_CONTEXT ${APP_REGKEY} "Version"
|
||
|
|
||
|
${if} $R0 != "${APP_VERSION}"
|
||
|
Abort
|
||
|
${endif}
|
||
|
|
||
|
!insertmacro MUI_HEADER_TEXT $(TEXT_REINSTALL_TITLE) $(TEXT_REINSTALL_SUBTITLE)
|
||
|
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "reinstall.ini"
|
||
|
|
||
|
FunctionEnd
|
||
|
|
||
|
Function PageReinstallValidate
|
||
|
|
||
|
!insertmacro MUI_INSTALLOPTIONS_READ $R0 "reinstall.ini" "Field 2" "State"
|
||
|
|
||
|
${if} $R0 == "1"
|
||
|
!insertmacro SelectSection ${SecCore}
|
||
|
${else}
|
||
|
!insertmacro UnselectSection ${SecCore}
|
||
|
${endif}
|
||
|
|
||
|
FunctionEnd
|