PDA

View Full Version : How to find temp directory at runtime in basic MSI



DLee65
10-26-2005, 01:29 PM
According to help, there is not equivelent value for SUPPORTDIR in Basic MSI installations. I have a MSI DLL I am placing in the Support Files portion of the IDE that I need to reference before before the UI portion of the installation.

How do I determine the temp directory at runtime since there isn't any equivelent SUPPORTDIR path to utilize. The Temp path can be changed based on environment variables and such, so I cannot necessarily hard code this variable? Or, is it necessary to specify the full path when I reference the dll from the custom action?

Thanks.

DLee65
10-26-2005, 01:43 PM
Ok, the web site I referenced was kind of misleading. The site said there is no equivalent value for SUPPORTDIR, but indirectly there is:

TempFolder\ProductCode is the equivalent. Granted it is not one defined value, but it accomplishes the same.

sks2004
10-26-2005, 08:31 PM
obtain the case-sensitive MSI property: SourceDir and/or SETUPEXEDIR.
For the TEMP directory, obtain the property: TempFolder