|
#1
|
|||
|
|||
|
Calling windows shell functions
As part of an update I need to create a folder and install a file in a location that varies by Windows version. Specifically, I need to find the folder where applications write shared data. In my application, I determine this location by making a call to SHGetSpecialFolderPath, passing the value CSIDL_COMMON_APPDATA (&H23). This location resolves to different paths on XP and Vista.
My question: Does the TrueUpdate script language provide a way to determine this location directly? Failing that, is there a way to call this windows api function to determine the location? |
|
#2
|
||||
|
||||
|
Quote:
Code:
Shell.GetFolder(SHF_APPLICATIONDATA_COMMON); |
|
#3
|
|||
|
|||
|
Calling windows shell functions
Thanks for the information. Oddly enough, shortly after I posted the original question, I found a session variable that appears to hold exactly the information I need: %ApplicationDataFolderCommon%. Funny what one can find when one looks carefully in the documentation.
Your suggestion is welcome as well, because it shows how to get at other information not present in session variables. I hadn't come across the Shell object. Thanks! |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dependency Module: Windows Installer (MSI) 4.5 | venky | MSI Factory 2.0 Examples & Modules | 2 | 3 Weeks Ago 11:39 AM |
| attempting to compare a variable with the contents of an array | Lucian Cain | AutoPlay Media Studio 5.0 | 4 | 10-17-2006 04:10 PM |
| cookies | goukilord10 | AutoPlay Media Studio 5.0 | 6 | 05-20-2005 05:08 PM |
| INFO: JET and MDAC (Complete) Runtime Notes | Desmond | Setup Factory 6.0 Knowledge Base | 0 | 11-28-2003 09:35 AM |
| INFO: Finding Shell Folders in the Registry | Support | Setup Factory 6.0 Knowledge Base | 0 | 10-10-2002 04:52 PM |
All times are GMT -6. The time now is 09:41 PM.









Linear Mode

