|
@@ -51,13 +51,12 @@ Root: HKLM; Subkey: "Software\My Company"; Flags: uninsdeletekeyifempty; Check:
|
|
|
Root: HKLM; Subkey: "Software\My Company\My Program"; Flags: uninsdeletekey; Check: IsAdminInstallMode
|
|
|
Root: HKLM; Subkey: "Software\My Company\My Program\Settings"; ValueType: string; ValueName: "InstallPath"; ValueData: "{app}"; Check: IsAdminInstallMode
|
|
|
; User specific settings should always be written to HKCU, which should only
|
|
|
-; be done in non administrative install mode.
|
|
|
+; be done in non administrative install mode. Also see ShouldSkipPage below.
|
|
|
Root: HKCU; Subkey: "Software\My Company\My Program\Settings"; ValueType: string; ValueName: "UserName"; ValueData: "{userinfoname}"; Check: not IsAdminInstallMode
|
|
|
Root: HKCU; Subkey: "Software\My Company\My Program\Settings"; ValueType: string; ValueName: "UserOrganization"; ValueData: "{userinfoorg}"; Check: not IsAdminInstallMode
|
|
|
|
|
|
[Code]
|
|
|
function ShouldSkipPage(PageID: Integer): Boolean;
|
|
|
begin
|
|
|
- // User specific pages should be skipped in administrative install mode
|
|
|
Result := IsAdminInstallMode and (PageID = wpUserInfo);
|
|
|
end;
|