Indigo Rose Software
  #1  
Old 12-03-2008
Rick_Teller Rick_Teller is offline
Forum Member
 
Join Date: Oct 2003
Posts: 4
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?
Reply With Quote
  #2  
Old 12-04-2008
Ulrich's Avatar
Ulrich Ulrich is offline
Indigo Rose Staff Member
 
Join Date: Apr 2005
Location: Sao Paulo, Brazil
Posts: 823
Quote:
Originally Posted by Rick_Teller View Post
My question: Does the TrueUpdate script language provide a way to determine this location directly?
Of course it does:
Code:
Shell.GetFolder(SHF_APPLICATIONDATA_COMMON);
Ulrich
__________________
Reply With Quote
  #3  
Old 12-04-2008
Rick_Teller Rick_Teller is offline
Forum Member
 
Join Date: Oct 2003
Posts: 4
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!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


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.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software