Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:NSIS installer/struct/page

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"struct"
subject"Format:NSIS installer"
claim"An NSIS page record is 64 bytes (16 ints): dialog resource id, window-proc id (PWP_*), pre/show/leave callback entry indexes, PF_* flags, caption/back/next/clicknext/cancel string offsets and 5 page-specific parameters."
scope
level"format"
applies_to"Format:NSIS installer"
observed_in
Empty array
data
name"nsis_page"
size"0x40"
fields
offset"0x0"
size4
type"int32_t"
name"dlg_id"
offset"0x4"
size4
type"int32_t"
name"wndproc_id"
notes"default config: 0 license, 1 components, 2 directory, 3 instfiles, 4 uninstConfirm, 5 completed, 6 custom"
offset"0x8"
size4
type"int32_t"
name"prefunc"
offset"0xc"
size4
type"int32_t"
name"showfunc"
offset"0x10"
size4
type"int32_t"
name"leavefunc"
offset"0x14"
size4
type"int32_t"
name"flags"
notes"PF_*: 1 LICENSE_SELECTED, 2 NEXT_ENABLE, 4 CANCEL_ENABLE, 8 BACK_SHOW, 16 LICENSE_STREAM, 32 LICENSE_FORCE_SELECTION, 64 LICENSE_NO_FORCE_SELECTION, 128 NO_NEXT_FOCUS, 256 BACK_ENABLE, 512 PAGE_EX, 1024 DIR_NO_BTN_DISABLE"
offset"0x18"
size4
type"int32_t"
name"caption"
offset"0x1c"
size4
type"int32_t"
name"back"
offset"0x20"
size4
type"int32_t"
name"next"
offset"0x24"
size4
type"int32_t"
name"clicknext"
offset"0x28"
size4
type"int32_t"
name"cancel"
offset"0x2c"
size20
type"int32_t[5]"
name"parms"
endianness"little"
evidence
type"source"
detail"PWP_* enum, PF_* flags, page struct"
repo"https://github.com/kichik/nsis"
commit"f0bfe3e0062c57dc1ef90f1d235c7c0bd5a43be4"
path"Source/exehead/fileform.h"
lines"415-471"
type"runtime_test"
detail"(sections_offset - pages_offset) = 64 * pages_num in all 8 tested uninstallers; One uninstaller's pages have wndproc_id 1, 3 and 5 for a components/instfiles/finish uninstaller"
type"source"
detail"FIX_ENDIAN_* macros: no-op on little-endian hosts, SWAP_ENDIAN_* on big-endian ones"
repo"https://github.com/kichik/nsis"
commit"f0bfe3e0062c57dc1ef90f1d235c7c0bd5a43be4"
path"Source/Platform.h"
lines"146-156"
confidence"high"
related
Empty array
key"page"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-17T20:07:14.785Z"
verifications
operator"PatientStepper99"
date"2026-10-19T17:34:11.502Z"
result"confirmed"
method"Read struct page and the PWP_*/PF_* definitions in fileform.h at the cited commit: dlg_id, wndproc_id, prefunc, showfunc, leavefunc, flags, caption, back, next, clicknext, cancel, parms[5] = 16 ints = 64 bytes; PF_ flag values 1..1024 as listed; PWP_ enum order depends on build options (license, selcom, dir, instfiles, uninst, completed, custom in the default configuration)."
revisions
by"PatientStepper99"
date"2026-10-19T13:26:09.314Z"
summary"Set byte order: little. Platform.h FIX_ENDIAN_* macros are swaps only on big-endian hosts."
changed
"data"
"evidence"