home *** CD-ROM | disk | FTP | other *** search
/ Network PC / Network PC.iso / amiga utilities / graphics / misc / imagedesk3.0 / imagedesk / installid < prev    next >
Encoding:
Text File  |  1997-11-20  |  10.8 KB  |  405 lines

  1. ; Install script for ImageDesk (Workbench 3.0 or higher)
  2.  
  3. (set @default-dest "work:ImageDesk")
  4. (set #CDir "C:")
  5. (set #KeyPath "S:")
  6.  
  7. ;=============================================================================
  8. ; English strings
  9.  
  10. (set default_lang 4)
  11.  
  12. (set #bad-kick "I'm sorry. ImageDesk needs Amiga-OS 3.0 or higher")
  13.  
  14. (set #install-msg
  15.     (cat "\n\nIMAGEDESK INSTALLATION\n"
  16.          "Don´t forget to read 'ImageDesk.guide'\n"
  17.          "after the installation.\n"
  18.          "ImageDesk ©1994-1995 Reinhard Haslbeck\n"
  19.          "All rights reserved."
  20.     )
  21. )
  22.  
  23. (set #Proc-msg
  24.     (cat "Please choose one of the two program versions\n"
  25.          "which are listed below. The MC68020 version\n"
  26.          "should run on 030 and 040 machines too."
  27.     )
  28. )
  29.  
  30. (set #Wicon-msg "Which kind of icons do you prefer?")
  31.  
  32. (set #MIPFIC-msg
  33.     (cat "MIPFIC is an ImageDesk tool\n"
  34.          "It converts ImageDesk catalogs\n"
  35.          "into IFF pictures.\n"
  36.          "Do you want me to install it?"
  37.     )
  38. )
  39.  
  40. (set #Exit-msg
  41.     (cat "ImageDesk now has been installed.\n"
  42.          "If You wanna have JPEG support, You have to\n"
  43.          "install the 'Tower JPEG Codec' too.\n"
  44.          "You will find it in the directory 'JPEG Codec'."
  45.     )
  46. )
  47.  
  48. (set #Copy020Msg "Copying 68020 version...")
  49. (set #Copy000Msg "Copying 68000 version...")
  50. (set #CopyMIPFICMsg "Copying MIPFIC...")
  51. (set #CopyMIPFICDocMsg "Copying MIPFIC.doc...")
  52. (set #CopyIFFLibMsg "Installing iff.library")
  53. (set #AskDirMsg  "Please select a directory\nto install ImageDesk in")
  54. (set #CopyComMsg "These are a few useful tools.\nDo You want to intstall them?")
  55. (set #CopyKeyMsg "Installing keyfile...")
  56. (set #DontCopyMSg "I'm going to install Your keyfile.\nDon't give it away, it includes some\nof Your personal data!")
  57.  
  58. (set #AskCatMsg "Do You want to install some Catalog examples?")
  59. (set #PosMsg "Yes")
  60. (set #NegMsg "No")
  61. (set #CopyCatMsg "Copy these files?")
  62. (set #AskCatDescMsg "Do You want me to copy the catalog\ndescription file for developers?")
  63. (set #CopyCatDescMsg "Copying catalog description...")
  64. (set #CopyICONMsg "Working on default project icon")
  65. (set #ToolTypeMsg "Setting icon attributes")
  66. (set #AskRexxMsg "Do You want to install some AREXX example scripts?")
  67. (set #ExtractMsg "Stay a bit patient\nextracting files from archive...")
  68.  
  69.  
  70. ;=============================================================================
  71. ; German strings
  72.  
  73. (if   (= @language "deutsch")
  74. (
  75.     (set default_lang 2)
  76.  
  77.     (set #bad-kick "Zu dumm! ImageDesk benötigt leider Amiga-OS 3.0 oder höher")
  78.  
  79.     (set #install-msg
  80.         (cat "\n\nIMAGEDESK INSTALLATION\n"
  81.              "Vergessen Sie nicht die Anleitung 'ImageDesk.guide'\n"
  82.              "nach der Installation zu lesen.\n"
  83.              "ImageDesk ©1994-1995 Reinhard Haslbeck\n"
  84.              "Alle Rechte vorbehalten."
  85.         )
  86.     )
  87.  
  88.     (set #Proc-msg
  89.         (cat "Wählen Sie bitte welche der beiden untenstehenden\n"
  90.              "Programmversionen installiert werden soll.\n"
  91.              "MC68020 sollte auch auf 030 und 040 Maschinen laufen."
  92.         )
  93.     )
  94.  
  95.     (set #Wicon-msg "Wählen Sie welche Icons\ninstalliert werden sollen.")
  96.  
  97.     (set #MIPFIC-msg
  98.         (cat "MIPFIC ist ein Zusatzprogramm für\n"
  99.              "ImageDesk. Es erzeugt IFF-Bilder\n"
  100.              "aus ImageDesk-Katalogen.\n"
  101.              "Soll es ebenfalls installiert werden?"
  102.         )
  103.     )
  104.  
  105.     (set #Exit-msg
  106.         (cat "ImageDesk ist nun installiert.\n"
  107.              "Wenn Sie JPEG Unterstützung haben wollen, müssen\n"
  108.              "Sie den 'Tower JPEG Codec', ebenfalls installieren.\n"
  109.              "Er befindet sich im Verzeichnis 'JPEG Codec'."
  110.         )
  111.     )
  112.  
  113.  
  114.     (set #Copy020Msg "Kopiere 68020 Version...")
  115.     (set #Copy000Msg "Kopiere 68000 Version...")
  116.     (set #CopyMIPFICMsg "Kopiere MIPFIC...")
  117.     (set #CopyMIPFICDocMsg "Kopiere MIPFIC.doc...")
  118.     (set #CopyIFFLibMsg "Installiere iff.library")
  119.     (set #AskDirMsg  "Wählen Sie bitte ein Verzeichnis in-\ndem Imagedesk Installiert werden soll")
  120.     (set #CopyComMsg "Dies sind einige nützliche Tools.\nSollen sie installiert werden?")
  121.     (set #CopyKeyMsg "Installiere Keyfile...")
  122.     (set #DontCopyMSg "Es wird nun das Keyfile kopiert. Geben\nSie es keinesfalls weiter, es sind einige\nIhrer persönlichen Daten darin enthalten!")
  123.     (set #AskCatMsg "Sollen einige Catalog Beispiele installiert werden?")
  124.     (set #PosMsg "Ja")
  125.     (set #NegMsg "Nein")
  126.     (set #CopyCatMsg "Diese Dateien Kopieren?")
  127.     (set #AskCatDescMsg "Soll die Katalogbeschreibung\nfür Entwickler kopiert werden?")
  128.     (set #CopyCatDescMsg "Kopiere Katalogbeschreibung")
  129.     (set #CopyICONMsg "Arbeite am default project icon")
  130.     (set #ToolTypeMsg "Setze Icon-Attribute")
  131.     (set #AskRexxMsg "Sollen einige AREXX Beispiele installiert werden?")
  132.     (set #ExtractMsg "Bitte etwas Geduld\nextrahiere Dateien aus Archiv...")
  133.  
  134.  
  135. ))
  136. ;=============================================================================
  137. ; make sure we are running under a 3.0 OS
  138.  
  139. (if (< (/ (getversion) 65536) 39)
  140. (
  141.     (abort #bad-kick)
  142. ))
  143.  
  144. ;=============================================================================
  145.  
  146. (message #install-msg)
  147.  
  148. (set ProcVers (askchoice
  149.                         (prompt #Proc-msg)
  150.                         (help @askchoice-help)
  151.                         (choices "MC68020" "MC68000")
  152.               )
  153. )
  154.  
  155. (set WhichIcons (askchoice
  156.                         (prompt #Wicon-msg)
  157.                         (help @askchoice-help)
  158.                         (choices "Standard" "MagicWB-Style")
  159.                 )
  160. )
  161.  
  162.  
  163. (set @default-dest (askdir
  164.                        (prompt #AskDirMsg)
  165.                        (help @askdir-help)
  166.                        (default @default-dest)
  167.                    )
  168. )
  169. (complete 5)
  170.  
  171. (working #ExtractMsg)
  172. (run ("c/lhex -qw=T: x InstData.lha"))
  173.  
  174. (complete 10)
  175. ;====== copy english stuff ======
  176. (if (= default_lang 4)
  177. (
  178.     (copyfiles
  179.         (prompt "Copying guide file...")
  180.         (help @copyfiles-help)
  181.         (source "T:InstData/ImageDeskE.guide")
  182.         (dest @default-dest)
  183.         (newname "ImageDesk.guide")
  184.         (infos)
  185.         (confirm)
  186.     )
  187.  
  188.     (if (exists "T:InstData/OrderForm")
  189.     (
  190.         (copyfiles
  191.             (prompt "Copying OrderForm file...")
  192.             (help @copyfiles-help)
  193.             (source "T:InstData/OrderForm")
  194.             (dest @default-dest)
  195.             (newname "OrderForm")
  196.             (infos)
  197.             (confirm)
  198.         )
  199.     ))
  200. ))
  201.  
  202. ;====== copy German stuff ======
  203. (if (= default_lang 2)
  204. (
  205.     (copyfiles
  206.         (prompt "Kopiere guide Datei...")
  207.         (help @copyfiles-help)
  208.         (source "T:InstData/ImageDeskD.guide")
  209.         (dest @default-dest)
  210.         (newname "ImageDesk.guide")
  211.         (infos)
  212.         (confirm)
  213.     )
  214.  
  215.     (if (exists "T:InstData/Bestellformular")
  216.     (
  217.         (copyfiles
  218.             (prompt "Kopiere Bestellformular...")
  219.             (help @copyfiles-help)
  220.             (source "T:InstData/Bestellformular")
  221.             (dest @default-dest)
  222.             (newname "Bestellformular")
  223.             (infos)
  224.             (confirm)
  225.         )
  226.     ))
  227. ))
  228. (complete 30)
  229.  
  230. ;====== install 68020 version =====
  231. (if (= ProcVers 0)
  232. ;then
  233.     (copyfiles
  234.         (prompt #Copy020Msg)
  235.         (help @copyfiles-help)
  236.         (source "T:InstData/ImageDesk.020")
  237.         (dest @default-dest)
  238.         (newname "ImageDesk")
  239.         (infos)
  240.         (confirm)
  241.     )
  242. ;)
  243. ;====== install 68000 version =====
  244. ;else
  245.     (copyfiles
  246.         (prompt #Copy000Msg)
  247.         (help @copyfiles-help)
  248.         (source "T:InstData/ImageDesk.000")
  249.         (dest @default-dest)
  250.         (newname "ImageDesk")
  251.         (infos)
  252.         (confirm)
  253.     )
  254. )
  255. (complete 35)
  256.  
  257. ;====== install MIPFIC =====
  258. (if (askbool (prompt #MIPFIC-Msg) (choices #PosMsg #NegMsg) (help @askbool-help))
  259. (
  260.     (copyfiles
  261.             (prompt #CopyMIPFICMsg)
  262.             (help @copyfiles-help)
  263.             (source "T:InstData/MIPFIC")
  264.             (dest @default-dest)
  265.             (newname "MIPFIC")
  266.             (infos)
  267.             (confirm)
  268.     )
  269.     (copyfiles
  270.             (prompt #CopyMIPFICDocMsg)
  271.             (help @copyfiles-help)
  272.             (source "T:InstData/MIPFIC.doc")
  273.             (dest @default-dest)
  274.             (newname "MIPFIC.doc")
  275.             (infos)
  276.             (confirm)
  277.     )
  278.     (copylib
  279.             (prompt #CopyIFFLibMsg)
  280.             (help @copylib-help)
  281.             (source "T:InstData/libs/iff.library")
  282.             (dest "LIBS:")
  283.             (confirm)
  284.     )
  285. ))
  286. (complete 40)
  287.  
  288.  
  289. ;== install default project icon ==
  290. (if (= WhichIcons 0)
  291. ;then Standard Icons
  292.     (copyfiles
  293.         (prompt #CopyICONMsg)
  294.         (help @copyfiles-help)
  295.         (source "T:InstData/ID_DefProjIcon.info")
  296.         (dest @default-dest)
  297.         (newname "ID_DefProjIcon.info")
  298.         (confirm)
  299.     )
  300. ;else MagicWBIcons
  301.     (
  302.     (copyfiles
  303.         (prompt #CopyICONMsg)
  304.         (help @copyfiles-help)
  305.         (source "T:InstData/ID_DefProjIconMWB.info")
  306.         (dest @default-dest)
  307.         (newname "ID_DefProjIcon.info")
  308.         (confirm)
  309.     )
  310.     (copyfiles
  311.         (prompt #CopyICONMsg)
  312.         (help @copyfiles-help)
  313.         (source "T:InstData/ImageDeskMWB.info")
  314.         (dest @default-dest)
  315.         (newname "ImageDesk.info")
  316.         (confirm)
  317.     )
  318.     )
  319. )
  320. (tooltype
  321.     (prompt #ToolTypeMsg)
  322.     (help @tooltype-help)
  323.     (dest (tackon @default-dest "ID_DefProjIcon"))
  324.     (setdefaulttool (tackon @default-dest "ImageDesk"))
  325.     (confirm)
  326. )
  327. (complete 50)
  328.  
  329. ;====== install Catalog tools =====
  330. (copyfiles
  331.     (prompt #CopyComMsg)
  332.     (help @copyfiles-help)
  333.     (source "T:InstData/c/")
  334.     (dest #CDir)
  335.     (all)
  336.     (confirm 1)
  337. )
  338. (complete 70)
  339.  
  340. ;====== Copy example Catalogs =====
  341. (if (askbool (prompt #AskCatMsg) (choices #PosMsg #NegMsg) (help @askbool-help))
  342. (
  343.     (copyfiles
  344.         (prompt #CopyCatMsg)
  345.         (help @copyfiles-help)
  346.         (source "T:InstData/example/")
  347.         (dest (tackon @default-dest "example"))
  348.         (all)
  349.         (confirm 1)
  350.     )
  351. ))
  352. (complete 80)
  353.  
  354. ;====== Copy catalog description =====
  355. (if (askbool (prompt #AskCatDescMsg) (choices #PosMsg #NegMsg) (help @askbool-help))
  356. (
  357.     (copyfiles
  358.         (prompt #CopyCatDescMsg)
  359.         (help @copyfiles-help)
  360.         (source "T:InstData/CatDescription")
  361.         (dest @default-dest)
  362.         (newname "CatDescription")
  363.         (infos)
  364.         (confirm)
  365.     )
  366. ))
  367. (complete 85)
  368.  
  369. ;====== Copy rexx Scripts =====
  370. (if (askbool (prompt #AskRexxMsg) (choices #PosMsg #NegMsg) (help @askbool-help))
  371. (
  372.     (copyfiles
  373.         (prompt #CopyCatMsg)
  374.         (help @copyfiles-help)
  375.         (source "T:InstData/rexx/")
  376.         (dest (tackon @default-dest "rexx"))
  377.         (all)
  378.         (confirm 1)
  379.     )
  380. ))
  381. (complete 90)
  382.  
  383. ;====== install keyfile ========
  384. (if (= (run "GetEnv KEYPATH") 0)
  385. (
  386.  (set #KeyPath (getenv "KEYPATH"))
  387. )
  388. )
  389. (if (exists "s/ImageDesk.Key")
  390. (
  391.     (message #DontCopyMsg)
  392.     (copyfiles
  393.         (prompt #CopyKeyMsg)
  394.         (help @copyfiles-help)
  395.         (source "s/ImageDesk.Key")
  396.         (dest #KeyPath)
  397.         (newname "ImageDesk.Key")
  398.     )
  399. )
  400. )
  401. (run ("delete T:InstData ALL QUIET FORCE")
  402. )
  403. (message #exit-msg)
  404. (complete 100)
  405.