This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Is there ga temp directory variable in InstallShield
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 23, 2009
10:06 AM
Is there ga temp directory variable in InstallShield
I am trying to change the location of the log file from SUPPORTDIR to SUPPORTDIR\..\.. or up two levels. InstallShield doesn't like SUPPORTDIR ^ "..\\.." so I'm trying to find another way to do this.
The easy solution would be if there was something like TEMPDIR that I can use but I cannot find anything like this.
Does anyone know a simple way to put the log file in the temp directory?
Thanks.
The easy solution would be if there was something like TEMPDIR that I can use but I cannot find anything like this.
Does anyone know a simple way to put the log file in the temp directory?
Thanks.
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 27, 2009
08:04 AM
Are you using basic msi or installscript project?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 02, 2009
09:11 AM
%TEMP% contains the temp-folder location of the user who is currently logged on.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 03, 2009
10:06 AM
how do you get the temporary directory using the %TEMP% though? (I'm using a Basic MSI and need the TEMP directory)
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 03, 2009
11:49 AM
Found my own answer again courtesy of Robert M. Dickau from this post: http://community.acresso.com/archive/index.php?t-90999.html
I think the MSI property TempFolder is resolved using GetTempPath, so you
could just call MsiGetProperty with TempFolder...
If you want to call GetTempPath directly, you'd use code similar to this:
prototype NUMBER Kernel32.GetTempPathA(NUMBER, BYREF STRING);
STRING svTemp[MAX_PATH + 1];
// ...
nReturn = GetTempPathA(MAX_PATH + 1, svTemp);
I think the MSI property TempFolder is resolved using GetTempPath, so you
could just call MsiGetProperty with TempFolder...
If you want to call GetTempPath directly, you'd use code similar to this:
prototype NUMBER Kernel32.GetTempPathA(NUMBER, BYREF STRING);
STRING svTemp[MAX_PATH + 1];
// ...
nReturn = GetTempPathA(MAX_PATH + 1, svTemp);