Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2004
    Location
    Netherlands
    Posts
    16

    set %AppFolder% in ini file (Newbie)

    hi,

    i can't figure out how i can use the var. %AppFolder% in a ini file.
    The user selects the installation path during installation...lets say
    C:\Program Files\LOGDB. Within the directory C:\Program Files\LOGDB
    there's a sub-directory DATA created which contains the databases.

    After the installations i would like to edit the existing .ini file so it
    contains the installation path including the DATA directory

    Ini files looks like this :
    [MAP]
    DB=

    greetz PEter

  2. #2
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    Use code like this:

    Code:
    AppFolder = SessionVar.Expand("%AppFolder%");
    INIFile.SetValue(AppFolder.."\\My Settings.ini", "Section", "Value", AppFolder.."\\DATA");
    Of course you will have to adjust this for your scenario but it should be a good starting place

    Adam Kapilik

Similar Threads

  1. Probably a dumb question
    By beeneeb in forum Visual Patch 2.0
    Replies: 1
    Last Post: 10-12-2006, 01:19 PM
  2. Configuring Checkboxes with a silent install ini file
    By jinjoid in forum Setup Factory 7.0
    Replies: 3
    Last Post: 08-17-2006, 10:10 AM
  3. Read ini file from the web to listbox
    By Ham in forum AutoPlay Media Studio 6.0
    Replies: 1
    Last Post: 05-22-2006, 10:54 AM
  4. How do you set the File Associations in the registry
    By Jean in forum Setup Factory 6.0
    Replies: 2
    Last Post: 03-29-2003, 08:30 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