roaming-profile

How to save user.config to AppData\Roaming folder instead of AppData\Local?

懵懂的女人 提交于 2019-12-18 10:36:09
问题 Introductory Example This code Properties.Settings.Default.MyUserSettingBlah = "some new value"; Properties.Settings.Default.Save(); saves the user.config file to C:\Users\MyUserName\AppData\Local\My_Company_Name\MyApp_Url_vb2s5kwidefdmxstmabckatcyl5t0lxd\1.0.0.0\user.config Question How can I save user.config to C:\Users\MyUserName\AppData\ Roaming \... instead of C:\Users\MyUserName\AppData\ Local \... ? 回答1: I stumbled on this now... As far as I know, it should be that you should put:

Is there any way to determine if the iphone is roaming?

大憨熊 提交于 2019-12-17 05:48:25
问题 I am working on an iPhone application and would really like to determine if the device is roaming so that I can intelligently avoid costing my users expensive connections if out of their home network. The application I am writing is for jailbroken phones, however I would prefer to use standard SDKs if possible. Here is what I've already found: 1. Apple SDKs: In the apple documentation, I found the promise in Apple's SCNetworkReachability API. The API provides access to such things as whether

Best Practices for Roaming Profile Support Testing

自古美人都是妖i 提交于 2019-12-12 01:29:58
问题 We need to ensure that a Windows app that we make (which includes Office plugins) works right when installed in a Roaming Profile environment. Can anyone supply procedures, or a pointer to procedures, for Setting up a test AD domain for use in testing with roaming profiles testing The fact that we've got Office plugins implies, of course, that we've got COM objects. 回答1: For the proper configuration of Active Directory I would look at a post over on ServerFault as that is more of a server

How to work around LocalFileSettingsProvider requiring Full Control/OwnerRights

隐身守侯 提交于 2019-12-07 05:06:30
问题 In my .NET client application I use the default settings provider with Scope=User and Roaming=True. This works fine in most environments, no matter if client or Terminal Server, except for a customer with a Citrix Terminal Server farm. Whenever Properties. Settings.Default.Save() is called, the following exception is thrown: System.UnauthorizedAccessException: Attempted to perform an unauthorized operation. at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name,

Windows: How to canonicalize a file to the special folder?

五迷三道 提交于 2019-12-04 22:52:30
问题 i want to to persist some filenames for the user (e.g. recent files). Let's use six example files: c:\Documents & Settings\Ian\My Documents\Budget.xls c:\Documents & Settings\Ian\My Documents\My Pictures\Daughter's Winning Goal.jpg c:\Documents & Settings\Ian\Application Data\uTorrent c:\Documents & Settings\All Users\Application Data\Consonto\SpellcheckDictionary.dat c:\Develop\readme.txt c:\Program Files\Adobe\Reader\WhatsNew.txt i'm now hard-coding path to special folders. If the user

Windows: How to canonicalize a file to the special folder?

别来无恙 提交于 2019-12-03 14:25:34
i want to to persist some filenames for the user (e.g. recent files). Let's use six example files: c:\Documents & Settings\Ian\My Documents\Budget.xls c:\Documents & Settings\Ian\My Documents\My Pictures\Daughter's Winning Goal.jpg c:\Documents & Settings\Ian\Application Data\uTorrent c:\Documents & Settings\All Users\Application Data\Consonto\SpellcheckDictionary.dat c:\Develop\readme.txt c:\Program Files\Adobe\Reader\WhatsNew.txt i'm now hard-coding path to special folders. If the user redirects their folders, roams to another computer, or upgrades their operating system, the paths will be

What is the difference: LoadUserProfile -vs- RegOpenCurrentUser

前提是你 提交于 2019-12-03 10:14:14
问题 These two APIs are very similar but it is unclear what the differences are and when each should be used (Except that LoadUserProfile is specified for use with CreateProcessAsUser which I am not using. I am simply impersonating for hive accesss). LoadUserProfile http://msdn.microsoft.com/en-us/library/bb762281(VS.85).aspx RegOpenCurrentUser http://msdn.microsoft.com/en-us/library/ms724894(VS.85).aspx According to the Services & the Registry article: http://msdn.microsoft.com/en-us/library

What is the difference: LoadUserProfile -vs- RegOpenCurrentUser

冷暖自知 提交于 2019-12-03 00:44:44
These two APIs are very similar but it is unclear what the differences are and when each should be used (Except that LoadUserProfile is specified for use with CreateProcessAsUser which I am not using. I am simply impersonating for hive accesss). LoadUserProfile http://msdn.microsoft.com/en-us/library/bb762281(VS.85).aspx RegOpenCurrentUser http://msdn.microsoft.com/en-us/library/ms724894(VS.85).aspx According to the Services & the Registry article: http://msdn.microsoft.com/en-us/library/ms685145(VS.85).aspx we should use RegOpenCurrentUser when impersonating. But what does/should

How to save user.config to AppData\\Roaming folder instead of AppData\\Local?

与世无争的帅哥 提交于 2019-11-29 23:08:30
Introductory Example This code Properties.Settings.Default.MyUserSettingBlah = "some new value"; Properties.Settings.Default.Save(); saves the user.config file to C:\Users\MyUserName\AppData\Local\My_Company_Name\MyApp_Url_vb2s5kwidefdmxstmabckatcyl5t0lxd\1.0.0.0\user.config Question How can I save user.config to C:\Users\MyUserName\AppData\ Roaming \... instead of C:\Users\MyUserName\AppData\ Local \... ? Ivan Ičin I stumbled on this now... As far as I know, it should be that you should put: [global::System.Configuration.SettingsManageability(System.Configuration.SettingsManageability.Roaming

Is there any way to determine if the iphone is roaming?

北城以北 提交于 2019-11-26 18:43:18
I am working on an iPhone application and would really like to determine if the device is roaming so that I can intelligently avoid costing my users expensive connections if out of their home network. The application I am writing is for jailbroken phones, however I would prefer to use standard SDKs if possible. Here is what I've already found: 1. Apple SDKs: In the apple documentation, I found the promise in Apple's SCNetworkReachability API. The API provides access to such things as whether you are on a WIFI or a cell phone network, whether a network connection is currently established, etc.