How can I change the file path of the app config/settings file? The settings file gets wiped out when I deploy an update with clickonce. I'd like to store the file within a folder in My Documents.
Printable View
How can I change the file path of the app config/settings file? The settings file gets wiped out when I deploy an update with clickonce. I'd like to store the file within a folder in My Documents.
Anyone anyone anyone.
You cannot decide where the config file resides. I don't think it should be an issue anyway though, as it's my understanding that ClickOnce merges existing settings into the new version.
http://msdn.microsoft.com/en-us/library/ms228995.aspx
I've never actually deployed using ClickOnce so I'm going to test this out for myself tomorrow.
All settings are lost after the user updates.
You can persist settings for ClickOnce. There is a better article on MSDN somewhere but this should work also.
http://www.devx.com/dotnet/Article/33944/1954
I know I've seen such an article before but my quick initial serahc didn't turn it up. I was going to have a more thorough look today. It seems I don't have to because this:Quote:
Originally Posted by Edneeis
addresses the current issue in the second last section, very near the bottom of the page. :thumb:Quote:
Originally Posted by Edneeis
I really should have a proper play around with ClickOnce some time though. So many things to have a play around with; so little time. :rolleyes: