I've been working with an updated to update one of my apps and using Properties.Settings.Default.Upgrade()
and discovered that after my updater restarts my app, it is run under the SYSTEM user instead of the default/logged in user.
This got me wondering, where is the user.config for SYSTEM stored?
I know where the user.config is stored normally (C:\Documents and Settings\%USERPROFILE%\Local Settings\Application Data\etc...
), but there isn't a folder in Documents and Settings
for the SYSTEM user. Does anybody know where it is or/how .NET handles this?
Since I don't know the answer, I would do the following to figure out:
Path
to your application's name.This helped me often in the past, maybe it could be something for you, too?
The Local Application Data folder for the SYSTEM account is usually located in
for Windows XP and
for later versions.
(I write usually, because
Windows does not need to be installed in
C:\Windows
, andthe folder names
Local Settings
andApplication Data
are localized in Windows XP, andon 64-bit versions of Windows, the folder for 32-bit applications is located underneath
C:\Windows\SysWOW64
instead ofSystem32
.)is the location where a non-interactive user gets their profile from when nobody is logged in.