一个人可以在Inno Setup脚本中使用环境变量吗? [英] Can one use environment variables in Inno Setup scripts?

查看:93
本文介绍了一个人可以在Inno Setup脚本中使用环境变量吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在Inno Setup脚本文件(.iss)中找到一种引用环境变量的方法。

I need to find a way to reference environment variables INSIDE the Inno Setup script file (.iss)...

我发现了很多有关修改的引用.iss中的环境,但没有关于如何实际使用它的内容。

I've found plenty of references to MODIFYING the environment from an .iss, but none on how to actually use it. Is this possible?

推荐答案

根据此页面在Inno Setup文档中,可以使用以下语法来检索环境变量的值:

According to this page in the Inno Setup documentation, the value of environment variables can be retrieved using the following syntax:

{%name|default}

这篇关于一个人可以在Inno Setup脚本中使用环境变量吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆