Web Setup Project - Getting the Current Machine Name
Posted
by Shane Kenney
on Stack Overflow
See other posts from Stack Overflow
or by Shane Kenney
Published on 2009-05-07T04:37:14Z
Indexed on
2010/03/28
20:53 UTC
Read the original article
Hit count: 321
.NET
|setup-project
I've got a web setup project with a custom screen in it that asks for a machine name. Is there anyway to prepopulate this field with the current machines name?
For the case that I need it for just including "Localhost" does not meet my requirements.
"Environment.MachineName" will return the machine name within a code block which would be fine if I was needing it in a custom action. But it seems custom actions don't excecute until after you go through the installation wizard... So I cant actually use it. Anyway let me know what you think.
© Stack Overflow or respective owner