Location of ClickOnce settings?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I tried to find information on where the settings go, but I didn't find
anything.
And I can't find neither the settingsfile nor the EXE-file after install.

Feels a bit strange not knowing where my application goes ....
I guess it's by intention, but sometimes it is good to have control on what
versions is present, especially on settings.

Where are the files stored?
1) Application EXE
2) Application settings
3) User settings

Do you have any hints on recommended practice for updating of these files?
Must they always be manipulated by code? In test scenarios it is often
conveniant just to change a text file ...
I am concerned to know if deployed settings files is in effect or if there
are remnant settings files left from previous deploys that are intervening.
 
Hi jaklithn,

Thanks for your post.

When deployed with ClickOnce, the exe files are embeded in setup.exe, while
the config files are stored in certain version directory as
<appname>.exe.config.deploy file. If you use notepad to open this file, you
will see the config content.

The Microsoft .Net winform SDE "Raghavendra Prabhu" has maintain a FAQ for
application/user settings, you can find more information there:
"Client Settings FAQ"
http://blogs.msdn.com/rprabhu/articles/433979.aspx

Hope this helps

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Thanks for your answer.
But the reference to setup.exe was kind of misleading. I guess you are
referring to the file structure of the deploy directory there?

The blog answered the question pretty well though, so I managed to find in
my local settings directory:
<ApplicationName>.exe
<ApplicationName>.exe.config
....<ApplicationName>.....\user.config

My conclusion is that I will avoid to find and manipulate the settings
manually :)
 
Hi jaklithn,

Thanks for your feedback.

Oh, it seems that I somewhat misunderstand your meaning. Yes, I just talked
about the directory structure in server side after deployment. For client
side, Raghavendra Prabhu's FAQ fulfilled my missing point. Cool.

If you need further help, please feel free to tell me, thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top