简体   繁体   English

Inno Setup设置Setup.exe的创建日期和修改日期相同

[英]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. 一种可能是在编译结束时使用“代码”部分中的TouchDateTouchTime函数,另一种可能是使用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.

相关问题 Inno Setup-Setup.exe在本地运行,但不能下载 - Inno Setup - Setup.exe works locally, but not as a download 运行由Inno Setup创建的Setup.exe并获取“ ...'“ isxdl.dll'未找到。”错误 - Running Setup.exe created by Inno Setup and get “… '”isxdl.dll' was not found." error 使用 inno.setup 创建 setup.exe 后拒绝访问目录和文件 - Access to directory & files denided after creating setup.exe with inno.setup Inno Setup运行setup.exe时修改app.config文件 - Inno Setup Modify app.config file when you run setup.exe 使用 Inno Setup 创建带有参数的 exe 桌面快捷方式 - Create desktop shortcut to exe with argument with Inno Setup 使用Inno-Setup将特定任务的文件编译为其他安装文件(setup.exe,files.bin)? - Compile files of specific task to an additional setup file (setup.exe, files.bin) using Inno-Setup? 如何将执行setup.exe(来自INNO 5.5.4)时选择的语言保存到Windows注册表? - How to save to Windows registry the language chosen when setup.exe (from INNO 5.5.4) is executed? Inno Setup:以本地格式指定日期 - Inno Setup: Specify Date in local format 在Windows XP上,inno setup.exe失败,浮点除零 - inno setup.exe fails with Floating point division by zero on Windows XP 如何在Inno Setup中获取本地日期时间? - How to get local date time in Inno Setup?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM