Results 1 to 3 of 3

Thread: Edit INI file with a Runtime variable

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Edit INI file with a Runtime variable

    Hello Friedrich and all others,

    I am following the rules and define the default directories for the binary
    executables and the data files accordingly to Vista / Win7.

    its C:\Program Files\MyStuff and

    CSIDL_Common_Documents\MyStuff

    Because the program does not necessarily run on Vista / W7 / W8K, the
    admins often want to store it somewhere else. So I added 2 Define Wizard
    Dialogs for %_SB_INSTALLDIR% and %MyDataFolder%.

    At the end of the install process I write this %MyDataFolder% into the
    appropriate INI. Fine so far.

    My problem now: those admins usualy modify the entry field in this Wizard
    Dialog by hand.

    But _only_ when they click on "Change" (halt dieser Ändern-Knopf) and
    select the folder in the upcoming dialogue with point-and-click, the
    variable %MyDataFolder% will be filled correctly.

    Is there a way to read the manually modified value?

    I hope I described it somehow understandable.

    tia
    Wolfgang





    --
    Wolfgang Orth

    www.odata.de
    www.kik-service.de

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    It's five o'clock somewhere.....




    Written with Operas News-/ Mailclient: http://www.opera.com/mail/

  2. #2

    Default Re: Edit INI file with a Runtime variable

    Hi Wolfgang,

    I have attached a "quick-and-dirty" demo project. The %MYDATAFOLDER%
    variable always holds the correct value (entered "by hand" or selected via
    the "Browse" dialog).

    Friedrich
    Attached Images Attached Images  
    Attached Files Attached Files

  3. #3

    Default Re: Edit INI file with a Runtime variable

    Thank you, Friedrich!

    Yes, your example does what I want - so did my own.... but I have had
    integrated something else that distracted the program.

    One more time: you can't fool SB! Its always me who is the fool!

    --
    Wolfgang Orth

    www.odata.de
    www.kik-service.de

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    It's five o'clock somewhere.....




    Written with Operas News-/ Mailclient: http://www.opera.com/mail/

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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