3 Option to download GSView (PDF/Postscript viewer)
7 #--------------------------------
10 Section -Viewer ExternalViewer
11 !insertmacro ExternalComponent Viewer
14 #--------------------------------
17 Function InitSizeViewer
19 #Get size of viewer installer
21 SectionGetSize ${ExternalViewer} $SizeViewer
23 !ifndef SETUPTYPE_BUNDLE
25 IntOp $SizeViewer $SizeViewer + ${SIZE_DOWNLOAD_VIEWER}
30 #--------------------------------
35 #Show page if no viewer is installed, the user has Power User or Administrator priviledges and
36 #Ghostscript is installed or will be installed
38 ${if} $AdminOrPowerUser == ${FALSE}
39 ${orif} $PathViewer == "associated"
43 ${if} $PathGhostscript == ""
44 ${andif} $SetupGhostscript == ${FALSE}
45 !insertmacro SetComponentState $R0 Viewer
49 !insertmacro MUI_HEADER_TEXT $(TEXT_VIEWER_TITLE) $(TEXT_VIEWER_SUBTITLE)
50 !insertmacro MUI_INSTALLOPTIONS_DISPLAY "viewer.ini"
54 Function PageViewerValidate
57 !insertmacro MUI_INSTALLOPTIONS_READ $R0 "viewer.ini" "Field 2" "State"
58 !insertmacro SetComponentState $R0 Viewer