Un-install without TEMP environment variable
I've been working on the installation as well as un-installation part of one of the products. During un-installation, I need to extract few files to temporary location. The current approach I am using is to look for TEMP environment variable and copy those files over there and at the end cleanup.
Now, my question is, if TEMP environment variable is not present on the target machine, I have to create some temp folder at certain location (right now, I am creating it at C:\) and extract those files at this location. Although, it works, is there any descent way of handling this scenario.
What is the usual way most of the systems work when there is no TEMP environment variable defined?