Changeset 394 for ModularSystem/UModularSystem.pas
- Timestamp:
- Jul 31, 2012, 8:53:58 AM (12 years ago)
- Location:
- ModularSystem
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ModularSystem
-
Property svn:ignore
set to
lib
-
Property svn:ignore
set to
-
ModularSystem/UModularSystem.pas
r315 r394 20 20 Version: string; 21 21 Name: string; 22 Title: string; 22 23 Dependencies: TStringList; 23 24 Author: string; 24 Description: string; 25 Description: TStringList; 26 License: string; 25 27 procedure Install; virtual; 26 28 procedure Uninstall; virtual; … … 97 99 Module := FindModuleByName(Dependencies[I]); 98 100 if Assigned(Module) then begin 99 if not Module.Installed and (ModuleList.IndexOf(Module.Name) = -1) then 101 if not Module.Installed and (ModuleList.IndexOf(Module.Name) = -1) then begin 100 102 ModuleList.Add(Module.Name); 103 EnumModulesInstall(Module.Dependencies, ModuleList); 104 end; 101 105 end else raise Exception.CreateFmt(SModuleNotFound, [Module.Name]); 102 106 end; … … 111 115 with TModule(Modules[I]) do begin 112 116 if (Dependencies.IndexOf(ModuleName) <> -1) and Installed and 113 (ModuleList.IndexOf(Name) = -1) then 117 (ModuleList.IndexOf(Name) = -1) then begin 114 118 ModuleList.Add(Name); 119 Self.EnumModulesUninstall(Name, ModuleList); 120 end; 115 121 end; 116 122 end; … … 169 175 begin 170 176 Dependencies := TStringList.Create; 177 Description := TStringList.Create; 171 178 end; 172 179 173 180 destructor TModule.Destroy; 174 181 begin 182 Description.Free; 175 183 Dependencies.Free; 176 184 inherited Destroy;
Note:
See TracChangeset
for help on using the changeset viewer.