Reference/!tempfile: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
mNo edit summary
mNo edit summary
 
Line 15: Line 15:
!undef DATE</highlight-nsis>
!undef DATE</highlight-nsis>


Command introduced with NSIS v2.11
''Command introduced with NSIS v2.11''

Latest revision as of 10:57, 3 June 2013

!tempfile

symbol

This command creates a temporary file. It puts its path into a define, named symbol.

!tempfile PACKHDRTEMP
!packhdr "${PACKHDRTEMP}" '"C:\Program Files\UPX\upx.exe" "${PACKHDRTEMP}"'
!tempfile FILE
!define /date DATE "%H:%M:%S %d %b, %Y"
!system 'echo built on ${DATE} > "${FILE}"'
File /oname=build.txt "${FILE}"
!delfile "${FILE}"
!undef FILE
!undef DATE

Command introduced with NSIS v2.11