Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get app to use user instead of computer name

Status
Not open for further replies.
Jun 27, 2001
837
US
Running metaframe on win 2000. Have vendor supplied app which for fat app uses ini file with machine name to identify user. Now for citrix found registry hack which under just a terminal server connection will utilize a user named ini just fine. When trying to use as published app it will not work. Is there a Citrix reg hack to do the same?
Help!
 
How does the vendor app pipe in the users name into the ini file. The Visual Basic apps we use consist of a shell of an INI file which is stored in the WINNT directory on the Citrix server. When a user logs on to the app the first time around, the INI file will be copied to their home\windows directory with their login name added to the appropriate entry. You can also ask your vendor if the app accepts a users INI file as a parameter (ex prog.exe /ini=user.ini). So when publishing the app you can call it by using prog.exe /ini=%username%.ini. We also have apps that work this way. Hope this helps, and hope it doesn't confuse the issue.

Regards

Terry
 
THis is a c app where the ini (named for each user) is located in the same location as app. We have this working with a reg entry for software\microsoft\winnt\terminalservices\compatability. It is interesting that if we put this in and log on to the citrix box as a user and run the app as a fat client it works, if we run as a published app it can't find database.
 
If that is the case, you can use the Windows environment variable %username% (assuming it matches the name of the ini file). Like I said I have this setup for one of my apps (Uniface)where all ini files are centrally stored.
 
The vednor sent me a test app to see whcih ini is being used and it is the correct one, beginning to wonder if this is some kind of connection issue to sql server inside of a citrix connection
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top