writing current date & time as file name using NSIS

后端 未结 4 1609
花落未央
花落未央 2021-01-05 13:04

I developed an installer using NSIS. Every time I re-install the application, I want to create a backup of the existing database files.

How can I rename these datab

4条回答
  •  失恋的感觉
    2021-01-05 13:21

    The best way to do this is explained here: nsis !define /date MyTIMESTAMP "%Y-%m-%d-%H-%M-%S" Name "MyApplicationName ${MyTIMESTAMP}" OutFile "MyApplicationNameSetup-${MyTIMESTAMP}.exe"

提交回复
热议问题