Archive: List Network "Clients" & MSDE Setup


List Network "Clients" & MSDE Setup
  hi, i'm new here and have just begun working on my first Nsis project. I'm trying to automate an install for an application that needs the .NET framework, MSDE, some database setup, and a client installed. I have vaguely got MSDE working ok using ExecWait, but if anyone knows a better way, I'd love to here from you!

My next problem is installing the client application on more than one PC. I want the user to be able to select the Database server PC from a drop-down or for the installer to find the database with the correct "instance-name" on the network automatically. I was going to start with


net view or osql -L 

>
but after that I'm not really sure where to go. Can anyone suggest anything?

Any help muchly appreciated,
Chris

You can capture the output of `net view` using the nsExec plug-in. See Contrib\nsExec for a readme and an example.

I think it would be safer to call some Windows API functions using the System.dll plug-in or your own plug-in. I think NetServerEnum is what you're looking for.


Anyone planning on writing this as a plugin? Or has anyone got any sample code using the System.dll-plugin?

I'm not a C++ programmer so I'm having a hard time on both...