如何将安装日期记录到注册表
安装成功完成后,需要将日期和时间以及其他一些信息写入注册表。如何生成日期以及如何知道安装是否成功完成? (用wix写入注册表不是问题)。
When an install completes successfully, the date and time and some other info needs to be written to the registry. How can a date be generated and how do you know if an install was completed successfully? (writing to the registry with wix is not a problem).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
使用标准 MSI 属性 日期 和 时间?
注意:请注意,尽管文档中指示日期的格式始终为
MM/DD/YYYY
格式,但这实际上并不是案件。我的系统(在澳大利亚)上的详细 MSI 日志以DD/MM/YYYY
格式显示该属性...例如:What about using standard MSI properties Date and Time?
Note: Be warned that despite the documentation indicating the date will always be in the
MM/DD/YYYY
format, this is not in fact the case. A verbose MSI log on my system (in Australia) shows the property inDD/MM/YYYY
format... e.g.:对于日期和时间,这里有一些示例代码。
如果您想使用分隔符,只需将其添加为文本,例如:
For both date and time here is some sample code.
If you want to use separator you can simply add it as text like:
环境变量??
您可以访问 PATH 等环境变量吗??
或者,由于您能够访问注册表,因此您可以访问注册表本身中的环境变量:
祝您好运!!
Env variables??
Can you access environment variables like PATH etc. ??
Alternately, since You are able to access the Registry, You can access the Env vars in the registry itself:
GoodLUCK!!