13277

Get TEMP folder

Question:

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.

Answer1:

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

See <a href="http://www.jrsoftware.org/ishelp/index.php?topic=consts" rel="nofollow">here</a> for details and a list of all constants.

Recommend

  • How to prevent vc_redist.x##.exe (VS2017) from ambiguously failing due to pending reboot?
  • What is the best way to generate Pythagorean triples?
  • Pascal's Triangle using mainly functions in C++
  • vim left and right column highlight
  • do while syntax for java
  • Vista Phantom Directory
  • How to enable logging in facebook SDK 3.0?
  • Formatting Pascal's triangle
  • RewriteCond and RewriteRule in .htaccess
  • Visual Studio extension: Change the hint path of an assembly reference
  • JUnit testing package private class in Maven formatted project
  • Linq Full Outer Join on Two Objects
  • Cythonized function unexpectedly slow
  • NSMutableArray Access Issue
  • Get the App path without the app name at the end of the app
  • Passing parameter through “window.location.href”
  • Reassigning an array frees the memory used by it?
  • It is possible use the same sql azure instance from two different cloud service of two different sub
  • Prevent page break in text block with iText, XMLWorker
  • Python 3.2.2, error(scripts to exe)
  • NSIS decompiler
  • What does “t” refer to in this SQL?
  • How to 'create temp table as select' in Slick?
  • How load cv2.KeyPoint and Descriptors correctly on OpenCV 3 with Python 3?
  • Problem while Building a Setup Project for a windows Service?
  • Change Inet root folder for iis 7
  • Paperclip, set path outside of rails root folder
  • DomPDF {PAGE_NUM} not on first page
  • Javascript simulate pressing enter in input box
  • Fetching methods from BroadcastReceiver to update UI
  • script to move all files from one location to another location
  • ILMerge & Keep Assembly Name
  • Shallow update not allowed (git > 1.9)
  • Symfony2: How to get request parameter
  • Importing jscolor library in angular 2
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • A cron job substitute?
  • Proper folder structure for lots of source files
  • Load html files in TinyMce
  • Append folder name and increment by 1 using batch script