Quantcast
Viewing all articles
Browse latest Browse all 1382

VDI: User Package.ini, VirtualComputerNames and %ViewClient_Machine_Name to pass the Host Name to to the application

Two applications that I have ThinApp'd use the hostname in the application to make a server connection.

On a physical machine, the applications have the VirtualComputerName commented out and the applications pickup the hostname without issue.

 

Now, these TA applications are moving to Horizon VIew environments with non-persistent desktops.

These applications are picking up the VDI host name.

Changed the VirtualComptuerName=%ViewClient_Machine_Name% hoping that I would pickup the hostname of the device running the View Client.

When I run a cmd either in the VDI session or from the Thinapp application CMD, echo %ViewClient_Machine_Name% gives the hostname of the View Client, but that is not getting passed on to the application.

The application is still picking up the VDI hostname.

 

Reason: From https://communities.vmware.com/VirtualComputerName

 

In addition to specifying a literal string, such as LOCALHOST, you can specify an environment variable.

VirtualComputerName=%VCOMPNAME%

When you specify an environment variable, the value returned is the value of the environment variable. If the value of the VirtualComputerName parameter is %VCOMPNAME%, and the %VCOMPNAME% environment variable is set to EnvCompName, the GetComputerName API returns EnvCompName.

 

Or is my only option to use LocalHost?

 

Thanks!

Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 1382

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>