2007-02-08 21:09:30 +00:00
|
|
|
/*
|
|
|
|
|
|
|
|
Reinstall options
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2007-02-26 16:03:30 +00:00
|
|
|
#--------------------------------
|
|
|
|
#Page functions
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
|
|
Function PageReinstall
|
|
|
|
|
2007-03-23 02:03:42 +00:00
|
|
|
# Check whether this version is already installed
|
|
|
|
# If so, some registry key like Software/lyx15 should exist
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
|
|
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"
|
|
|
|
|
2007-03-23 02:03:42 +00:00
|
|
|
# if re-installation, hide many sections
|
|
|
|
# FIXME: where is SelectSection defined?
|
2007-02-08 21:09:30 +00:00
|
|
|
${if} $R0 == "1"
|
|
|
|
!insertmacro SelectSection ${SecCore}
|
|
|
|
${else}
|
|
|
|
!insertmacro UnselectSection ${SecCore}
|
|
|
|
${endif}
|
|
|
|
|
2007-03-23 02:03:42 +00:00
|
|
|
FunctionEnd
|