Martijn Laan 7 лет назад
Родитель
Сommit
c5f6deadc1
2 измененных файлов с 3 добавлено и 3 удалено
  1. 1 1
      Examples/Example3.iss
  2. 2 2
      ISHelp/isxfunc.xml

+ 1 - 1
Examples/Example3.iss

@@ -32,7 +32,7 @@ Name: "{group}\My Program"; Filename: "{app}\MyProg.exe"
 ; uninstall, and delete the "My Company" key if there is nothing left in it.
 Root: HKA; Subkey: "Software\My Company"; Flags: uninsdeletekeyifempty
 Root: HKA; Subkey: "Software\My Company\My Program"; Flags: uninsdeletekey
-Root: HKA; Subkey: "Software\My Company\My Program\Settings"; ValueType: string; ValueName: "UserName"; ValueData: "{sysuserinfoname}"
+Root: HKA; Subkey: "Software\My Company\My Program\Settings"; ValueType: string; ValueName: "Language"; ValueData: "{language}"
 ; HKA (and HKCU) should only be used for settings which are compatible with
 ; roaming profiles so settings like paths should be written to HKLM, which
 ; is only possible in administrative install mode.

+ 2 - 2
ISHelp/isxfunc.xml

@@ -1973,7 +1973,7 @@ end;</pre></example>
         <remarks><p>If the value already exists and is of type REG_EXPAND_SZ, the new value will also be of type REG_EXPAND_SZ. Otherwise, a REG_SZ-type value will be created.</p></remarks>
         <example><pre>begin
   RegWriteStringValue(HKEY_AUTO, 'Software\My Company\My Program',
-    'UserName', ExpandConstant('{sysuserinfoname}'));
+    'Language', ExpandConstant('{language}'));
 end;</pre></example>
       </function>
       <function>
@@ -1981,7 +1981,7 @@ end;</pre></example>
         <prototype>function RegWriteExpandStringValue(const RootKey: Integer; const SubKeyName, ValueName, Data: String): Boolean;</prototype>
         <description><p>Writes the specified REG_EXPAND_SZ-type registry value. Returns True if successful, False otherwise.</p></description>
         <example><pre>begin
-  RegWriteStringValue(HKEY_AUTO, 'Software\My Company\My Program',
+  RegWriteStringValue(HKEY_CURRENT_USER, 'Software\My Company\My Program',
     'UserName', '%UserName%);
 end;</pre></example>
       </function>