Contrib/ExperienceUI/XPUI.nsh
changeset 5 1fdcff916039
parent 4 6e80a6828d0a
child 7 4b8e729b72fc
equal deleted inserted replaced
4:6e80a6828d0a 5:1fdcff916039
   367 
   367 
   368 !macro XPUI_INSTALLOPTIONS_EXTRACT FILE
   368 !macro XPUI_INSTALLOPTIONS_EXTRACT FILE
   369   !verbose push
   369   !verbose push
   370   !verbose ${XPUI_VERBOSE}
   370   !verbose ${XPUI_VERBOSE}
   371   InitPluginsDir
   371   InitPluginsDir
   372   File `/oname=$PLUGINSDIR\${FILE}` `${FILE}`
   372   IfFileExists "$PLUGINSDIR\${FILENAME}" +2
       
   373     File `/oname=$PLUGINSDIR\${FILE}` `${FILE}`
       
   374   
   373   !insertmacro XPUI_INSTALLOPTIONS_WRITE `${FILE}` `Settings` `RTL` `$(^RTL)`
   375   !insertmacro XPUI_INSTALLOPTIONS_WRITE `${FILE}` `Settings` `RTL` `$(^RTL)`
   374   !verbose pop
   376   !verbose pop
   375 !macroend
   377 !macroend
   376 
   378 
   377 !macro XPUI_INSTALLOPTIONS_EXTRACT_AS FILE FILENAME
   379 !macro XPUI_INSTALLOPTIONS_EXTRACT_AS FILE FILENAME
   378   !verbose push
   380   !verbose push
   379   !verbose ${XPUI_VERBOSE}
   381   !verbose ${XPUI_VERBOSE}
   380   InitPluginsDir
   382   InitPluginsDir
   381   File `/oname=$PLUGINSDIR\${FILENAME}` `${FILE}`
   383   IfFileExists "$PLUGINSDIR\${FILENAME}" +2
       
   384     File `/oname=$PLUGINSDIR\${FILENAME}` `${FILE}`
       
   385     
   382   !insertmacro XPUI_INSTALLOPTIONS_WRITE `${FILENAME}` `Settings` `RTL` `$(^RTL)`
   386   !insertmacro XPUI_INSTALLOPTIONS_WRITE `${FILENAME}` `Settings` `RTL` `$(^RTL)`
   383   !verbose pop
   387   !verbose pop
   384 !macroend
   388 !macroend
   385 
   389 
   386 !macro XPUI_INSTALLOPTIONS_DISPLAY FILE
   390 !macro XPUI_INSTALLOPTIONS_DISPLAY FILE
  1507       !endif
  1511       !endif
  1508       
  1512       
  1509     FindWindow $XPUI_HWND `#32770` `` $HWNDPARENT
  1513     FindWindow $XPUI_HWND `#32770` `` $HWNDPARENT
  1510       
  1514       
  1511     GetDlgItem $XPUI_TEMP1 $XPUI_HWND 1040
  1515     GetDlgItem $XPUI_TEMP1 $XPUI_HWND 1040
  1512     !insertmacro XPUI_CONTROL_SKIN $XPUI_TEMP1
  1516     !insertmacro XPUI_CONTROL_SKIN_PAGE $XPUI_TEMP1
  1513     SendMessage $XPUI_TEMP1 0xC 0 `STR:${XPUI_${XPUI_UN}LICENSEPAGE_TEXT_TOP}`
  1517     SendMessage $XPUI_TEMP1 0xC 0 `STR:${XPUI_${XPUI_UN}LICENSEPAGE_TEXT_TOP}`
  1514     
  1518     
  1515     GetDlgItem $XPUI_TEMP1 $XPUI_HWND 1006
  1519     GetDlgItem $XPUI_TEMP1 $XPUI_HWND 1006
  1516     !insertmacro XPUI_CONTROL_SKIN $XPUI_TEMP1
  1520     !insertmacro XPUI_CONTROL_SKIN_PAGE $XPUI_TEMP1
  1517     
  1521     
  1518     GetDlgItem $XPUI_TEMP1 $XPUI_HWND 1034
  1522     GetDlgItem $XPUI_TEMP1 $XPUI_HWND 1034
  1519     !insertmacro XPUI_CONTROL_SKIN_LIGHT $XPUI_TEMP1
  1523     !insertmacro XPUI_CONTROL_SKIN_LIGHT $XPUI_TEMP1
  1520     
  1524     
  1521     GetDlgItem $XPUI_TEMP1 $XPUI_HWND 1035
  1525     GetDlgItem $XPUI_TEMP1 $XPUI_HWND 1035
  1522     !insertmacro XPUI_CONTROL_SKIN_LIGHT $XPUI_TEMP1
  1526     !insertmacro XPUI_CONTROL_SKIN_LIGHT $XPUI_TEMP1
  1523     
       
  1524     !insertmacro XPUI_CONTROL_SKIN $XPUI_HWND
       
  1525     
  1527     
  1526     !ifndef XPUI_${XPUI_UN}LICENSEPAGE_RADIOBUTTONS
  1528     !ifndef XPUI_${XPUI_UN}LICENSEPAGE_RADIOBUTTONS
  1527       !ifndef XPUI_${XPUI_UN}LICENSEPAGE_CHECKBOX
  1529       !ifndef XPUI_${XPUI_UN}LICENSEPAGE_CHECKBOX
  1528         !insertmacro XPUI_INNERDIALOG_TEXT `${XPUI_${XPUI_UN}LICENSEPAGE_TEXT_BOTTOM}` 1006
  1530         !insertmacro XPUI_INNERDIALOG_TEXT `${XPUI_${XPUI_UN}LICENSEPAGE_TEXT_BOTTOM}` 1006
  1529       !endif
  1531       !endif
  1534     !endif
  1536     !endif
  1535     
  1537     
  1536     !ifdef XPUI_${XPUI_UN}LICENSEPAGE_RADIOBUTTONS
  1538     !ifdef XPUI_${XPUI_UN}LICENSEPAGE_RADIOBUTTONS
  1537     !insertmacro XPUI_INNERDIALOG_TEXT `${XPUI_${XPUI_UN}LICENSEPAGE_TEXT_BOTTOM}` 1006
  1539     !insertmacro XPUI_INNERDIALOG_TEXT `${XPUI_${XPUI_UN}LICENSEPAGE_TEXT_BOTTOM}` 1006
  1538     !endif
  1540     !endif
       
  1541     
       
  1542     !insertmacro XPUI_CONTROL_SKIN_PAGE $XPUI_HWND
  1539     
  1543     
  1540     !insertmacro XPUI_PAGE_CUSTOMFUNCTION SHOW
  1544     !insertmacro XPUI_PAGE_CUSTOMFUNCTION SHOW
  1541     
  1545     
  1542     LockWindow off
  1546     LockWindow off
  1543   FunctionEnd
  1547   FunctionEnd