[英]Inno Setup set Setup.exe create date and modified date the same
By default, when compiling the Setup.exe Inno Setup does not delete the existing file before compiling, meaning that the modified date is likely to be different from the create date unless remembering to manually delete the Setup.exe before compile. 默认情况下,在编译Setup.exe时,Inno Setup不会在编译之前删除现有文件,这意味着修改后的日期可能与创建日期不同,除非记住记得在编译之前手动删除Setup.exe。 What would be the best way to set the date and time the same? 将日期和时间设置为相同的最佳方法是什么? I can think of two possible approaches to do this. 我可以想到两种可行的方法。 One would be to use the TouchDate
and TouchTime
functions in the Code section at the end of the compile, the other would involve using the ISSP section to automatically delete the Setup.exe prior to compile. 一种可能是在编译结束时使用“代码”部分中的TouchDate
和TouchTime
函数,另一种可能是使用ISSP部分在编译之前自动删除Setup.exe。 I'm not entirely sure if the ISSP option is possible, but which way would be simplest and preferable? 我不确定是否可以使用ISSP选项,但是哪种方法最简单,更可取? Does anyone have any advice on which approach I should take, or is there another option I am overlooking? 是否有人对我应该采用哪种方法有任何建议,或者我还有其他选择可以忽略?
It's most probably a consequence of so called file tunelling
which has nothing to do with Inno Setup. 这很可能是所谓的file tunelling
与Inno Setup无关的结果。 One way out of this is making a batch script that will run compiler and touch the timestamp after compilation (preprocessor cannot do that because it runs before compilation). 一种解决方法是制作一个批处理脚本,该脚本将运行编译器并在编译后触摸时间戳(预处理器无法执行此操作,因为它在编译之前运行)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.