Jump to content

This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

How to get Computer Name

2 replies to this topic


  • Members
  • 26 posts

Posted 19 January 2004 - 07:58


I am creating the setup file using basic msi project.

I have the below requirement.


User is on his desktop with a cd drive, he inserts my application cd and tries to install the application on his server. The setup.exe is running on his PC and he selects a directory which is shared on a Server PC as his INSTALLDIR (e on '').I need to get the computer name of the PC on which the application is going to be Installed not the Computer Name of PC where the Setup.exe.


Let me know how can get the computer name of the PC(Server) where the application is going to installed not the computer name of the PC(Desktop) where the setup.exe is running.


  • Members
  • 23 posts

Posted 19 January 2004 - 10:30

You can get the UNC Name of the INSTALLDIR. This should be \\ComputerName\Shared Name\

From there you can retry the computer name.



  • Moderators
  • 1,447 posts

Posted 20 January 2004 - 06:21

Wouldn't the computer name already be part of the current INSTALLDIR if the user selects a network share? It sounds a little strange to install the way you are doing. I would map the desktop CD-drive on the server and just run the installer from the mapped CD-ROM. This can all be accomplished from a windows terminal server session.
-Stein Åsmul