If the OS is 32 bit, the custom page will display a link to download the 32 bit installer, and only has "exit" button available to quit the installer.
Any examples on how this can be done?
So far I have the following snippets that detect the OS and make decisions as to whether to skip the custom page or display it.
p.s. what is the correct method to change the body of the page? I've only found MUI_HEADER_TEXT to change the headers.;Page showing download link for 32bit if OS is 32bit
Page custom Download32bit
#Custom page function to ask user to download 32bit installer
Function Download32bit
# Check if OS is 64 bit
${If} ${RunningX64}
Goto passOSCheck
${Else}
!insertmacro MUI_HEADER_TEXT $(DOWNLOAD32BIT_TITLE) $(DOWNLOAD32BIT_SUBTITLE)
MessageBox MB_OK "Your Operating System is 32-bit, please download HexSight 32bit installer."
Quit
${EndIf}
passOSCheck:
FunctionEnd
LangString DOWNLOAD32BIT_TITLE ${LANG_ENGLISH} "Download HexSight 32-bit"
LangString DOWNLOAD32BIT_SUBTITLE ${LANG_ENGLISH} "Please visit download 32-bit installer"