Examples/ExperienceUI/MultiLang.nsi
author Dan
Tue, 26 May 2009 11:20:31 -0400
changeset 4 6e80a6828d0a
parent 0 d5ce4c64ef88
child 13 2ae1abe546fd
permissions -rwxr-xr-x
Fixed artifacts in text boxes and other typable things when XPUI_BGIMAGE is enabled

;SetCompress off
SetCompressor /FINAL lzma
OutFile MultiLang.exe
Name "ExperienceUI Multi-Language Test"
;Name /LANG=10332 "ExperienceUI Multi-Language Test, Weelah!"
;Name /LANG=10331 "ExperienceUI Multi-Language Test2"
installdir $PROGRAMFILES

;!define XPUI_SKIN "Windows XP"
!define XPUI_WANSIS
!define XPUI_ABORTWARNING
!define XPUI_WANSIS_SKIN LCD
!define XPUI_WANSIS_HEADERIMAGE
!define XPUI_DISABLEBG
!define XPUI_BOTTOMIMAGE
;!define XPUI_LANGDLL_REGISTRY_ROOT HKCU
;!define XPUI_LANGDLL_REGISTRY_KEY Software\XPUIMultiLangTest
;!define XPUI_LANGDLL_REGISTRY_VALUENAME Language
!define XPUI_LICENSEBKCOLOR 566878
!define XPUI_LICENSEPAGE_RADIOBUTTONS
!include XPUI.nsh
!verbose 4

!insertmacro XPUI_PAGE_WELCOME
!insertmacro XPUI_PAGE_WELCOME2
!insertmacro XPUI_PAGE_LICENSE "${NSISDIR}\Contrib\ExperienceUI\License.rtf"
!insertmacro XPUI_PAGE_COMPONENTS
!insertmacro XPUI_PAGE_DIRECTORY
!insertmacro XPUI_PAGE_INSTCONFIRM
!insertmacro XPUI_PAGE_INSTFILES
!insertmacro XPUI_PAGE_INSTSUCCESS
!insertmacro XPUI_PAGE_FINISH
!insertmacro XPUI_PAGE_ABORT

!insertmacro XPUI_PAGEMODE_UNINST
!insertmacro XPUI_PAGE_WELCOME
!insertmacro XPUI_PAGE_WELCOME2
!insertmacro XPUI_PAGE_LICENSE "${NSISDIR}\Contrib\ExperienceUI\License.rtf"
!insertmacro XPUI_PAGE_COMPONENTS
!insertmacro XPUI_PAGE_DIRECTORY
!insertmacro XPUI_PAGE_UNINSTCONFIRM_NSIS
!insertmacro XPUI_PAGE_INSTCONFIRM
!insertmacro XPUI_PAGE_INSTFILES
!insertmacro XPUI_PAGE_INSTSUCCESS
!insertmacro XPUI_PAGE_FINISH
!insertmacro XPUI_PAGE_ABORT

!insertmacro XPUI_LANGUAGE "English"
!insertmacro XPUI_LANGUAGE "French"
!insertmacro XPUI_LANGUAGE "German"
!insertmacro XPUI_LANGUAGE "PortugueseBR"
!insertmacro XPUI_LANGUAGE "Spanish"

Function .onInit
!insertmacro XPUI_LANGPAGE_DISPLAY
WriteUninstaller $DESKTOP\MultiLangUninst.exe
FunctionEnd

Function un.onInit
!insertmacro XPUI_UNGETLANGUAGE
FunctionEnd

Section "[There is no data to install]" Sec
SectionIn RO
SectionEnd

!insertmacro XPUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro XPUI_DESCRIPTION_TEXT ${Sec} "Description text goes here."
!insertmacro XPUI_FUNCTION_DESCRIPTION_END

Section Uninstall
DeleteRegKey HKCU Software\XpuiMultiLangTest
SectionEnd

!verbose 4