This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Get Host/Machine Name?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Dec 15, 2008
01:17 PM
Get Host/Machine Name?
Hi There,
I need to add a custom rule that checks the machine/host name where the Installer is running. Can someone point me to any java examples of this?
I need to add a custom rule that checks the machine/host name where the Installer is running. Can someone point me to any java examples of this?
(3) Replies
‎Dec 15, 2008
05:26 PM
A web search for "java host name" should turn up some examples; for example,
java.net.InetAddress.getLocalHost( ).getHostName( )
should get the name you want, and you can use that to populate a variable that you use in a rule.
java.net.InetAddress.getLocalHost( ).getHostName( )
should get the name you want, and you can use that to populate a variable that you use in a rule.
‎Dec 16, 2008
09:35 AM
I usually use the HostInfo plugin to get this information for me.
http://www.acresso.com/downloads/downloads_7399.htm
http://www.acresso.com/downloads/downloads_7399.htm