Inno Setup second temporary directory

Robert Wigley

Inno Setup creates a temporary directory for the installer, which is assigned to the {tmp} constant. However, it also creates a second temporary directory in the same format (e.g. is-KIQQJ.tmp) as the main temporary directory. It appears that this is used by the uninstaller, as Setup.tmp is created in here. Can the value of this second temporary directory be returned in the [Code] section?

Martin Prikryl

It's a temporary directory of the main/parent installer process. The setup.tmp (or mysetup.tmp) is the child installer - the actual installation process.

As such, you can retrieve the path to the *setup.tmp using a ParamStr(0) call (= path to running binary). And extract its folder using the ExtractFilePath function.

ExtractFilePath(ParamStr(0))

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related