Determining the computer name I am installing to.

  • Thread starter Thread starter Tim Law
  • Start date Start date
T

Tim Law

I have a deployment project that installs a web
application. I have added an installer class to my
application project that gets called during install.
Using System.DirectoryServices.DirectoryEntry I can add a
group to the computer I am installing on. Currently I am
using the hard coded name of my computer. How can I find
out the name of the computer I am installing to?

FYI: I have tried to use the
System.Windows.Forms.SystemInformation class but it
doesn't seem to be available from my web project
Installer class.
 
Back
Top