Setting the server for the service automatically
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
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
This discussion has been closed.
Comments
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
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.
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