Ignore:
Timestamp:
Sep 20, 2021, 12:25:22 PM (3 years ago)
Author:
chronos
Message:
  • Fixed: Correctly detect data application directories for Linux installation.
  • Modified: Use registry key and root from application info component.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormCheck.pas

    r207 r209  
    724724  with TRegistryEx.Create do
    725725  try
    726     RootKey := HKEY_CURRENT_USER;
    727     OpenKey(DefaultRegKey, True);
     726    RootKey := RegistryRootHKEY[Core.ApplicationInfo1.RegistryRoot];
     727    OpenKey(Core.ApplicationInfo1.RegistryKey, True);
    728728    EditSummaryStart.Text := ReadStringWithDefault('SummaryStart', 'ACRONYMS AND ABBREVIATIONS');
    729729    EditSummaryEnd.Text := ReadStringWithDefault('SummaryEnd', 'Appendix');
     
    739739  with TRegistryEx.Create do
    740740  try
    741     RootKey := HKEY_CURRENT_USER;
    742     OpenKey(DefaultRegKey, True);
     741    RootKey := RegistryRootHKEY[Core.ApplicationInfo1.RegistryRoot];
     742    OpenKey(Core.ApplicationInfo1.RegistryKey, True);
    743743    WriteString('SummaryStart', EditSummaryStart.Text);
    744744    WriteString('SummaryEnd', EditSummaryEnd.Text);
Note: See TracChangeset for help on using the changeset viewer.