Home End User
New Blog Posts: Merging Reports - Part 1 and Part 2

RBuilder.INI

edited June 2009 in End User
Is there a reason why the RBuilder.INI file is now being saved in
\Windows\System32? In RB9 and prior, it was saved in \Windows by default.

Thanks,
Perry

Comments

  • edited June 2009

    If you are using the TppDesigner component check your setting for
    TppDesigner.IniStorageName. For RB 11, the new default is
    ($LocalAppData)\RBuilder\RBuilder.ini. For your existing projects, updte
    them to use ($LocalAppData)\RBuilder\RBuilder.ini

    For your existing projects RB 11.04 should be working the same as pior
    version, thougb there was an issue with 11.03 and prior resolving to
    windows\system32.


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited June 2009
    Is it OK to change the ppEndUsr.pas source as follows?

    procedure TppDesigner.SetIniStorageName(aStorageName: String);
    begin
    //FIniStorageName := aStorageName;
    FIniStorageName := '($LocalAppData)\RBuilder\RBuilder.ini';

    ConfigureIniStorage;

    end;

  • edited June 2009

    No. (We are not making that mod here. If I were you, I would not modify the
    RB source. Moving forward with RB 11.05, etc that is just going to require
    more work).

    The TppDesigner class constructor includes code to support defaulting new
    instances of TppDesigner to the new default location.

    In TppDesigner.Create you will find the following...

    FIniStorageName := TppIniStoragePlugIn.GetStorageClass.DefaultStorageName;

    For existing projects I would open the relevant form and modify the
    IniStorageName and then resave.

    I am wondering if you are either using RB 11.03 or have a corrupt
    installation. You might search your hard drive for for ppIniStorage.*,
    perhaps you have an old version lying around in Delphi\Lib or some other
    weird location).

    Open your ppIniStorage.pas and find TppIniFile.CreateCustomIniFile. Does it
    have this code?

    if Pos(TppFilePathVariables.WinSys, aStorageName) > 0 then
    // backwards compatibility, resolve ($WinSys) to Windows directory
    aStorageName := StringReplace(aStorageName, TppFilePathVariables.WinSys,
    TppFileUtils.GetWindowsFilePath, [rfIgnoreCase])




    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.