Changeset 4475 for trunk/scripts
- Timestamp:
- 09/26/08 09:12:41 (8 weeks ago)
- Files:
-
- 1 modified
-
trunk/scripts/windows/logtalk.iss (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/windows/logtalk.iss
r4466 r4475 121 121 Name: "{group}\Logtalk - GNU Prolog"; Filename: "{code:GetGPExePath}"; Parameters: "--init-goal ""['$LOGTALKUSER/configs/gnu.config', '$LOGTALKHOME/integration/logtalk_gp.pl', '$LOGTALKUSER/libpaths/libpaths.pl']"""; Comment: "Runs Logtalk with GNU Prolog"; WorkingDir: "{code:GetLgtUserDir}"; Components: prolog\gprolog; Flags: createonlyiffileexists 122 122 123 Name: "{group}\Logtalk - K-Prolog"; Filename: "{code:GetKPExePath}"; Parameters: "-h 4096k -l 2048k -g 4096k -e ""(consult('$LOGTALKHOME/integration/logtalk_plc5.pl'), '$root')."""; Comment: "Runs Logtalk with K-Prolog"; WorkingDir: "{code:GetLgtUserDir}"; Components: prolog\ gprolog; Flags: createonlyiffileexists123 Name: "{group}\Logtalk - K-Prolog"; Filename: "{code:GetKPExePath}"; Parameters: "-h 4096k -l 2048k -g 4096k -e ""(consult('$LOGTALKHOME/integration/logtalk_plc5.pl'), '$root')."""; Comment: "Runs Logtalk with K-Prolog"; WorkingDir: "{code:GetLgtUserDir}"; Components: prolog\plc; Flags: createonlyiffileexists 124 124 125 125 Name: "{group}\Logtalk - Quintus Prolog"; Filename: "{code:GetQuintusExePath}"; Parameters: "+l ""%LOGTALKHOME%\integration\logtalk_quintus.pl"" +z ""%LOGTALKHOME%"" ""%LOGTALKUSER%"""; Comment: "Runs Logtalk with Quintus Prolog"; WorkingDir: "{code:GetLgtUserDir}"; Components: prolog\quintus; Flags: createonlyiffileexists … … 246 246 var 247 247 BPDIR: String; 248 Warning: String; 248 249 begin 249 250 if RegQueryStringValue(HKLM, 'SYSTEM\CurrentControlSet\Control\Session Manager\Environment\', 'BPDIR', BPDIR) then 250 251 Result := BPDIR + '\bp.bat' 251 else 252 Result := 'lgt_exe_does_not_exist' 252 else begin 253 Warning := 'Failed to detect B-Prolog installation.' + Chr(13) + 'Logtalk integration shortcut not created.'; 254 MsgBox(Warning, mbError, MB_OK); 255 Result := 'lgt_exe_does_not_exist' 256 end 253 257 end; 254 258 … … 256 260 var 257 261 CiaoDir: String; 262 Warning: String; 258 263 begin 259 264 if RegQueryStringValue(HKLM, 'Software\Ciao Prolog\', 'ciao_dir', CiaoDir) then 260 265 Result := CiaoDir + '\shell\ciaosh.cpx' 261 else 262 Result := 'lgt_exe_does_not_exist' 266 else begin 267 Warning := 'Failed to detect Ciao Prolog installation.' + Chr(13) + 'Logtalk integration shortcut not created.'; 268 MsgBox(Warning, mbError, MB_OK); 269 Result := 'lgt_exe_does_not_exist' 270 end 263 271 end; 264 272 … … 266 274 var 267 275 CxDir: String; 268 begin 269 if RegQueryStringValue(HKLM, 'SYSTEM\CurrentControlSet\Control\Session Manager\Environment\', 'CXPROLOG_DIR', CxDir) then 276 Warning: String; 277 begin 278 if RegQueryStringValue(HKLM, 'SYSTEM\CurrentControlSet\Control\Session Manager\Environment\', 'CXPROLOGDIR', CxDir) then 270 279 Result := CxDir + '\cxprolog.exe' 271 else 272 Result := 'lgt_exe_does_not_exist' 280 else begin 281 Warning := 'Failed to detect CxProlog installation.' + Chr(13) + 'Logtalk integration shortcut not created.'; 282 MsgBox(Warning, mbError, MB_OK); 283 Result := 'lgt_exe_does_not_exist' 284 end 273 285 end; 274 286 … … 276 288 var 277 289 ECLIPSEDIR: String; 290 Warning: String; 278 291 begin 279 292 if RegQueryStringValue(HKLM, 'Software\IC-Parc\Eclipse\5.10\', 'ECLIPSEDIR', ECLIPSEDIR) then 280 293 Result := ECLIPSEDIR + '\lib\i386_nt\eclipse.exe' 281 else 282 Result := 'lgt_exe_does_not_exist' 294 else begin 295 Warning := 'Failed to detect ECLiPSe Prolog 5 installation.' + Chr(13) + 'Logtalk integration shortcut not created.'; 296 MsgBox(Warning, mbError, MB_OK); 297 Result := 'lgt_exe_does_not_exist' 298 end 283 299 end; 284 300 … … 286 302 var 287 303 ECLIPSEDIR: String; 304 Warning: String; 288 305 begin 289 306 if RegQueryStringValue(HKLM, 'Software\IC-Parc\Eclipse\6.0\', 'ECLIPSEDIR', ECLIPSEDIR) then 290 307 Result := ECLIPSEDIR + '\lib\i386_nt\eclipse.exe' 291 else 292 Result := 'lgt_exe_does_not_exist' 308 else begin 309 Warning := 'Failed to detect ECLiPSe Prolog 6 installation.' + Chr(13) + 'Logtalk integration shortcut not created.'; 310 MsgBox(Warning, mbError, MB_OK); 311 Result := 'lgt_exe_does_not_exist' 312 end 293 313 end; 294 314 … … 296 316 var 297 317 RootPath: String; 318 Warning: String; 298 319 begin 299 320 if RegQueryStringValue(HKCU, 'Software\GnuProlog\', 'RootPath', RootPath) then 300 321 Result := RootPath + '\bin\gprolog.exe' 301 else 302 Result := 'lgt_exe_does_not_exist' 322 else begin 323 Warning := 'Failed to detect GNU Prolog installation.' + Chr(13) + 'Logtalk integration shortcut not created.'; 324 MsgBox(Warning, mbError, MB_OK); 325 Result := 'lgt_exe_does_not_exist' 326 end 303 327 end; 304 328 305 329 function GetKPExePath(Param: String): String; 306 begin 307 Result := GetEnv('PLC') + '\plc.exe' 330 var 331 Path: String; 332 Warning: String; 333 begin 334 Path := GetEnv('PLC') + '\plc.exe'; 335 if FileExists(Path) then 336 Result := Path 337 else begin 338 Warning := 'Failed to detect K-Prolog installation.' + Chr(13) + 'Logtalk integration shortcut not created.'; 339 MsgBox(Warning, mbError, MB_OK); 340 Result := 'lgt_exe_does_not_exist' 341 end 308 342 end; 309 343 310 344 function GetQuintusExePath(Param: String): String; 311 begin 312 Result := GetEnv('Quintus') + '\bin\ix86\qpwin.exe' 345 var 346 Path: String; 347 Warning: String; 348 begin 349 Path := GetEnv('Quintus') + '\bin\ix86\qpwin.exe'; 350 if FileExists(Path) then 351 Result := Path 352 else begin 353 Warning := 'Failed to detect Quintus Prolog installation.' + Chr(13) + 'Logtalk integration shortcut not created.'; 354 MsgBox(Warning, mbError, MB_OK); 355 Result := 'lgt_exe_does_not_exist' 356 end 313 357 end; 314 358 … … 316 360 var 317 361 SP_PATH: String; 362 Warning: String; 318 363 begin 319 364 if RegQueryStringValue(HKLM, 'Software\SICS\SICStus3.12_win32\', 'SP_PATH', SP_PATH) then 320 365 Result := SP_PATH + '\bin\spwin.exe' 321 else 322 Result := 'lgt_exe_does_not_exist' 366 else begin 367 Warning := 'Failed to detect SICStus Prolog 3 installation.' + Chr(13) + 'Logtalk integration shortcut not created.'; 368 MsgBox(Warning, mbError, MB_OK); 369 Result := 'lgt_exe_does_not_exist' 370 end 323 371 end; 324 372 … … 326 374 var 327 375 SP_PATH: String; 376 Warning: String; 328 377 begin 329 378 if RegQueryStringValue(HKLM, 'Software\SICS\SICStus4.0_win32\', 'SP_PATH', SP_PATH) then 330 379 Result := SP_PATH + '\bin\spwin.exe' 331 else 332 Result := 'lgt_exe_does_not_exist' 380 else begin 381 Warning := 'Failed to detect SICStus Prolog 4 installation.' + Chr(13) + 'Logtalk integration shortcut not created.'; 382 MsgBox(Warning, mbError, MB_OK); 383 Result := 'lgt_exe_does_not_exist' 384 end 333 385 end; 334 386 … … 336 388 var 337 389 Home: String; 390 Warning: String; 338 391 begin 339 392 if RegQueryStringValue(HKLM, 'Software\SWI\Prolog\', 'home', Home) then 340 393 Result := Home + '\bin\plwin.exe' 341 else 342 Result := 'lgt_exe_does_not_exist' 394 else begin 395 Warning := 'Failed to detect SWI-Prolog installation.' + Chr(13) + 'Logtalk integration shortcut not created.'; 396 MsgBox(Warning, mbError, MB_OK); 397 Result := 'lgt_exe_does_not_exist' 398 end 343 399 end; 344 400 … … 346 402 var 347 403 Home: String; 404 Warning: String; 348 405 begin 349 406 if RegQueryStringValue(HKLM, 'Software\YAP\Prolog\', 'home', Home) then 350 407 Result := Home + '\bin\yap.exe' 351 else 352 Result := 'lgt_exe_does_not_exist' 353 end; 408 else begin 409 Warning := 'Failed to detect YAP installation.' + Chr(13) + 'Logtalk integration shortcut not created.'; 410 MsgBox(Warning, mbError, MB_OK); 411 Result := 'lgt_exe_does_not_exist' 412 end 413 end;
