All pastes #469383 Raw Edit

Untitled

public text v1 · immutable
·published 2007-05-03 18:43 UTC
rendered paste body
;--------------------------------
; Customized Product Strings

!define COMPANY_NAME    "test"
!define APP_SHORTNAME   "test"
!define APP_FILENAME    "test.exe"
!define APP_VERSION     "1.0"

OutFile "testsetup.exe"

;--------------------------------
; Setup Settings

!include "logiclib.nsh"     ; NSIS syntactic sugar
!include "mui.nsh"          ; NSIS Modern UI
!include "sections.nsh"     ; NSIS Section macros

;--------------------------------
; Interface Settings

!define MUI_BGCOLOR "ff00ff"

;--------------------------------
; Pages

!define MUI_PAGE_CUSTOMFUNCTION_SHOW OnWelcomeShow
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH

;--------------------------------
; Page custom functions

Function OnWelcomeShow
    FindWindow $1 "#32770" "" $HWNDPARENT
    SetCtlColors $1 '' '0xffffff'

    GetDlgItem $2 $1 1201
    SetCtlColors $2 '0x000000' '0xffffff'

    GetDlgItem $2 $1 1202
    SetCtlColors $2 '0x000000' '0xffffff'

;    MessageBox MB_OK "Parent: $HWNDPARENT   Child:$1"
FunctionEnd

;--------------------------------
; Languages

!insertmacro MUI_LANGUAGE "English"

;--------------------------------
; Setup Sections

Section "${APP_SHORTNAME}" AppSection
SectionEnd ; AppSection