Examples/ExperienceUI/MultiLang.nsi
changeset 0 d5ce4c64ef88
child 13 2ae1abe546fd
equal deleted inserted replaced
-1:000000000000 0:d5ce4c64ef88
       
     1 ;SetCompress off
       
     2 SetCompressor /FINAL lzma
       
     3 OutFile MultiLang.exe
       
     4 Name "ExperienceUI Multi-Language Test"
       
     5 ;Name /LANG=10332 "ExperienceUI Multi-Language Test, Weelah!"
       
     6 ;Name /LANG=10331 "ExperienceUI Multi-Language Test2"
       
     7 installdir $PROGRAMFILES
       
     8 
       
     9 ;!define XPUI_SKIN "Windows XP"
       
    10 !define XPUI_WANSIS
       
    11 !define XPUI_ABORTWARNING
       
    12 !define XPUI_WANSIS_SKIN LCD
       
    13 !define XPUI_WANSIS_HEADERIMAGE
       
    14 !define XPUI_DISABLEBG
       
    15 !define XPUI_BOTTOMIMAGE
       
    16 ;!define XPUI_LANGDLL_REGISTRY_ROOT HKCU
       
    17 ;!define XPUI_LANGDLL_REGISTRY_KEY Software\XPUIMultiLangTest
       
    18 ;!define XPUI_LANGDLL_REGISTRY_VALUENAME Language
       
    19 !define XPUI_LICENSEBKCOLOR 566878
       
    20 !define XPUI_LICENSEPAGE_RADIOBUTTONS
       
    21 !include XPUI.nsh
       
    22 !verbose 4
       
    23 
       
    24 !insertmacro XPUI_PAGE_WELCOME
       
    25 !insertmacro XPUI_PAGE_WELCOME2
       
    26 !insertmacro XPUI_PAGE_LICENSE "${NSISDIR}\Contrib\ExperienceUI\License.rtf"
       
    27 !insertmacro XPUI_PAGE_COMPONENTS
       
    28 !insertmacro XPUI_PAGE_DIRECTORY
       
    29 !insertmacro XPUI_PAGE_INSTCONFIRM
       
    30 !insertmacro XPUI_PAGE_INSTFILES
       
    31 !insertmacro XPUI_PAGE_INSTSUCCESS
       
    32 !insertmacro XPUI_PAGE_FINISH
       
    33 !insertmacro XPUI_PAGE_ABORT
       
    34 
       
    35 !insertmacro XPUI_PAGEMODE_UNINST
       
    36 !insertmacro XPUI_PAGE_WELCOME
       
    37 !insertmacro XPUI_PAGE_WELCOME2
       
    38 !insertmacro XPUI_PAGE_LICENSE "${NSISDIR}\Contrib\ExperienceUI\License.rtf"
       
    39 !insertmacro XPUI_PAGE_COMPONENTS
       
    40 !insertmacro XPUI_PAGE_DIRECTORY
       
    41 !insertmacro XPUI_PAGE_UNINSTCONFIRM_NSIS
       
    42 !insertmacro XPUI_PAGE_INSTCONFIRM
       
    43 !insertmacro XPUI_PAGE_INSTFILES
       
    44 !insertmacro XPUI_PAGE_INSTSUCCESS
       
    45 !insertmacro XPUI_PAGE_FINISH
       
    46 !insertmacro XPUI_PAGE_ABORT
       
    47 
       
    48 !insertmacro XPUI_LANGUAGE "English"
       
    49 !insertmacro XPUI_LANGUAGE "French"
       
    50 !insertmacro XPUI_LANGUAGE "German"
       
    51 !insertmacro XPUI_LANGUAGE "PortugueseBR"
       
    52 !insertmacro XPUI_LANGUAGE "Spanish"
       
    53 
       
    54 Function .onInit
       
    55 !insertmacro XPUI_LANGPAGE_DISPLAY
       
    56 WriteUninstaller $DESKTOP\MultiLangUninst.exe
       
    57 FunctionEnd
       
    58 
       
    59 Function un.onInit
       
    60 !insertmacro XPUI_UNGETLANGUAGE
       
    61 FunctionEnd
       
    62 
       
    63 Section "[There is no data to install]" Sec
       
    64 SectionIn RO
       
    65 SectionEnd
       
    66 
       
    67 !insertmacro XPUI_FUNCTION_DESCRIPTION_BEGIN
       
    68 !insertmacro XPUI_DESCRIPTION_TEXT ${Sec} "Description text goes here."
       
    69 !insertmacro XPUI_FUNCTION_DESCRIPTION_END
       
    70 
       
    71 Section Uninstall
       
    72 DeleteRegKey HKCU Software\XpuiMultiLangTest
       
    73 SectionEnd
       
    74 
       
    75 !verbose 4