Answered Virtualized application loses local data when restreamed

  • Friday, August 10, 2012 9:27 AM
     
     

    Hi,

    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!

    Regards,

    Yannick

All Replies

  • Friday, August 10, 2012 11:30 AM
    Moderator
     
     

    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?



    Twitter: @stealthpuppy | Blog: stealthpuppy.com

    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
     
     

    Hello,

    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


    Nicke Källén | The Knack| Twitter: @Znackattack

  • Monday, August 13, 2012 9:26 AM
     
     Answered

    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
     
     

    Hello,

    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;

    http://blogs.technet.com/b/appv/archive/2009/03/26/how-app-v-uses-your-system-drive.aspx

    See this article on what choices you have for upgrading App-V Packages;

    http://blogs.technet.com/b/appv/archive/2007/09/25/methods-for-upgrading-or-updating-virtualized-applications.aspx


    Nicke Källén | The Knack| Twitter: @Znackattack