home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / nieuûytki / pw_icon95 / install.script < prev    next >
Text File  |  1977-12-31  |  7KB  |  204 lines

  1.  
  2. ;***********
  3. ;*         *
  4. ;* STRINGS *
  5. ;*         *
  6. ;***********
  7.  
  8. (set #LANG_FOUND 0)
  9.  
  10. (if (= "deutsch" @language)
  11.        (
  12.     (set #MSG_WELCOME "Willkommen beim Installations-Skript für \"Win95_IconRenderer\".\n\nWenn die Version Ihres Installers kleiner als 42 ist, könnte es unter Umständen Probleme bei der Installation geben!!")
  13.     (set #MSG_SELECTPATH "Wo befindet sich das PowerWindows Verzeichnis?")
  14.     (set #MSG_SELECTDOCPATH "In welches Verzeichnis soll Dokumentation/Preview-Bild kopiert werden?\nTip: Sie könnten in \"PowerWindows/ExtRoutines\" eine neue Schublade anlegen (zum Beispiel.: \"Docs\")")
  15.  
  16.     (set #MSG_NOTPW "Dies scheint nicht das richtige Verzeichnis zu sein!\nSie müssen entweder das PowerWindows Verzeichnis selbst, oder dessen Mutterverzeichnis auswählen!")
  17.  
  18.     (set #MSG_ASK "Welche Dateien sollen zusätzlich zum IconRenderer installiert werden?")
  19.     (set #MSG_OPT1 "\x1B[2pDokumentation im Amigaguide Format")
  20.     (set #MSG_OPT2 "Preview-Bild (beschreibt auch die Konfiguration des IconRenderers)")
  21.  
  22.     (set #MSG_COPY_IR "Kopiere \"Win95_IconRenderer\"")
  23.     (set #MSG_COPY_DOC "Kopiere Dokumentation im Amigaguide-Format")
  24.     (set #MSG_COPY_PR "Kopiere Preview-Bild")
  25.  
  26.     (set #MSG_NOHELP "Keine Hilfe verfügbar. Sorry. Ich bin einfach zu faul :-(")
  27.     (set #MSG_DONE "Der neue IconRenderer ist nun installiert. Sie können ihn durch Ändern der PowerWindows Einstellungen aktivieren. In \"PW_Icon95.guide\" steht, wie man das macht und wie der IconRenderer konfiguriert wird.\n\n")
  28.     (set #MSG_DONE2 "Viel Spaß und vergessen Sie nicht, daß PowerWindows Shareware ist $-)")
  29.  
  30.     (set #LANG_FOUND 1)
  31.        )
  32. )
  33.  
  34. (if (= "italiano" @language)
  35.        (
  36.     (set #MSG_WELCOME "Benvenuto nel script di installazione per \"Win95_IconRenderer\".\n\nSe la versione del tuo Installer è inferiore di 42, potrebbero verificarsi dei problemi durante l'installazione!!")
  37.     (set #MSG_SELECTPATH "Dove si trova il directory di PowerWindows?")
  38.     (set #MSG_SELECTDOCPATH "In che directory devo installare documentazione/immagine di preview?\nTip: Potresti creare un cassetto nuovo (per esempio \"Docs\") in \"PowerWindows/ExtRoutines\"")
  39.     
  40.     (set #MSG_NOTPW "Questo non sembra essere il directory giusto!\nSi deve scegliere o il PowerWindows directory stesso, o il suo directory precedente (madre)!")
  41.  
  42.     (set #MSG_ASK "Quali file aggiuntivi devo installare?")
  43.     (set #MSG_OPT1 "\x1B[2pDocumentazione in formato amigaguide")
  44.     (set #MSG_OPT2 "Immagine di preview (che descrive anche la configurazione dell'IconRenderer)")
  45.     
  46.     (set #MSG_COPY_IR "Copio \"Win95_IconRenderer\"")
  47.     (set #MSG_COPY_DOC "Copio documentazione in formato amigaguide")
  48.     (set #MSG_COPY_PR "Copio immagine di preview")
  49.  
  50.     (set #MSG_NOHELP "Nessun aiuto disponibile. Sorry. Sono troppo pigro :-(")
  51.     (set #MSG_DONE "L'installazione dell'IconRenderer nuovo è finita. Lo si attiva cambiando le preferenze di PowerWindows.  In \"PW_Icon95.guide\" c'è scritto come fare, in più viene spiegato come configurare l'IconRenderer.\n\n")
  52.     (set #MSG_DONE2 "Buon divertimento e non dimenticare che PowerWindows è Shareware $-)")
  53.  
  54.         (set #LANG_FOUND 1)
  55.        )
  56. )
  57.  
  58. (if (= 0 #LANG_FOUND)
  59.        (
  60.     (set #MSG_WELCOME "Welcome to the installation script for \"Win95_IconRenderer\".\n\nIf the version of your Installer is lower than 42 then there might be problems during installation!!")
  61.     (set #MSG_SELECTPATH "Where is your PowerWindows directory?")
  62.     (set #MSG_SELECTDOCPATH "Where do you want the documentation/preview image to be installed?\nTip: You could create a new drawer (e.g. \"Docs\") in \"PowerWindows/ExtRoutines\"")
  63.  
  64.     (set #MSG_NOTPW "This does not seem to be the correct directory!\nEither select the PowerWindows directory itself or it's parent directory!")
  65.  
  66.     (set #MSG_ASK "What additional files shall be installed?")
  67.     (set #MSG_OPT1 "\x1B[2pDocumentation in amigaguide format")
  68.     (set #MSG_OPT2 "Preview image (explaining also how to configure the IconRenderer)")
  69.  
  70.     (set #MSG_COPY_IR "Copying \"Win95_IconRenderer\"")
  71.     (set #MSG_COPY_DOC "Copying documentation in amigaguide format")
  72.     (set #MSG_COPY_PR "Copying preview image")
  73.     
  74.     (set #MSG_NOHELP "No help available. Sorry. I'm just too lazy :-(")
  75.     (set #MSG_DONE "The new IconRenderer is now installed. It can be activated by changing the PowerWindows settings. In \"PW_Icon95.guide\" you can see how to do that and how to configure the IconRenderer.\n\n")
  76.     (set #MSG_DONE2 "Have a lot of fun and don't forget that PowerWindows is Shareware $-)")
  77.  
  78.        )
  79. )
  80.  
  81. ;==========================================================================
  82.  
  83.  
  84. ;********
  85. ;*      *
  86. ;* MAIN *
  87. ;*      *
  88. ;********
  89.  
  90. (welcome #MSG_WELCOME)
  91.  
  92. ;************************
  93. ;*                      *
  94. ;* ASK ADDITIONAL FILES *
  95. ;*                      *
  96. ;************************
  97.  
  98. (set #optres
  99.     (askoptions
  100.         (prompt #MSG_ASK)
  101.         (help #MSG_NOHELP)
  102.         (choices #MSG_OPT1 #MSG_OPT2)
  103.     )
  104. )
  105.  
  106. ;*********************************
  107. ;*                               *
  108. ;* SELECT POWERWINDOWS DIRECTORY *
  109. ;*                               *
  110. ;*********************************
  111.  
  112. (set #PW_FOUND 0)
  113. (set #Destination @default-dest)
  114.  
  115. (while (= #PW_FOUND 0)
  116.     (
  117.         (set #Destination
  118.             (Expandpath
  119.                 (askdir (prompt #MSG_SelectPath)
  120.                     (default #Destination)
  121.                     (help #MSG_NOHELP)
  122.                 )
  123.             )
  124.         )
  125.  
  126.         (if (= 2 (exists (tackon #Destination "PowerWindows")))
  127.             (set #Destination (tackon #Destination "PowerWindows"))
  128.         )
  129.  
  130.         (set #a (exists (tackon #Destination "ExtRoutines")))
  131.  
  132.         (if (= 2 #a)
  133.             (set #PW_FOUND 1)
  134.             (
  135.                 (message #MSG_NOTPW)
  136.             )
  137.         )
  138.     )
  139. )
  140.  
  141. ;******************
  142. ;*                *
  143. ;* SELECT DOC DIR *
  144. ;*                *
  145. ;******************
  146.  
  147. (if (<> 0 #optres)
  148.     (
  149.         (set #docdest
  150.             (Expandpath
  151.                 (askdir (prompt #MSG_SELECTDOCPATH)
  152.                     (default (tackon #Destination "ExtRoutines"))
  153.                     (help #MSG_NOHELP)
  154.                 )
  155.             )
  156.         )
  157.     )
  158. )
  159.  
  160. ;**************
  161. ;*            *
  162. ;* COPY FILES *
  163. ;*            *
  164. ;**************
  165.  
  166. (copyfiles (prompt #MSG_COPY_IR)
  167.        (source "Win95_IconRenderer")
  168.        (dest (tackon #Destination "ExtRoutines"))
  169.        (confirm)
  170.        (help #MSG_NOHELP)
  171. )
  172.  
  173. ( if (= 1 (BITAND 1 #optres))
  174.     (copyfiles (prompt #MSG_COPY_DOC)
  175.            (source "")
  176.            (choices "PW_Icon95.guide" "PW_Icon95.guide.info")
  177.            (dest #docdest)
  178.            (confirm)
  179.            (help #MSG_NOHELP)
  180.     )
  181. )
  182.         
  183. (if (= 2 (BITAND 2 #optres))
  184.     (copyfiles (prompt #MSG_COPY_PR)
  185.             (source "")
  186.             (choices "IconLook" "IconLook.info" "IconLook.gif")
  187.             (dest #docdest)
  188.             (confirm)
  189.             (help #MSG_NOHELP)
  190.     )
  191. )
  192.  
  193.  
  194.  
  195. ;***********
  196. ;*         *
  197. ;* THE END *
  198. ;*         *
  199. ;***********
  200.  
  201. (exit #MSG_DONE #MSG_DONE2
  202.     (quiet)
  203. )
  204.