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

RBv11 - RBuilder.ini on Vista machine with domain user

edited October 2008 in General
I have a problem with RBuilder.ini file on Vista machine. When I run
Delphi 2007 as non-admin user I cannot work with ReportBuilder v11 in
design mode - it often ends up with an error saying I have no rights to
write to c:\windows\system32\RBuilder.ini and then I have to kill Delphi
loosing any unsaved changes, as I cannot close the RB dialog (ie groups).

I read through the archive and I found the 'temporary solution' for it,
but it is unsatisfactory. Normally I'm logged in as a domain user, so
when I run Delphi as administrator I met few problems, ie:
- cannot open files from external apps (ie source safe)
- cannot work with network shared files (when I run from Delphi in admin
mode I'm not acting as a domain user), so practically I cannot run the
application in the debug mode.

Is there any patch for that issue, so the RBuilder.ini location for
design-time can be located in a user-selectable place, or in Public
folder on Vista?

Kind regards,
Michal R. Hoffmann

Comments

  • edited October 2008

    For RB 11, the new default location for RBuilder.ini is

    ($LocalAppData)\RBuilder\RBuilder.ini

    which on Vista resolves to

    C:\Users\[username]\AppData\Local\RBuilder

    If you migrate projects from RB 10, then update the
    TppDesigner.IniStorageName

    Using RB 11 and Vista here, I do not have any issues with RBuilder.ini.


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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2008
    It looks to me like a initially flawed design that got broken by changes MS
    made to their OS...

    Storing INI files in system areas that need to be user modified is a
    outdated practice. Since XP storing the INI in the user's profile directory
    is the current recommended course of action. Additionally, if you use the ms
    shell api in your app you can get the path the current user's profile
    folder, etc and assign that path received from the API at runtime to
    RBuilder, thereby making the change from XP to Vista is transparent to the
    developer and the user.

    Hope this helps! :)
  • edited October 2008

    RB 11 does this for you, please my prior prior post on this same thread.

    The following is from the RBuilder help topic for
    TppDesigner.IniStorageName.

    The default value is ($LocalAppData)\RBuilder\RBuilder.ini. The
    ($LocalAppData) is is a file path variable, the following file path
    variables are supported.


    Value Meaning
    ------------------ --------------------------
    ($LocalAppData) User's local app data
    ($CommonAppData) All User's app data
    ($Application) Application directory
    ($WinSys) Windows System directory




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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2008
    Where can I update the TppDesigner.IniStorageName? Should I add
    TppDesigner component to my all reports? Is there any other way?

    I don't have the problem in runtime-designing but in Delphi while
    designing any report.

    I didn't use RB v10, rather v9. with Delphi7, now it's Delphi 2007 and
    RB11 on Vista 64bit.

    Kind regards,
    Michal R. Hoffmann

  • edited October 2008

    We put a new build on server - try download and re-installing. It should
    work.

    I thought you were using the TppDesigner.

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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2008
    Oh dear. Now I have a mess.

    I re-installed using the freshly-downloaded new build. After
    installation (it removed the old RB11 first) it displays an error:
    -----------------------------
    [Window Title]
    Error

    [Content]
    Can't load package dclRBP1111.bpl.
    The specified module could not be found.
    Do you want to attempt to load this package the next time a project is
    loaded?

    [Yes] [No]
    -----------------------------

    Then

    -----------------------------
    [Window Title]
    Error

    [Content]
    Can't load package dclRBP1111.bpl.
    The specified module could not be found.
    Do you want to attempt to load this package the next time a project is
    loaded?

    [Yes] [No]
    -----------------------------

    Moreover, I cannot access Components/Access Packages.

    Help!

    Kind regards,
    Michal R. Hoffmann


  • edited October 2008
    Try rebooting your machine. Then re-install and see whether that fixes it.

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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2008
    Nard Moseley (Digital Metaphors) wrote:

    It didn't help. I also tried to uninstall, reboot, install, reboot and
    run Delphi. All the same.

    Finally I solved the problem adding the following to the Path in
    Environment Options/Environment Variables:

    C:\Program Files (x86)\CodeGear\RAD Studio\5.0\RBuilder\Lib;

    Funny enough when I installed ReportBuilder v11 a couple of days ago it
    worked without any changes.


    However there's another error when I try to compile a project:
    [DCC Error] my_file.pas(9): F2051 Unit ppBarCode2DDrawCmd was compiled
    with a different version of ppDevice.TppDrawCommand

    How can I fix this?

    Kind regards,
    Michal R. Hoffmann
  • edited October 2008
    Solved this one. This was Delphi problem this time; even with a full
    build it tried to use old DCUs. When I deleted all .dcu files from the
    project it went smoothly.

    And the latest build works with Vista now, thanks.

    Kind regards,
    Michal R. Hoffmann


This discussion has been closed.