Reputation: 14913
I am installing a WPF Application using the ClickOnce deployment. There are certain settings in the app.config that need to be changed after the Application is installed. Although the app.config exists in the deployment folder as assemblyname.exe.config.deploy , after installing the application I can't seem to find it on the client machine so that I can change the settings.
Where do I look for it, any pointers?
Many Thanks.
Upvotes: 5
Views: 11642
Reputation: 2026
as per How to get folder path for ClickOnce application, you can get the folder of a running task by right-clicking it in the Task Manager (or for earlier versions of windows in Process Explorer from www.SysInternals.com)
Upvotes: 0
Reputation: 44322
You should use SlowCheetah (a VS extension). With this you can create a transformation for your app.config file based on your build configuration (i.e debug/release). Then when you publish with ClickOnce your app.config file (or any other XML file for that matter) will be transformed into the ClickOnce package which gets published. You can find a sample at https://github.com/sayedihashimi/slow-cheetah/tree/master/SlowCheetah.Samples/Wpf.Transform.
Upvotes: 3
Reputation: 7200
The application configuration is located in here (replace <username> by the username, XP users look in "Document and Settings"):
C:\Users\<username>\AppData\Local\Apps\2.0
It's located in one of those semi-cryptic subfolders, but I'm sure you'll get it :)
Upvotes: 15