Revenera Documentation site will be unavailable on July 2nd due to scheduled maintenance. For more information see the status dashboard.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
gigolojoe
Level 4

How do you get the computer name using installscript?

Hi,
I have an install script project and need to get the computer name to set the http host header.
How do I get the computer host name?
Thanks
Labels (1)
0 Kudos
3 Replies
Holger_G
Level 10

GetEnvVar('COMPUTERNAME', svComputerName);


or

RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
RegDBGetKeyValueEx("System\\CurrentControlSet\\Control\\ComputerName\\Computername", "Computername", nvType, svComputerName, nvSize);
0 Kudos

Its not seems to be working .Please suggest How to check this

0 Kudos
gigolojoe
Level 4

Thank You!
0 Kudos