Browse Source

* Ensure installer is there, needed by some packages

Michaël Van Canneyt 2 years ago
parent
commit
fa09eb9b08
1 changed files with 6 additions and 3 deletions
  1. 6 3
      packages/fpmake.pp

+ 6 - 3
packages/fpmake.pp

@@ -52,8 +52,11 @@ end;
 
 
 {$ifdef no_parent}
 {$ifdef no_parent}
 begin
 begin
-  add_packages_comandlineoptions();
-  add_packages('');
-  Installer.Run;
+  if Assigned(Installer) then
+    begin
+    add_packages_comandlineoptions();
+    add_packages('');
+    Installer.Run;
+    end;
 end.
 end.
 {$endif no_parent}
 {$endif no_parent}