Application persistance setting don't works

0

Good evening to all, when I edit an xml configuration file under path C:\appname during the session, when I disconnect this change is lost even if I have enabled in the stack the application persistance setting and the home folder S3 in storage. Do you have any advice? Thank you!!

2 Answers
0

The application settings persistence feature persists most files and folders that are contained in the Windows user profile. Per the documentation, that folder is C:\Users%username%. Note that some folders are excluded from being persisted (basically the user data directories).

The S3 Home Folder feature will only persist files and folders that are specifically saved to it. The Home Folder location is C:\Users%username%\My Files\Home Folder. Anything saved outside of this folder will not be persisted by the S3 Home Folder feature. Note that Home Folder mounting begins after the user session begins, so there can be some time after the application attempts to launch that the Home Folder is not yet available.

Since C:\appname is not included in the Windows user profile, or in the S3 Home Folder location, it will not be persisted. If you can move your application's files to either the Windows user profile (except one of the folders not persisted) or the S3 Home Folder location, AppStream 2.0 can then persist it.

EXPERT
answered 2 years ago
  • Thanks for the quick response, but when installing the application in the image builder, in which folder under C: Users do I install? Administrator,DefaultProfileUser,ImageBuilderAdmin,ImageBuilderTest or Public? Thanks in advance!!

  • I'm not sure I understand the question - the application can be installed to any location. If you're trying to create default settings for that application, they should be saved to the default user profile - either via using the Template User on the image builder, or saving directly to C:\Users\Default\AppData\Roaming. Then your application refers to that file, usually using %appdata%. %appdata% will always reflect the users profile, and the application settings persistence feature persists it.

0

Nothing you save in a folder off the C Drive like that will persist. App Settings Persistence is in the user's APPDATA folder, and Home Folders is an actual folder that you must intentionally save data to, it's not going to proactively scan folders as you are suggesting.

AWS
EXPERT
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions