1

NSIS allows you to insert data on to the back of their exe files and then allows you to be able to read that data back during installation:

http://nsis.sourceforge.net/ReadCustomerData

How do I append my exe file with text data in a linux server environment?

Edit (from comment):
I've got a pre-compiled .exe file, I merely want to append data to it to satisfy the criteria here: nsis.sourceforge.net/ReadCustomerData, does any one with NSIS experience know if I could do something like echo "mydata:hello,world" >> installer.exe?

Nifle
  • 34,998
arcanine
  • 111

1 Answers1

0

Seems like yes this can be done, I'm doing it in PHP on download, simply echo your additional data along with your file and that data can be read by the NSIS installer without recompiling your application without corrupting the binary

echo "mydata:hello,world" >> installer.exe would work too (on any OS) add the function included on the wiki to your nsis script then use something like to call the function and read the data:

Push "mydata:"
Call ReadCustomerData
Pop $R1
StrCmp $R1 "" 0 +3
MessageBox MB_OK "No data found"
Abort
MessageBox MB_OK "Customer data: '$R1'"
arcanine
  • 111