Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2003
    Posts
    5

    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. #2
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    2,539
    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

  3. #3
    Join Date
    Oct 2003
    Posts
    5

    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!

Similar Threads

  1. Dependency Module: Windows Installer (MSI) 4.5
    By venky in forum MSI Factory 2.0 Examples & Modules
    Replies: 6
    Last Post: 01-24-2012, 04:17 PM
  2. attempting to compare a variable with the contents of an array
    By Lucian Cain in forum AutoPlay Media Studio 5.0
    Replies: 4
    Last Post: 10-17-2006, 03:10 PM
  3. cookies
    By goukilord10 in forum AutoPlay Media Studio 5.0
    Replies: 6
    Last Post: 05-20-2005, 04:08 PM
  4. INFO: JET and MDAC (Complete) Runtime Notes
    By Desmond in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 11-28-2003, 08:35 AM
  5. INFO: Finding Shell Folders in the Registry
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-10-2002, 03:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts