Setting the server for the service automatically

edited April 2008 in Server
When we install the ReportBuilder Server service, we'd like to automatically
set the name of the Server and its directory, without having to make it a
manual step for the user once RBAdmin is up and running. Where is this held?

Thanks,
Jason.

--
Jason Sweby
Software Development Manager,
Carval Computing Limited, Plymouth, UK

Payroll - HR - T&A - Access Control

Comments

  • edited April 2008


    Try the following...

    uses
    rsWinServiceController;

    begin

    lsServerExe := 'c:\myReportServer.exe';

    TrsWinServiceController.RegisterCOMServer(lsServerExe);

    end;


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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited April 2008
    Thank you Nard but that doesn't really do what I need. I don't know where
    our files will be installed, that is up to the user from the InstallShield.
    Therefore I cannot hard-code it in the server application like that.

    What I need is to be able to write the name and directory of our RB Server
    application somewhere after installation so that RBAdmin picks it up.

    When I set these manually using the RB Service, the details must be held
    somewhere? It remembers them after a reboot so where is it stored so I can
    set that manually?

    Thanks,
    Jason.

  • edited April 2008

    That code registers the report server in a persistent manner. Try the code
    and then reboot. RBServices will still know what it is.

    My intent was to provide a simple example, so yeah I hardcoded the .exe
    name.

    Your installation program will know the full path to the .exe. So you could
    write a little utility (.dll or .exe) and call it from your install program.



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

    Best regards,

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