Date and time in installer or application name

From NSIS Wiki

Description

This simple snippet will allow you to have installer names like Install-2006-06-17-00-30-00.exe. Great for backups.


The Script

!define /date MyTIMESTAMP "%Y-%m-%d-%H-%M-%S"
 
Name "MyApplicationName ${MyTIMESTAMP}"
 
OutFile "MyApplicationNameSetup-${MyTIMESTAMP}.exe"
Personal tools
donate