-
Dec 4th, 2008, 08:34 AM
#1
Thread Starter
Hyperactive Member
How to change the file path of the app config/settings file?
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.
-
Dec 5th, 2008, 03:26 PM
#2
Thread Starter
Hyperactive Member
Re: How to change the file path of the app config/settings file?
-
Dec 6th, 2008, 06:09 AM
#3
Re: How to change the file path of the app config/settings file?
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.
-
Dec 6th, 2008, 07:20 AM
#4
Thread Starter
Hyperactive Member
Re: How to change the file path of the app config/settings file?
All settings are lost after the user updates.
-
Dec 6th, 2008, 01:30 PM
#5
Re: How to change the file path of the app config/settings file?
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
-
Dec 6th, 2008, 07:20 PM
#6
Re: How to change the file path of the app config/settings file?
Originally Posted by Edneeis
There is a better article on MSDN somewhere
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.
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|