Write text to a file
From NSIS Wiki
|Author: rainmanp7 (talk, contrib)|
This example shows you how to write text to a new file.
FileOpen $9 apachesrvin.bat w ;Opens a Empty File an fills it FileWrite $9 "cd $INSTDIR\apache$\r$\n" FileWrite $9 "apache -n Apache -k install$\r$\n" FileWrite $9 "net start Apache$\r$\n" FileWrite $9 "exit$\r$\n" FileClose $9 ;Closes the filled file