PDA

View Full Version : Getting windows temp folder



usmanghafoorjan
12-05-2007, 05:45 PM
hi,
I am using custom action, to get "windows 2003 server" Temp Folder path, using the following VBS code

dim wshFSO
Set wshFSO = CreateObject("Scripting.FileSystemObject")
Msgbox wshFSO.GetSpecialFolder(2)

When this code runs on stand alone, vbs file, it displays the full path, i.e.
C:\DOCUMEN~1\loggedUser\Locals~1\Temp\2

But when this code executes in Installshield, it skips the last folder "\2"?
i.e.
C:\DOCUMEN~1\loggedUser\Locals~1\Temp\


Kindly, does any one know a workaround to this issue? Is there an issue with Installshield's 11.5 vbs editor ?

thanks in advance for any help
regards
-usman