Archive: Example of README page and Pocket PC installation


Example of README page and Pocket PC installation
Hi,

Why I wonder NSIS MUI does not have README page?
So I make my own, look at the function:

Function ReadmePage

!insertmacro MUI_HEADER_TEXT "Release notes" "Pleas read"
!insertmacro MUI_INSTALLOPTIONS_INITDIALOG "readme.ini"
Pop $HWND ;HWND of dialog
GetDlgItem $DLGITEM $HWND 1200 ;1200 + Field number - 1

;$DLGITEM contains the HWND of the first field
SetCtlColors $DLGITEM "" "${MUI_BGCOLOR}"

; clear the field
SendMessage $DLGITEM ${WM_SETTEXT} 1 "STR: "

FileOpen $1 "readme.txt" "r"
loop:
FileRead $1 $2
SendMessage $DLGITEM 0x00C2 0 "STR:$2"
IfErrors 0 loop
FileClose $1
SendMessage $DLGITEM 0x00B1 0 0
SendMessage $DLGITEM 0x00B7 0 0

!insertmacro MUI_INSTALLOPTIONS_SHOW

FunctionEnd

This example as well shows how can you write a perfect installer for Pocket PC/Smartphone application.

All files are attached. I suppose it could be in NSIS wiki.


For another readme/info page (non-InstallOptions), see http://forums.winamp.com/showthread....50#post1846450


Updated some WinCE stuff in installer and removed using of MUI_INSTALLOPTIONS_EXTRACT for extracting readme.txt file because it add "[settings] RTL=0".

Attached.


forgotten attach.