Xen App - User Data Cache

Hi All,
     I am building a server (appCentre V6) and have a sage application installed and presented for internal users to access. The application launches but each time i need to add the link to the database manually. I would like this information to be cached moving forward. i have tried the following link


but this doesn't seem to work. Am i missing a simple step here?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ayman BakrSenior ConsultantCommented:
The article talks about streamed apps, while your description sounds like you are having hosted apps.

To have the link permanent you need to know where the application stores this information and thus from where it retrieves it. This could be in one of the following:

1. Config file stored in the local part of the user's profile
2. Config file stored in the roaming part of the user's profile
3. Config file stored in the application path or any part of the server's drive
4. Registry entry in the currently logged on user hive HKCU
5. Registry entry in the local machine hive HKLM

Obviously number 1 means that the link will be lost every time the user logs off and then log back in. The user could also be missing the link in number 2 and 4 if the profile could not load properly and a temp profile was used instead.

To solve number 1 you need to move the Config file to the roaming section of the profile and the app should have the capability of changing the setting to point to that location. To see what I mean please read the following article:

ncomperAuthor Commented:
Hi All,
       Sorry for the delay i can confirm that this is is located in point (4) HKCU. the key locaiton for the admin account is populating with the correct reg fields (from the RDP session) but this does not seem to be called up with the Citrix session (or remembered).

Could you help out with a few possible tests to check the reg is writing correct for the remote Citrix users?

Many thanks
Ayman BakrSenior ConsultantCommented:
As a quick resolution, instead of publishing the sage app, you can publish a batch file or VB Script that will do the following:

1. Add the reg key value in the HKCU hive
2. Then call the app executable to launch

The fact that the reg key is not saving in the HKCU part which is related to the user profile, means that there is something wrong with loading the profile - or - last write issue is prevailing in your situation.

Ensure the following:
1. Users have separate profiles for their terminal services sessions and their normal desktop sessions.
2. Avoid activities causing last write issue and eventually might lead to temporary profiles

Best to use profile management solution other than windows profile management. Citrix profile management is free and avoids such issues.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ncomperAuthor Commented:
Created the VB script to change the registry setting for the HKCU then call the application.exe
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.