Writing installer for reports

  • Hey,

    I need to write an installer-like interface for publishing my reports (where the user enters the DB name etc.) I started doing it with Visual Studio .NET Install project. But how can I execute the rs.exe from such a project (presumably some sort of custom action)? Up till now I published the reports with a simple bat file but now i need it more proffesional. Anyone knows?

     

    Thanks

  • Hi eyal,

    I too am about to make a custom installer. In .NET you can use Process() to execute rs.exe and pass variables. The problem I'm having is how to get any warnings or errors from rs.exe (whether a connection was made to the server, whether or not rs is registered etc.) because I can just see the errors from my local Process().

    private void button2_Click(object sender, System.EventArgs e)

    {

    p = new Process();

    p.StartInfo.FileName = "rs.exe";

    p.StartInfo.Arguments = "-i PublishReports.rss -s https://localhost/reportserver";

    try

    {

    p.Start();

    }

    catch(Exception ex) {MessageBox.Show(ex.Message);}

    }

  • Hey,

    I was told (although I haven't tried it yet...) that the Process.start() method

    (or one of its overloads) actually returns the return code of the application it was running.

    Might want to check that out...

     

    Thanks,

     

    --Eyal

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply