Friday, August 10, 2012 9:27 AM
We have an application that uses a local database file in the application's program folder itself. All the changes made in this application are stored in the database. When we restream the application to the client computer, this data is lost. If I'm not mistaking this data should be kept in user data directory (roaming appdata\softgrid client), is this correct? What could be the reason these changes are lost during the streaming of the application? Thanks in advance!
- Moved by Aaron.ParkerMVP, Moderator Friday, August 10, 2012 11:27 AM (From:App-V Server and Management)
Friday, August 10, 2012 11:30 AMModerator
Are you able to place the database elsewhere on the file system? Keeping data inside an virtual application package is not recommended.
What do you mean by re-stream? Are you deleting the package from the client machine and re-streaming the same package or creating a new package of the same application and deploying that?
This forum post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.
Please remember to click "Mark as Answer" or "Vote as Helpful" on the post that answers your question (or click "Unmark as Answer" if a marked post does not actually answer your question). This can be beneficial to other community members reading the thread.
Friday, August 10, 2012 11:45 AM
If you keep the contents in %APPDATA% it will stay there, but as Aaron stated its probably a bad idea.
Any reason %APPDATA% will not be persistant in your environment? Any reason you will restream the applications?
Such reason can make the DB be clear - but that is something that would be unique to your environment
Monday, August 13, 2012 9:26 AM
The location of the database is hardcoded in the software. Also, sybase database connector is installed within the AppV package since these applications are streamed to a shared TS-farm on which we do not install any additional software.
I was able to discover the actual problem this weekend. It seems like sometimes the local roaming appdata on one of the TS servers is used instead of the redirected one on the file cluster. I don't see any errors in eventvwr though... I also checked permitions and access to the redirected appdata from each TS server, also without any problems. In which circumstances would the local appdata be used instead of the redirected one?
We sometimes have to re-stream the package, for example when updating the software within the package. Is there a way to deploy these updated packages without losing the usersettings/changes?
Monday, August 13, 2012 9:33 AM
Local appdata is only used as a temporary working copy - once an application is closed the files are copied to the set user data directory and removed.
See this article on how App-V users your system drive;
See this article on what choices you have for upgrading App-V Packages;