Contrib/ExperienceUI/MUIConvert.nsh
changeset 0 d5ce4c64ef88
child 27 8dd5c7dfc2de
equal deleted inserted replaced
-1:000000000000 0:d5ce4c64ef88
       
     1 ; ExperienceUI for NSIS
       
     2 ; Converter script
       
     3 ; Implements support for MUI and UMUI defines into ExperienceUI
       
     4 
       
     5 ; Copyright © 2005-2006 Dan Fuhry (dandaman32)
       
     6 
       
     7 !macro XPUI_PAGE_TITLE_CONVERT P
       
     8   !insertmacro XPUI_CONVERT XPUI_${P}PAGE_TITLE MUI_TEXT_${P}_TITLE
       
     9   !insertmacro XPUI_CONVERT XPUI_${P}PAGE_SUBTITLE MUI_TEXT_${P}_SUBTITLE
       
    10 !macroend
       
    11 
       
    12 !macro XPUI_LANGUAGE_CONVERT
       
    13 
       
    14 !verbose push
       
    15 !verbose 1 ; These can be obnoxious
       
    16 
       
    17 ; CONVERSION LIST (VERY LONG)
       
    18 ; LEGEND:
       
    19 
       
    20 ; MACRO                 | XPUI DEFINE                               | MUI/UMUI DEFINE
       
    21 ;                       |                                           |
       
    22 !insertmacro XPUI_CONVERT XPUI_HEADERIMAGE                            MUI_HEADERIMAGE_BITMAP
       
    23 !insertmacro XPUI_CONVERT XPUI_HEADERIMAGE_NORESIZETOFIT              MUI_HEADERIMAGE_BITMAP_NOSTRETCH
       
    24 !insertmacro XPUI_CONVERT XPUI_UNHEADERIMAGE                          MUI_HEADERIMAGE_UNBITMAP
       
    25 !insertmacro XPUI_CONVERT XPUI_UNHEADERIMAGE_NORESIZETOFIT            MUI_HEADERIMAGE_UNBITMAP_NOSTRETCH
       
    26 !insertmacro XPUI_CONVERT XPUI_TEXT_COLOR                             MUI_TEXT_COLOR
       
    27 !insertmacro XPUI_CONVERT XPUI_TEXT_BGCOLOR                           MUI_BGCOLOR
       
    28 !insertmacro XPUI_CONVERT XPUI_TEXT_LIGHTCOLOR                        UMUI_TEXT_LIGHTCOLOR
       
    29 !insertmacro XPUI_CONVERT XPUI_HEADERIMAGE                            UMUI_HEADERIMAGE_BMP
       
    30 !insertmacro XPUI_CONVERT XPUI_UNHEADERIMAGE                          UMUI_UNHEADERIMAGE_BMP
       
    31 !insertmacro XPUI_CONVERT XPUI_ICON                                   MUI_ICON
       
    32 !insertmacro XPUI_CONVERT XPUI_UNICON                                 MUI_UNICON
       
    33 !insertmacro XPUI_CONVERT XPUI_ABORTWARNING_TEXT                      MUI_TEXT_ABORTWARNING
       
    34 !insertmacro XPUI_CONVERT XPUI_ABORTWARNING_TEXT                      MUI_ABORTWARNING_TEXT
       
    35 !insertmacro XPUI_CONVERT XPUI_BRANDINGTEXT_COLOR_BG                  UMUI_BRANDINGTEXTBACKCOLOR
       
    36 !insertmacro XPUI_CONVERT XPUI_BRANDINGTEXT_COLOR_FG                  UMUI_BRANDINGTEXTFRONTCOLOR
       
    37 
       
    38 !insertmacro XPUI_CONVERT XPUI_BOTTOMIMAGE                            UMUI_BOTTOMIMAGE
       
    39 !insertmacro XPUI_CONVERT XPUI_BOTTOMIMAGE_BMP                        UMUI_BOTTOMIMAGE_BMP
       
    40 !insertmacro XPUI_CONVERT XPUI_UNBOTTOMIMAGE                          UMUI_UNBOTTOMIMAGE
       
    41 !insertmacro XPUI_CONVERT XPUI_UNBOTTOMIMAGE_BMP                      UMUI_UNBOTTOMIMAGE_BMP
       
    42 
       
    43 !insertmacro XPUI_CONVERT XPUI_LEFTLOGO                               UMUI_LEFTIMAGE_BMP
       
    44 !insertmacro XPUI_CONVERT XPUI_UNLEFTLOGO                             UMUI_UNLEFTIMAGE_BMP
       
    45 
       
    46 !insertmacro XPUI_CONVERT XPUI_UI                                     MUI_UI
       
    47 !insertmacro XPUI_CONVERT XPUI_UI                                     UMUI_UI
       
    48 
       
    49 !insertmacro XPUI_CONVERT XPUI_LICENSEBKCOLOR                         MUI_LICENSEPAGE_BGCOLOR
       
    50 
       
    51 !insertmacro XPUI_CONVERT XPUI_COMPONENTSPAGE_NODESC                  MUI_COMPONENTSPAGE_NODESC
       
    52 
       
    53 !insertmacro XPUI_CONVERT XPUI_WELCOMEPAGE_TEXT                       MUI_WELCOMEPAGE_TEXT
       
    54 !insertmacro XPUI_CONVERT XPUI_WELCOMEPAGE_TEXT_TOP                   MUI_WELCOMEPAGE_TITLE
       
    55 
       
    56 !insertmacro XPUI_CONVERT XPUI_WELCOMEPAGESTYLE2_TEXT                 MUI_WELCOMEPAGE_TEXT
       
    57 !insertmacro XPUI_CONVERT XPUI_WELCOMEPAGESTYLE2_TEXT_TOP             MUI_WELCOMEPAGE_TITLE
       
    58 
       
    59 !insertmacro XPUI_CONVERT XPUI_WELCOMEPAGESTYLE2_TEXT                 MUI_TEXT_WELCOME_INFO_TEXT
       
    60 !insertmacro XPUI_CONVERT XPUI_WELCOMEPAGESTYLE2_TEXT_TOP             MUI_TEXT_WELCOME_INFO_TITLE
       
    61 
       
    62 !ifdef MUI_TEXT_WELCOME_INFO_TEXT
       
    63   !insertmacro XPUI_DEFAULT XPUI_WELCOMEPAGE_TEXT `${MUI_TEXT_WELCOME_INFO_TEXT}`
       
    64 !endif
       
    65 
       
    66 !insertmacro XPUI_CONVERT XPUI_WELCOMEPAGE_TEXT_TOP                   MUI_TEXT_WELCOME_INFO_TITLE
       
    67 
       
    68 !insertmacro XPUI_CONVERT XPUI_WELCOMEPAGESTYLE2_TEXT                 MUI_WELCOME_INFO_TEXT
       
    69 !insertmacro XPUI_CONVERT XPUI_WELCOMEPAGESTYLE2_TEXT_TOP             MUI_WELCOME_INFO_TITLE
       
    70 
       
    71 !insertmacro XPUI_CONVERT XPUI_LICENSEPAGE_TEXT_TOP                   MUI_LICENSEPAGE_TEXT_TOP
       
    72 !insertmacro XPUI_CONVERT XPUI_LICENSEPAGE_TEXT_BOTTOM                MUI_LICENSEPAGE_TEXT_BOTTOM
       
    73 !insertmacro XPUI_CONVERT XPUI_LICENSEPAGE_CHECKBOX                   MUI_LICENSEPAGE_CHECKBOX
       
    74 !insertmacro XPUI_CONVERT XPUI_LICENSEPAGE_CHECKBOX_TEXT              MUI_LICENSEPAGE_CHECKBOX_TEXT
       
    75 !insertmacro XPUI_CONVERT XPUI_LICENSEPAGE_RADIOBUTTONS               MUI_LICENSEPAGE_RADIOBUTTONS
       
    76 !insertmacro XPUI_CONVERT XPUI_LICENSEPAGE_RADIOBUTTONS_TEXT_AGREE    MUI_LICENSEPAGE_RAGIOBUTTONS_TEXT_ACCEPT
       
    77 !insertmacro XPUI_CONVERT XPUI_LICENSEPAGE_RADIOBUTTONS_TEXT_DECLINE  MUI_LICENSEPAGE_RAGIOBUTTONS_TEXT_DECLINE
       
    78 !insertmacro XPUI_CONVERT XPUI_LICENSEPAGE_TEXT_TOP                   MUI_INNERTEXT_LICENSE_TOP
       
    79 !insertmacro XPUI_CONVERT XPUI_LICENSEPAGE_TEXT_BOTTOM                MUI_INNERTEXT_LICENSE_BOTTOM
       
    80 
       
    81 ; MUI Japanese Translation license page checkbox text has a `...
       
    82 !insertmacro XPUI_CONVERT_QUOTE_ALT XPUI_LICENSEPAGE_CHECKBOX_TEXT    MUI_INNERTEXT_LICENSE_BOTTOM_CHECKBOX
       
    83 !insertmacro XPUI_CONVERT_QUOTE_ALT XPUI_LICENSEPAGE_CHECKBOX_TEXT    MUI_INNERTEXT_LICENSE_BOTTOM_CHECKBOX
       
    84 
       
    85 !insertmacro XPUI_CONVERT XPUI_COMPONENTSPAGE_TEXT_DESCRIPTION_TITLE  MUI_COMPONENTSPAGE_TEXT_DESCRIPTION_TITLE
       
    86 !insertmacro XPUI_CONVERT XPUI_COMPONENTSPAGE_TEXT_DESCRIPTION_INFO   MUI_COMPONENTSPAGE_TEXT_DESCRIPTION_INFO
       
    87 !insertmacro XPUI_CONVERT XPUI_COMPONENTSPAGE_TEXT_DESCRIPTION_TITLE  MUI_INNERTEXT_COMPONENTS_DESCRIPTION_TITLE
       
    88 !insertmacro XPUI_CONVERT XPUI_COMPONENTSPAGE_TEXT_DESCRIPTION_INFO   MUI_INNERTEXT_COMPONENTS_DESCRIPTION_INFO
       
    89 
       
    90 !insertmacro XPUI_CONVERT XPUI_DIRECTORYPAGE_TEXT_TOP                 MUI_DIRECTORYPAGE_TEXT_TOP
       
    91 !insertmacro XPUI_CONVERT XPUI_DIRECTORYPAGE_TEXT_DESTINATION         MUI_DIRECTORYPAGE_TEXT_DESTINATION
       
    92 
       
    93 !insertmacro XPUI_CONVERT XPUI_STARTMENUPAGE_TEXT                     MUI_STARTMENUPAGE_TEXT_TOP
       
    94 !insertmacro XPUI_CONVERT XPUI_STARTMENUPAGE_CHECKBOX                 MUI_STARTMENUPAGE_TEXT_CHECKBOX
       
    95 !insertmacro XPUI_CONVERT XPUI_STARTMENUPAGE_TEXT                     MUI_INNERTEXT_STARTMENU_TOP
       
    96 !insertmacro XPUI_CONVERT XPUI_STARTMENUPAGE_CHECKBOX                 MUI_INNERTEXT_STARTMENU_CHECKBOX
       
    97 
       
    98 !insertmacro XPUI_CONVERT XPUI_INSTFILESPAGE_DONE_TITLE               MUI_TEXT_FINISH_TITLE
       
    99 !insertmacro XPUI_CONVERT XPUI_INSTFILESPAGE_DONE_SUBTITLE            MUI_TEXT_FINISH_SUBTITLE
       
   100 
       
   101 !insertmacro XPUI_CONVERT XPUI_${XPUI_UN}FINISHPAGE_TEXT_TOP                        MUI_FINISHPAGE_INFO_TITLE
       
   102 !insertmacro XPUI_CONVERT XPUI_${XPUI_UN}FINISHPAGE_TEXT                            MUI_FINISHPAGE_INFO_TEXT
       
   103 !insertmacro XPUI_CONVERT XPUI_${XPUI_UN}FINISHPAGE_TEXT_RUN                        MUI_FINISHPAGE_INFO_TEXT
       
   104 !insertmacro XPUI_CONVERT XPUI_${XPUI_UN}FINISHPAGE_TEXT_REBOOT                     MUI_FINISHPAGE_INFO_REBOOT
       
   105 !ifdef MUI_FINISHPAGE_RUN
       
   106   !ifndef XPUI_${XPUI_UN}FINISHPAGE_RUN
       
   107     !define XPUI_${XPUI_UN}FINISHPAGE_RUN
       
   108   !endif
       
   109   !ifndef XPUI_${XPUI_UN}FINISHPAGE_RUN_FILE
       
   110     !define XPUI_${XPUI_UN}FINISHPAGE_RUN_FILE "${MUI_FINISHPAGE_RUN}"
       
   111   !endif
       
   112 !endif
       
   113 !insertmacro XPUI_CONVERT XPUI_${XPUI_UN}FINISHPAGE_RUN_FUNCTION                    MUI_FINISHPAGE_RUN_FUNCTION
       
   114 !insertmacro XPUI_CONVERT XPUI_${XPUI_UN}FINISHPAGE_CHECKBOX_RUN                    MUI_FINISHPAGE_RUN_TEXT
       
   115 !insertmacro XPUI_CONVERT XPUI_${XPUI_UN}FINISHPAGE_DOCS                            MUI_FINISHPAGE_SHOWREADME
       
   116 !insertmacro XPUI_CONVERT XPUI_${XPUI_UN}FINISHPAGE_DOCS_FILE                       MUI_FINISHPAGE_SHOWREADME
       
   117 !insertmacro XPUI_CONVERT XPUI_${XPUI_UN}FINISHPAGE_CHECKBOX_DOCS                   MUI_FINISHPAGE_SHOWREADME_TEXT
       
   118 !insertmacro XPUI_CONVERT XPUI_${XPUI_UN}FINISHPAGE_NOREBOOT                        MUI_FINISHPAGE_NOREBOOTSUPPORT
       
   119 !insertmacro XPUI_CONVERT XPUI_${XPUI_UN}FINISHPAGE_LINK_TEXT                       MUI_FINISHPAGE_LINK
       
   120 !insertmacro XPUI_CONVERT XPUI_${XPUI_UN}FINISHPAGE_LINK_LOCATION                   MUI_FINISHPAGE_LINK_LOCATION
       
   121 
       
   122 !ifdef MUI_FINISHPAGE_LINK
       
   123   !insertmacro XPUI_DEFAULT XPUI_${XPUI_UN}FINISHPAGE_LINK ""
       
   124   !insertmacro XPUI_SET XPUI_${XPUI_UN}FINISHPAGE_LINK_TEXT `${MUI_FINISHPAGE_LINK}`
       
   125   !ifdef MUI_FINISHPAGE_LINK_LOCATION
       
   126     !insertmacro XPUI_DEFAULT "XPUI_FINISHPAGE_LINK_LOCATION" "${MUI_FINISHPAGE_LINK_LOCATION}"
       
   127   !endif
       
   128 !endif
       
   129 
       
   130 !insertmacro XPUI_CONVERT XPUI_${XPUI_UN}FINISHPAGE_TEXT_TOP                    MUI_TEXT_FINISH_INFO_TITLE
       
   131 !insertmacro XPUI_CONVERT XPUI_${XPUI_UN}FINISHPAGE_TEXT_TOP_ALT                MUI_TEXT_FINISH_INFO_TITLE
       
   132 !insertmacro XPUI_CONVERT XPUI_${XPUI_UN}FINISHPAGE_TEXT                        MUI_TEXT_FINISH_INFO_TEXT
       
   133 !insertmacro XPUI_CONVERT XPUI_${XPUI_UN}FINISHPAGE_TEXT_REBOOT                 MUI_TEXT_FINISH_INFO_REBOOT
       
   134 
       
   135 !insertmacro XPUI_CONVERT XPUI_FINISH_TEXT_TOP                        MUI_TEXT_FINISH_INFO_TITLE
       
   136 !insertmacro XPUI_CONVERT XPUI_FINISH_TEXT                            MUI_TEXT_FINISH_INFO_TEXT
       
   137 !insertmacro XPUI_CONVERT XPUI_FINISH_TEXT_REBOOT                     MUI_TEXT_FINISH_INFO_REBOOT
       
   138 !insertmacro XPUI_CONVERT XPUI_FINISH_RUN                             MUI_TEXT_FINISH_RUN
       
   139 !insertmacro XPUI_CONVERT XPUI_FINISH_RUN_FILE                        MUI_TEXT_FINISH_RUN
       
   140 !insertmacro XPUI_CONVERT XPUI_FINISH_RUN_FUNCTION                    MUI_TEXT_FINISH_RUN_FUNCTION
       
   141 !insertmacro XPUI_CONVERT XPUI_FINISH_CHECKBOX_RUN                    MUI_TEXT_FINISH_RUN_TEXT
       
   142 !insertmacro XPUI_CONVERT XPUI_FINISH_DOCS                            MUI_TEXT_FINISH_SHOWREADME
       
   143 !insertmacro XPUI_CONVERT XPUI_FINISH_DOCS_FILE                       MUI_TEXT_FINISH_SHOWREADME
       
   144 !insertmacro XPUI_CONVERT XPUI_FINISH_CHECKBOX_DOCS                   MUI_TEXT_FINISH_SHOWREADME_TEXT
       
   145 !insertmacro XPUI_CONVERT XPUI_FINISH_NOREBOOT                        MUI_TEXT_FINISH_NOREBOOTSUPPORT
       
   146 !insertmacro XPUI_CONVERT XPUI_FINISH_LINK                            MUI_TEXT_FINISH_LINK
       
   147 !insertmacro XPUI_CONVERT XPUI_FINISH_LINK_TEXT                       MUI_TEXT_FINISH_LINK
       
   148 
       
   149 !insertmacro XPUI_CONVERT XPUI_${XPUI_UN}FINISHPAGE_TEXT_TOP                    MUI_TEXT_FINISH_INFO_TITLE
       
   150 !insertmacro XPUI_CONVERT XPUI_${XPUI_UN}FINISHPAGE_TEXT_TOP_ALT                MUI_TEXT_FINISH_INFO_TITLE
       
   151 !insertmacro XPUI_CONVERT XPUI_${XPUI_UN}FINISHPAGE_TEXT                        MUI_TEXT_FINISH_INFO_TEXT
       
   152 !insertmacro XPUI_CONVERT XPUI_${XPUI_UN}FINISHPAGE_TEXT_REBOOT                 MUI_TEXT_FINISH_INFO_REBOOT
       
   153 
       
   154 !insertmacro XPUI_CONVERT XPUI_UNINSTCONFIRMPAGE_NSIS_TEXT_TOP        MUI_UNCONFIRMPAGE_TEXT_TOP
       
   155 !insertmacro XPUI_CONVERT XPUI_UNINSTCONFIRMPAGE_NSIS_TEXT_FOLDER     MUI_UNCONFIRMPAGE_TEXT_LOCATION
       
   156 
       
   157 !insertmacro XPUI_CONVERT XPUI_LANGDLL_REGISTRY_ROOT                  MUI_LANGDLL_REGISTRY_ROOT
       
   158 !insertmacro XPUI_CONVERT XPUI_LANGDLL_REGISTRY_KEY                   MUI_LANGDLL_REGISTRY_KEY
       
   159 !insertmacro XPUI_CONVERT XPUI_LANGDLL_REGISTRY_VALUE                 MUI_LANGDLL_REGISTRY_VALUENAME
       
   160 
       
   161 !insertmacro XPUI_CONVERT XPUI_BUTTONTEXT_CLOSE                       MUI_BUTTONTEXT_FINISH
       
   162 
       
   163 !insertmacro XPUI_PAGE_TITLE_CONVERT                                  WELCOME
       
   164 !insertmacro XPUI_PAGE_TITLE_CONVERT                                  LICENSE
       
   165 !insertmacro XPUI_PAGE_TITLE_CONVERT                                  COMPONENTS
       
   166 !insertmacro XPUI_PAGE_TITLE_CONVERT                                  DIRECTORY
       
   167 !insertmacro XPUI_PAGE_TITLE_CONVERT                                  STARTMENU
       
   168 
       
   169 !insertmacro XPUI_CONVERT XPUI_INSTFILESPAGE_TITLE MUI_TEXT_INSTALLING_TITLE
       
   170 !insertmacro XPUI_CONVERT XPUI_INSTFILESPAGE_SUBTITLE MUI_TEXT_INSTALLING_SUBTITLE
       
   171 
       
   172 !insertmacro XPUI_PAGE_TITLE_CONVERT FINISH
       
   173 !insertmacro XPUI_PAGE_TITLE_CONVERT ABORT
       
   174 
       
   175 !verbose pop
       
   176 
       
   177 !macroend
       
   178 
       
   179 # MUI REPLACEMENT MACROS
       
   180 
       
   181 !macro MUI_PAGE_WELCOME
       
   182   !ifdef UMUI_USE_ALTERNATE_PAGE
       
   183     !insertmacro XPUI_PAGE_WELCOME2
       
   184   !else
       
   185     !insertmacro XPUI_PAGE_WELCOME
       
   186   !endif
       
   187 !macroend
       
   188 
       
   189 !macro MUI_PAGE_LICENSE FILE
       
   190   !insertmacro XPUI_PAGE_LICENSE `${FILE}`
       
   191 !macroend
       
   192 
       
   193 !macro MUI_PAGE_COMPONENTS
       
   194   !insertmacro XPUI_PAGE_COMPONENTS
       
   195 !macroend
       
   196 
       
   197 !macro MUI_PAGE_DIRECTORY
       
   198   !insertmacro XPUI_PAGE_DIRECTORY
       
   199 !macroend
       
   200 
       
   201 !macro MUI_PAGE_STARTMENU ID VAR
       
   202   !insertmacro XPUI_PAGE_STARTMENU `${ID}` `${VAR}`
       
   203 !macroend
       
   204 
       
   205 !macro MUI_PAGE_INSTFILES
       
   206   !insertmacro XPUI_PAGE_INSTFILES
       
   207 !macroend
       
   208 
       
   209 !macro MUI_PAGE_FINISH
       
   210   !ifdef UMUI_USE_ALTERNATE_PAGE
       
   211     !insertmacro XPUI_SET XPUI_${XPUI_UN}FINISHPAGE_TEXT_USE_TOP_ALT ``
       
   212   !endif
       
   213   !insertmacro XPUI_PAGE_FINISH
       
   214 !macroend
       
   215 
       
   216 !macro MUI_UNPAGE_WELCOME
       
   217   !insertmacro XPUI_PAGEMODE_UNINST
       
   218   !insertmacro XPUI_PAGE_WELCOME
       
   219 !macroend
       
   220 
       
   221 !macro MUI_UNPAGE_LICENSE FILE
       
   222   !insertmacro XPUI_PAGEMODE_UNINST
       
   223   !insertmacro XPUI_PAGE_LICENSE `${FILE}`
       
   224 !macroend
       
   225 
       
   226 !macro MUI_UNPAGE_COMPONENTS
       
   227   !insertmacro XPUI_PAGEMODE_UNINST
       
   228   !insertmacro XPUI_PAGE_COMPONENTS
       
   229 !macroend
       
   230 
       
   231 !macro MUI_UNPAGE_DIRECTORY
       
   232   !insertmacro XPUI_PAGEMODE_UNINST
       
   233   !insertmacro XPUI_PAGE_DIRECTORY
       
   234 !macroend
       
   235 
       
   236 !macro MUI_UNPAGE_STARTMENU ID VAR
       
   237   !insertmacro XPUI_PAGEMODE_UNINST
       
   238   !insertmacro XPUI_PAGE_STARTMENU `${ID}` `${VAR}`
       
   239 !macroend
       
   240 
       
   241 !macro MUI_UNPAGE_CONFIRM
       
   242   !insertmacro XPUI_PAGEMODE_UNINST
       
   243   !insertmacro XPUI_PAGE_UNINSTCONFIRM_NSIS
       
   244 !macroend
       
   245 
       
   246 !macro MUI_UNPAGE_INSTFILES
       
   247   !insertmacro XPUI_PAGEMODE_UNINST
       
   248   !insertmacro XPUI_PAGE_INSTFILES
       
   249 !macroend
       
   250 
       
   251 !macro MUI_UNPAGE_FINISH
       
   252   !insertmacro XPUI_PAGEMODE_UNINST
       
   253   !insertmacro XPUI_PAGE_FINISH
       
   254 !macroend
       
   255 
       
   256 !macro UMUI_PAGE_CONFIRM
       
   257   !insertmacro XPUI_PAGEMODE_INST
       
   258   !insertmacro XPUI_PAGE_INSTCONFIRM
       
   259 !macroend
       
   260 
       
   261 !macro UMUI_UNPAGE_CONFIRM
       
   262   !insertmacro XPUI_PAGEMODE_UNINST
       
   263   !insertmacro XPUI_PAGE_INSTCONFIRM
       
   264 !macroend
       
   265 
       
   266 !macro UMUI_PAGE_ABORT
       
   267   !insertmacro XPUI_PAGEMODE_INST
       
   268   !insertmacro XPUI_PAGE_ABORT
       
   269 
       
   270   !insertmacro XPUI_UNSET UMUI_ABORTPAGE_LINK
       
   271   !insertmacro XPUI_UNSET UMUI_ABORTPAGE_LINK_LOCATION
       
   272 !macroend
       
   273 
       
   274 !macro UMUI_UNPAGE_ABORT
       
   275   !insertmacro XPUI_PAGEMODE_UNINST
       
   276   !insertmacro XPUI_PAGE_ABORT
       
   277 
       
   278   !insertmacro XPUI_UNSET UMUI_ABORTPAGE_LINK
       
   279   !insertmacro XPUI_UNSET UMUI_ABORTPAGE_LINK_LOCATION
       
   280 !macroend
       
   281 
       
   282 !macro UMUI_LEFT_SETTIME M
       
   283   !insertmacro XPUI_LEFT_SETTIME `${M} minutes`
       
   284 !macroend
       
   285 
       
   286 !macro UMUI_CONFIRMPAGE_TEXTBOX_ADDLINE NULL
       
   287 !macroend
       
   288 
       
   289 !macro UMUI_PAGE_LEFTMESSAGEBOX T C M
       
   290 
       
   291   !insertmacro XPUI_CREATEID
       
   292   Page custom umuilmb.c.${XPUI_UNIQUEID} umuilmb.l.${XPUI_UNIQUEID} ` `
       
   293 
       
   294   Function umuilmb.c.${XPUI_UNIQUEID}
       
   295 
       
   296     StrCmp $XPUI_ABORTED 1 `` +2
       
   297     Abort
       
   298 
       
   299     !insertmacro XPUI_HEADER_TEXT ` ` ` `
       
   300     !insertmacro XPUI_LEFT_MESSAGE `${C}` `${M}` `${T}`
       
   301   FunctionEnd
       
   302 
       
   303   Function umuilmb.l.${XPUI_UNIQUEID}
       
   304     !ifdef UMUI_LEFTMESSAGEBOX_VAR
       
   305       ReadINIStr `$${UMUI_LEFTMESSAGEBOX_VAR}` `$PLUGINSDIR\MBSide.ini` `Settings` `State`
       
   306     !endif
       
   307 
       
   308     !ifdef UMUI_LEFTMESSAGEBOX_LEFTFUNC
       
   309       Call `${UMUI_LEFTMESSAGEBOX_LEFTFUNC}`
       
   310       !undef UMUI_LEFTMESSAGEBOX_LEFTFUNC
       
   311     !endif
       
   312 
       
   313     !ifdef UMUI_LEFT_MESSAGEBOX_LEFTFUNC
       
   314       Call `${UMUI_LEFT_MESSAGEBOX_LEFTFUNC}`
       
   315       !undef UMUI_LEFT_MESSAGEBOX_LEFTFUNC
       
   316     !endif
       
   317 
       
   318   FunctionEnd
       
   319 
       
   320   !insertmacro XPUI_UNSET UMUI_LEFT_MESSAGEBOX_LEFTFUNC
       
   321 !macroend
       
   322 
       
   323 !macro UMUI_UNPAGE_LEFTMESSAGEBOX T C M
       
   324 
       
   325   !insertmacro XPUI_CREATEID
       
   326   UninstPage custom un.umuilmb.c.${XPUI_UNIQUEID} un.umuilmb.l.${XPUI_UNIQUEID} ` `
       
   327 
       
   328   Function un.umuilmb.c.${XPUI_UNIQUEID}
       
   329     !insertmacro XPUI_HEADER_TEXT ` ` ` `
       
   330     !insertmacro XPUI_LEFT_MESSAGE `${C}` `${M}` `${T}`
       
   331   FunctionEnd
       
   332 
       
   333   Function un.umuilmb.l.${XPUI_UNIQUEID}
       
   334     !ifdef UMUI_LEFTMESSAGEBOX_VAR
       
   335       ReadINIStr `$${UMUI_LEFTMESSAGEBOX_VAR}` `$PLUGINSDIR\MBSide.ini` `Settings` `State`
       
   336     !endif
       
   337 
       
   338     !ifdef UMUI_LEFTMESSAGEBOX_LEFTFUNC
       
   339       Call `${UMUI_LEFTMESSAGEBOX_LEFTFUNC}`
       
   340       !undef UMUI_LEFTMESSAGEBOX_LEFTFUNC
       
   341     !endif
       
   342 
       
   343     !ifdef UMUI_LEFT_MESSAGEBOX_LEFTFUNC
       
   344       Call `${UMUI_LEFT_MESSAGEBOX_LEFTFUNC}`
       
   345       !undef UMUI_LEFT_MESSAGEBOX_LEFTFUNC
       
   346     !endif
       
   347 
       
   348   FunctionEnd
       
   349 
       
   350 !macroend
       
   351 
       
   352 !macro MUI_LANGUAGE LANG
       
   353   !insertmacro XPUI_LANGUAGE `${LANG}`
       
   354 !macroend
       
   355 
       
   356 !macro MUI_FUNCTION_DESCRIPTION_BEGIN
       
   357   !insertmacro XPUI_FUNCTION_DESCRIPTION_BEGIN
       
   358 !macroend
       
   359 
       
   360 !macro MUI_DESCRIPTION_TEXT SEC TEXT
       
   361   !insertmacro XPUI_DESCRIPTION_TEXT `${SEC}` `${TEXT}`
       
   362 !macroend
       
   363 
       
   364 !macro MUI_FUNCTION_DESCRIPTION_END
       
   365   !insertmacro XPUI_FUNCTION_DESCRIPTION_END
       
   366 !macroend
       
   367 
       
   368 !macro MUI_HEADER_TEXT T S
       
   369   !insertmacro XPUI_HEADER_TEXT `${T}` `${S}`
       
   370 !macroend
       
   371 
       
   372 !macro MUI_STARTMENU_WRITE_BEGIN ID
       
   373   !insertmacro XPUI_STARTMENU_WRITE_BEGIN '${ID}'
       
   374 !macroend
       
   375 
       
   376 !macro MUI_STARTMENU_WRITE_END
       
   377   !insertmacro XPUI_STARTMENU_WRITE_END
       
   378 !macroend
       
   379 
       
   380 !macro MUI_STARTMENU_GETFOLDER ID VAR
       
   381 
       
   382   !ifdef MUI_STARTMENUPAGE_REGISTRY_ROOT & MUI_STARTMENUPAGE_REGISTRY_KEY & MUI_STARTMENUPAGE_REGISTRY_VALUENAME
       
   383 
       
   384     ReadRegStr $XPUI_TEMP1 `${MUI_STARTMENUPAGE_REGISTRY_ROOT}` `${MUI_STARTMENUPAGE_REGISTRY_KEY}` `${MUI_STARTMENUPAGE_REGISTRY_VALUENAME}`
       
   385       StrCmp $XPUI_TEMP1 `` +3
       
   386         StrCpy `${VAR}` $XPUI_TEMP1
       
   387         Goto +2
       
   388 
       
   389         StrCpy `${VAR}` `${XPUI_STARTMENUPAGE_FOLDER}`
       
   390 
       
   391    !else
       
   392 
       
   393      StrCpy `${VAR}` `${XPUI_STARTMENUPAGE_FOLDER}`
       
   394 
       
   395    !endif
       
   396 
       
   397 !macroend
       
   398 
       
   399 !macro MUI_RESERVEFILE_LANGDLL
       
   400 
       
   401   !verbose push
       
   402   !verbose ${MUI_VERBOSE}
       
   403 
       
   404   ReserveFile `${NSISDIR}\Plugins\LangDLL.dll`
       
   405 
       
   406   !verbose pop
       
   407 
       
   408 !macroend
       
   409 
       
   410 !ifdef MUI_ABORTWARNING
       
   411 !define XPUI_ABORTWARNING
       
   412 !endif
       
   413 
       
   414 !ifdef MUI_UNABORTWARNING
       
   415   !define XPUI_UNABORTWARNING
       
   416 !endif
       
   417 
       
   418 !macro MUI_LANGDLL_DISPLAY
       
   419   !insertmacro XPUI_LANGDLL_DISPLAY
       
   420 !macroend
       
   421 
       
   422 !macro MUI_UNGETLANGUAGE
       
   423   !insertmacro XPUI_UNGETLANGUAGE
       
   424 !macroend
       
   425 
       
   426 !macro MUI_LANGUAGEFILE_BEGIN L
       
   427   !insertmacro XPUI_LANGUAGEFILE_BEGIN ${L}
       
   428 !macroend
       
   429 
       
   430 !macro MUI_LANGUAGEFILE_END
       
   431   !insertmacro XPUI_LANGUAGEFILE_END
       
   432 !macroend
       
   433 
       
   434 # FIXES (DON'T EDIT)
       
   435 
       
   436 !ifdef MUI_COMPONENTSPAGE_CHECKBITMAP
       
   437   !warning `The XPUI system uses a normal CheckBitmap command.`
       
   438   CheckBitmap `${MUI_COMPONENTSPAGE_CHECKBITMAP}`
       
   439 !endif
       
   440 
       
   441 !ifdef MUI_FINISHPAGE_NOAUTOCLOSE
       
   442   AutoCloseWindow false
       
   443 !endif
       
   444 
       
   445 !ifdef MUI_UNFINISHPAGE_NOAUTOCLOSE
       
   446   AutoCloseWindow false
       
   447 !endif
       
   448 
       
   449 !ifdef MUI_COMPONENTSPAGE_TEXT_TOP
       
   450   !ifndef MUI_COMPONENTSPAGE_TEXT_COMPLIST
       
   451     !ifndef MUI_COMPONENTSPAGE_TEXT_INSTTYPE
       
   452       ComponentText `${MUI_COMPONENTSPAGE_TEXT_TOP}`
       
   453     !endif
       
   454   !endif
       
   455 !endif
       
   456 
       
   457 !ifndef MUI_COMPONENTSPAGE_TEXT_TOP
       
   458   !ifdef MUI_COMPONENTSPAGE_TEXT_COMPLIST
       
   459     !ifndef MUI_COMPONENTSPAGE_TEXT_INSTTYPE
       
   460       ComponentText `` `${MUI_COMPONENTSPAGE_TEXT_TOP}`
       
   461     !endif
       
   462   !endif
       
   463 !endif
       
   464 
       
   465 !ifndef MUI_COMPONENTSPAGE_TEXT_TOP
       
   466   !ifndef MUI_COMPONENTSPAGE_TEXT_COMPLIST
       
   467     !ifdef MUI_COMPONENTSPAGE_TEXT_INSTTYPE
       
   468       ComponentText `` `` `${MUI_COMPONENTSPAGE_TEXT_TOP}`
       
   469     !endif
       
   470   !endif
       
   471 !endif
       
   472 
       
   473 !ifdef MUI_COMPONENTSPAGE_TEXT_TOP
       
   474   !ifdef MUI_COMPONENTSPAGE_TEXT_COMPLIST
       
   475     !ifndef MUI_COMPONENTSPAGE_TEXT_INSTTYPE
       
   476       ComponentText `${MUI_COMPONENTSPAGE_TEXT_TOP}` `${MUI_COMPONENTSPAGE_TEXT_COMPLIST}`
       
   477     !endif
       
   478   !endif
       
   479 !endif
       
   480 
       
   481 !ifdef MUI_COMPONENTSPAGE_TEXT_TOP
       
   482   !ifndef MUI_COMPONENTSPAGE_TEXT_COMPLIST
       
   483     !ifdef MUI_COMPONENTSPAGE_TEXT_INSTTYPE
       
   484       ComponentText `${MUI_COMPONENTSPAGE_TEXT_TOP}` `` `${MUI_COMPONENTSPAGE_TEXT_INSTTYPE}`
       
   485     !endif
       
   486   !endif
       
   487 !endif
       
   488 
       
   489 !ifdef MUI_COMPONENTSPAGE_TEXT_TOP
       
   490   !ifdef MUI_COMPONENTSPAGE_TEXT_COMPLIST
       
   491     !ifdef MUI_COMPONENTSPAGE_TEXT_INSTTYPE
       
   492       ComponentText `${MUI_COMPONENTSPAGE_TEXT_TOP}` `${MUI_COMPONENTSPAGE_TEXT_COMPLIST}` `${MUI_COMPONENTSPAGE_TEXT_INSTTYPE}`
       
   493     !endif
       
   494   !endif
       
   495 !endif
       
   496 
       
   497 !ifndef MUI_COMPONENTSPAGE_TEXT_TOP
       
   498   !ifdef MUI_COMPONENTSPAGE_TEXT_COMPLIST
       
   499     !ifdef MUI_COMPONENTSPAGE_TEXT_INSTTYPE
       
   500       ComponentText `` `${MUI_COMPONENTSPAGE_TEXT_COMPLIST}` `${MUI_COMPONENTSPAGE_TEXT_INSTTYPE}`
       
   501     !endif
       
   502   !endif
       
   503 !endif
       
   504 
       
   505 !ifdef UMUI_USE_ALTERNATE_PAGE
       
   506   !insertmacro XPUI_DEFAULT XPUI_${XPUI_UN}FINISHPAGE_TEXT_USE_TOP_ALT ``
       
   507 !endif
       
   508 
       
   509 !ifdef MUI_WELCOMEFINISHPAGE_INI | UMUI_WELCOMEFINISHABORTPAGE_INI
       
   510   !ifndef XPUI_WARNING_MUI_IO
       
   511     !warning `The ExperienceUI does not support custom InstallOptions INI files for pages (yet).  When (if?) this is added, there will be an individual define for each page.`
       
   512     !define XPUI_WARNING_MUI_IO
       
   513   !endif
       
   514 !endif
       
   515 
       
   516 !ifdef MUI_UNWELCOMEFINISHPAGE_INI | UMUI_UNWELCOMEFINISHABORTPAGE_INI
       
   517   !ifndef XPUI_WARNING_MUI_IO
       
   518     !warning `The ExperienceUI does not support custom InstallOptions INI files for pages (yet).  When (if?) this is added, there will be an individual define for each page.`
       
   519     !define XPUI_WARNING_MUI_IO
       
   520   !endif
       
   521 !endif
       
   522 
       
   523 !ifdef MUI_FINISHPAGE_LINK_LOCATION
       
   524 
       
   525   !insertmacro XPUI_CREATEID
       
   526   !define XPUI_${XPUI_UN}FINISHPAGE_LINK_FUNCTION muiOpenLinkLocation.${XPUI_UNIQUEID}
       
   527 
       
   528   Function muiOpenLinkLocation.${XPUI_UNIQUEID}
       
   529     ExecShell open `${MUI_FINISHPAGE_LINK_LOCATION}`
       
   530   FunctionEnd
       
   531 
       
   532 !endif
       
   533 
       
   534 !insertmacro XPUI_LANGUAGE_CONVERT
       
   535 
       
   536 ; ********************************************
       
   537 ; END MODERNUI/ULTRAMODERNUI CONVERSION SCRIPT