获取TEMP文件夹 [英] Get TEMP folder
本文介绍了获取TEMP文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何从InnoSetup Pascal脚本中获取Temp文件夹的路径?不是安装程序将其用作临时文件夹的文件夹(可以使用{tmp}
进行访问),而是实际用户的Temp文件夹.
解决方案
您可以使用{%TEMP}
常量访问TEMP
环境变量.
有关详细信息和所有常量的列表,请参见此处. /p>
How do I get the path to the Temp folder from inside an InnoSetup Pascal script? Not the folder that the setup uses as it its temporary folder (which can be accessed using {tmp}
), but the actual user's Temp folder.
解决方案
You can access the TEMP
environment variable using the {%TEMP}
constant.
See here for details and a list of all constants.
这篇关于获取TEMP文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文