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
- :
- InstallShield
- :
- InstallShield Forum
- :
- How do you get the computer name using installscript?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 01, 2012
09:43 AM
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
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
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 05, 2012
02:55 AM
GetEnvVar('COMPUTERNAME', svComputerName);
or
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
RegDBGetKeyValueEx("System\\CurrentControlSet\\Control\\ComputerName\\Computername", "Computername", nvType, svComputerName, nvSize);
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 10, 2021
09:35 AM
Its not seems to be working .Please suggest How to check this
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 05, 2012
08:08 AM
Thank You!