Reference/!tempfile: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
(Created page with "=!tempfile= symbol This command creates a temporary file. It puts its path into a define, named symbol. <highlight-nsis>!tempfile PACKHDRTEMP !packhdr "${PACKHDRTEMP}" '"C...")
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 14: Line 14:
!undef FILE
!undef FILE
!undef DATE</highlight-nsis>
!undef DATE</highlight-nsis>
''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