1 ; $VER: Install OpenURL 6.3 (17.4.2005)
4 (set #exitmsg "\n\nIf you are a developer and wish to use\nopenurl.library, check out the included\ndocumentation and source code.")
8 (welcome "\nThis installer script will install openurl.library and tools.\nopenurl.library is a universal URL display and browser launcher library.")
10 ; Copy openurl.library
13 (prompt "Installing the library")
14 (help @copyfiles-help)
15 (source "libs/openurl.library")
19 ; Copy OpenURL preferences program
22 (prompt "Installing the preference program")
23 (help @copyfiles-help)
24 (source "Prefs/OpenURL")
29 (prompt "Installing the preference program")
30 (help @copyfiles-help)
31 (source "Prefs/OpenURL.info")
39 (set #catSourceDir (tackon "Catalogs" @language))
40 (set #catDestDir (tackon "Locale:" (tackon "Catalogs" @language)))
41 (if (= (and (= (exists (#catSourceDir)) 2) (= (exists (#catDestDir)) 2)) 1)
42 (foreach #catSourceDir "#?"
44 (source (tackon #catSourceDir @each-name))
50 ; Copy OpenURL command
53 (prompt "Installing the optional commandline tool")
54 (help "This is a small tool that allows you to open URLs from the commandline.")
60 ; Set environment variable
62 (run "Echo SYS:Prefs/OpenURL >ENV:OpenURL_Prefs_Path")
63 (run "Echo SYS:Prefs/OpenURL >ENVARC:OpenURL_Prefs_Path")
67 (message "Before proceeding, you must quit all programs using openurl.library, so that the old version can be flushed from memory.")
70 ; Ask whether to run prefs program
75 (prompt "You should run the preferences program now to set your browser path(s) and other preferences. Would you like me to launch it?")
83 (run "SYS:Prefs/OpenURL")
88 (exit #exitmsg (quiet))