We have many products that maintain their βstateβ in the registry.
What is the best practice for maintaining program states? What are the advantages / disadvantages of saving program states like registry entries or saving program states to a flat file, such as XML?
Thank!
The obvious answer would be to save these states in a regular file, which makes it easier for users to manually backup / restore the state.
Also note that there are several keys in the registry that are special for each user in the system.
, - , , ββ(, , ). , .
, . , - , , Vista UAC.
, .Net, Windows . , , , , , , .
, , , () . . UAC , , .
.
( , "" Windows?)
( ) . , ..
, "", " /", . , , , .
. .INI . , . , .INI .
(/?). . , .
, . Windows/// ( ). c:\program files, . , , c:\user data, ( tweakui power toy regedit ( - )).
c:\program files
c:\user data
- Windows , re-insatll ( ), C:
Windows, . , , , , , .
Imo, , - Windows, - .
? . INI, , , .
, ...
, , INI XML . , , . , , , , .
, =)
io vs , // / /
,
, . - XCopy-Deployable, . .ini( - INI, .net )
, (, Windows), "" , , . , , C:\Program Files , . , (% APPDATA% , , Silverlight), " ".
, Mono, Registry Flat Files.
Source: https://habr.com/ru/post/1738650/More articles:C ++ masking passwords - c ++How to add code that Waf always executes before exiting? - pythonFunctional way to get matrix from text - arraysΠ½Π°ΠΉΡΠΈ ΡΠ½ΠΈΠΊΠ°Π»ΡΠ½ΡΠ΅ ΠΌΠ°ΡΡΠΈΡΡ ΠΈΠ· Π±ΠΎΠ»Π΅Π΅ ΠΊΡΡΠΏΠ½ΠΎΠΉ ΠΌΠ°ΡΡΠΈΡΡ - scalaΠΈΠ·ΠΌΠ΅Π½ΠΈΡΡ ΡΠ°Π·ΠΌΠ΅Ρ ΠΏΠΈΡΡΠΌΠ° Π½Π° teXnicCenter & MikTex - latexA regular expression that includes an exception (that is, "Does not contain") for grep - regexHow can I extract all links from a page except one using Perl WWW :: Mechanize? - perliphone - using UISwitch - iphonemercurial fails with a file named ---. config - in any way? - mercurialjQuery Toggle with Cookie - jqueryAll Articles