-->

Get TEMP folder

2019-07-06 10:32发布

问题:

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.

回答1:

You can access the TEMP environment variable using the {%TEMP} constant.

See here for details and a list of all constants.