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.
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.
2007-2013
Why is my data not saved to my database? | Communicating between multiple forms | MSDN Data Walkthroughs
MSDN "How Do I?" Videos: VB | C#
VBForums Database Development FAQ
My CodeBank Submissions: VB (*NEW* Pausing Code) | C#
My Blog: Using Parameters in ADO.NET | Keyboard Events | Assemblies & Namespaces
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:Originally Posted by Edneeis
addresses the current issue in the second last section, very near the bottom of the page.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.![]()
2007-2013
Why is my data not saved to my database? | Communicating between multiple forms | MSDN Data Walkthroughs
MSDN "How Do I?" Videos: VB | C#
VBForums Database Development FAQ
My CodeBank Submissions: VB (*NEW* Pausing Code) | C#
My Blog: Using Parameters in ADO.NET | Keyboard Events | Assemblies & Namespaces