Changeset 4287 for trunk/scripts

Show
Ignore:
Timestamp:
05/29/08 02:49:16 (8 months ago)
Author:
pmoura
Message:

Updated the Windows installer script to search the registry for the location of the YAP installation (for YAP 5.1.3 or later versions).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/scripts/windows/logtalk.iss

    r4283 r4287  
    131131Name: "{group}\Logtalk - XSB-MT"; Filename: "C:\XSB\config\i686-pc-cygwin-mt\bin\xsb.exe"; Parameters: "--shared_predicates -l -e ""['%LOGTALKUSER%\\configs\\xsb.config', '%LOGTALKHOME%\\compiler\\logtalk.pl', '%LOGTALKUSER%\\libpaths\\libpaths.pl']."""; Comment: "Runs Logtalk with XSB-MT"; WorkingDir: "{code:GetLgtUserDir}"; Components: prolog\xsb; Flags: createonlyiffileexists 
    132132 
    133 Name: "{group}\Logtalk - YAP"; Filename: "C:\Yap\bin\yap.exe"; Parameters: "-l ""$LOGTALKHOME/integration/logtalk_yap.pl"""; Comment: "Runs Logtalk with YAP"; WorkingDir: "{code:GetLgtUserDir}"; Components: prolog\yap; Flags: createonlyiffileexists 
     133Name: "{group}\Logtalk - YAP"; Filename: "{code:GetYAPExePath}"; Parameters: "-l ""$LOGTALKHOME/integration/logtalk_yap.pl"""; Comment: "Runs Logtalk with YAP"; WorkingDir: "{code:GetLgtUserDir}"; Components: prolog\yap; Flags: createonlyiffileexists 
    134134 
    135135Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"; Components: base 
     
    330330    Result := 'lgt_exe_does_not_exist' 
    331331end; 
     332 
     333function GetYAPExePath(Param: String): String; 
     334var 
     335  Home: String; 
     336begin 
     337  if RegQueryStringValue(HKLM, 'Software\YAP\Prolog\', 'home', Home) then 
     338    Result := Home + '\bin\yap.exe' 
     339  else 
     340    Result := 'lgt_exe_does_not_exist' 
     341end;