Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2005
    Posts
    1

    Mystery Drive letter

    I just don't understand whats happening here.

    Every time I add something like this:

    Registry.SetValue(HKEY_CURRENT_USER, "Software\\Testrun\\Today", "AppDir", SessionVar.Expand("%AppDrive%%AppFolder%"), REG_SZ);

    And then I go to install the app and change the drive location I get registry entry like this:

    c:f:\some directory\

    Where the heck is that c: coming from?

  2. #2
    Join Date
    Oct 2003
    Location
    Richmond, VA
    Posts
    143
    %AppDrive% returns the drive letter of the %AppFolder% variable, so it is unnecessary in this case. Simply remove the %AppDrive% as the drive letter is included with the %AppFolder% variable. %AppFolder% returns by default %ProgramFilesFolder% and %ProductName%. See the Session Variables tab of the Project Settings dialog to customize.

    From the help file:
    %AppDrive%
    The drive letter of %AppFolder%. You should not set this variable explicitly. It is reset every time that %AppFolder% is re-assigned. For example, if %AppFolder% is C:\Program Files\My Program, %AppDrive% will be C:.

  3. #3
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    It looks like %AppDrive% is not being updated when %AppFolder% is changed from the default. This will be fixed for the next service release.

    If you need %AppDirve% then you can use this script to correct the issue:

    Code:
    AppFolderPieces = String.SplitPath(SessionVar.Expand("%AppFolder%"));
    SessionVar.Set("%AppDrive%",AppFolderPieces.Drive);
    Adam.

Similar Threads

  1. Passing CD drive letter to command line argument
    By Metatron in forum AutoPlay Media Studio 5.0
    Replies: 15
    Last Post: 01-24-2005, 02:38 PM
  2. Intranet shared drive access
    By mafranks in forum AutoPlay Media Studio 5.0
    Replies: 7
    Last Post: 10-15-2004, 04:17 AM
  3. Determining the Drive Letter of the Primary Hard Drive
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 10-03-2003, 09:43 AM
  4. Find PC's cdrom drive letter
    By robles2k in forum Setup Factory 6.0
    Replies: 4
    Last Post: 03-12-2003, 09:50 AM

Posting Permissions

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