From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:NSIS installer" |
|---|
| claim | "An NSIS instruction (entry) is 28 bytes: the EW_* opcode and 6 int parameters whose meaning depends on the opcode (string offsets, variable indexes, entry indexes or plain values)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:NSIS installer" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "nsis_entry" |
|---|
| size | "0x1C" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "which" |
|---|
| notes | "EW_* opcode" |
|---|
|
| offset | "0x4" |
|---|
| size | 24 |
|---|
| type | "int32_t[6]" |
|---|
| name | "offsets" |
|---|
| notes | "parm0..parm5" |
|---|
|
|
|---|
| endianness | "little" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "MAX_ENTRY_OFFSETS 6; struct entry" |
|---|
| repo | "https://github.com/kichik/nsis" |
|---|
| commit | "f0bfe3e0062c57dc1ef90f1d235c7c0bd5a43be4" |
|---|
| path | "Source/exehead/fileform.h" |
|---|
| lines | "44, 406-413" |
|---|
|
| type | "runtime_test" |
|---|
| detail | "(strings_offset - entries_offset) = 28 * entries_num in all 8 tested uninstallers" |
|---|
|
| 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 | |
|---|
| key | "entry" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T20:07:14.714Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T17:34:11.166Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read typedef struct entry {int which; int offsets[MAX_ENTRY_OFFSETS]} in Source/exehead/fileform.h at the cited commit (MAX_ENTRY_OFFSETS 6 per the fact's line 44, not re-read) = 28 bytes; Platform.h FIX_ENDIAN_* are identity unless __BIG_ENDIAN__, so little endian." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T13:26:09.022Z" |
|---|
| summary | "Set byte order: little. NSIS Platform.h defines FIX_ENDIAN_INT32/16 as identity unless __BIG_ENDIAN__ (then byte swaps), so installer data is little-endian." |
|---|
| changed | |
|---|
|
|
|---|