问题
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.
来源:https://stackoverflow.com/questions/7318305/get-temp-folder