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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Friendly Citrix Application?

Status
Not open for further replies.

Mattlab

Programmer
Feb 23, 2005
6
US
I have limited Citrix knowledge and was wondering if there are some tips available on a website or from posts on how to get an application that currently uses a .ini file and cache directory to run on a Citrix server so users are not sharing the same .ini file and cache directory? Also, if I was to request a change to the product what would be the Citrix/WTS "best practice" to save user configuration information (via .ini or registry) and cache data for each user in a directory?
 
Here is what happens.

You install the app in install mode and the ini file goes into the c:\windows directory or C:\wintsrv or what ever.

What you then do is make changes in that ini file so that users have their own settings etc.

Each user MUST have their own TS home directory.

When the user first runs the app, it will COPY that ini to their own home directory and use that.

I am assuming that this cache directory is set in the ini file. Then create a cache directory in their home directory and point the central ini to h:\cache for example.





[blue]Arguably the best cat skinner around ! [/blue]

Cheers
Scott
 
Hi Scott,

Thanks for the information. This particular application has the .ini file saved into it's application directory (C:\Program Files\Company\Application) and I believe only looks for the .ini file in that location. Is there a way to have each user get a copy of just the application directory and .ini file as I believe there are specific user values read and written to that location while the application is running. Which will likely cause I/O errors when a number of users are running the application through Citrix. Thanks again and sorry for the lack of Citrix knowledge.

Best Regards,
Matt

 
Sorry to say this but, if the app only looks there then it is a poorly written app.

It should be looking for the users windows directory. I would still be trying to put the ini file into the for the sake of example H:\Windows where h is the users mapped TS home directory.

If it only looks where you say then it probably wont work correctly.

What to do is to install it, and do the copy of the ini file to h:\windows.

Then use filemon from to see what happens.

[blue]Arguably the best cat skinner around ! [/blue]

Cheers
Scott
 

Again, Thanks for the information. I did that and it is indeed looking for the file in the application's install directory. I don't believe this is abnormal for applications to do this though. Besides this application, I believe Lotus Notes does this and I've seen others as well. Why wouldn't WTS/Citrix provide some mechanism to flag a file to not be shared and even keep a user cache of the file? That would seem easy enough?

Since the file is can only be accessed from the application's install directory, I will contact the application vendor to see if that can be changed. So what you are saying is the best solution would be to ask the vendor to read and write the file to the windows system directory or use the system path to locate the file? Or is there another location that they would be better off saving the .ini file so the users keep their own settings which is still a problem if saved in the windows directory?
 
No it should read and write from the users home directory.

Therfore each user can have a copy of their own. The central one does not get touched during normal operation. That is the way most other 16-bit apps work. 32-bit should read from HKCU but install to HKLM.

[blue]Arguably the best cat skinner around ! [/blue]

Cheers
Scott
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top