[英]How to Get the current date time while exexuing the exe which is created Using NSIS Installer?
My requirement is to create an installer that should print the current date and time... In my NSIS script I have used the following code to get the current date and time 我的要求是创建一个应该打印当前日期和时间的安装程序...在我的NSIS脚本中,我使用以下代码来获取当前日期和时间。
!define /date CUR_DATE "%m-%d-%Y %H-%M"
MessageBox MB_OK "${CUR_DATE}"
I have compiled using NSIS complier and the out file is created. 我已经使用NSIS编译器进行了编译,并且创建了out文件。 While I am executing the installer it displays the current date time as at what time the script file is compiled.. Not the current time of executing.... Whenever executes it print the same time.... But I want to get the current date time.. How to achieve this?
当我执行安装程序时,它将显示当前日期时间以及脚本文件的编译时间。.不是当前执行时间。...每当执行时,它都会打印相同的时间....但是我想获取当前日期时间..如何实现?
I have found the solution.... The following in built command will help you to get the current time date time... 我找到了解决方法。...以下内置命令将帮助您获取当前时间日期时间...
${GetTime} "" "L" $0 $1 $2 $3 $4 $5 $6
$0 - Date $1 - Month $2 - Year $3 - Day $4 - Hour $5 - Minute $6 - Secs $ 0-日期$ 1-月$ 2-年$ 3-天$ 4-小时$ 5-分钟$ 6-秒
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.