We have a WPF oneclick application where we have content that is updated from the web server and the files are copied into the application content directories.
It seems that there is a directory that is where content is read from but I can't find it. There seems to be 2 directories that I can find through application variables: AppDomain.CurrentDomain.BaseDirectory System.Deployment.Application.ApplicationDeployment.CurrentDeployment.DataDirectory
The first one gives this directory: %USER_DIR%\AppData\Local\Apps\2.0\Z7CC6XEX.WZ6\AMHN5JKE.24H\gear..tion_58b3e06760c5809e_0001.0000_8bdd947f29008ffc
The second one gives this directory: %USER_DIR%\AppData\Local\Apps\2.0\Data\DCTM6YKT.LZQ\EOCXOVVB.VJC\gear..tion_58b3e06760c5809e_0001.0000_8bdd947f29008ffc\Data
The directory I am interested in is this: %USER_DIR%\AppData\Local\Apps\2.0\Z7CC6XEX.WZ6\AMHN5JKE.24H\gear...exe_58b3e06760c5809e_0001.0000_none_ee6c716212f37acf
I've looked through all the application variables, and can't find a way to get this directory.
Does anyone know how I can get this directory and why it is different?
Not sure what you mean by "get this directory" but on Win 7 this dir is located at
C:\Users\User\AppData\Local\Apps\2.0\Data
Howerver, your best option, IMO, is to just create a dir for your app in %APPDATA% folder and store your content there...