;Installation script for Safe

(set VER "v14.4")

(set PAR1 "")
(set PAR2 "")
(set PAR3 "")

(set YEP "Yes")
(set NOP "No")
(set NEED "Safe needs OS2.0+ !\n")
(set WELC ("\n\n\n\nWelcome to Safe %s Installation Script.\n(c)1998-2000 by Zbigniew `Zeeball` Trzcionkowski\n\nThis script installs only Safe file\nand adds it to user-startup!" VER))
(set WHER "Please select a place where you want to install Safe.")
(set WHLP "Where do you want to have this!")
(set CPNG "Copying Safe into ")
(set ADDG "Adding Safe to \"S:User-Startup\".")
(set AHLP "To check the system on startup!")
(set QES1 "\n\n\nDo You want TCP Patch?")
(set Q1HE "To detect activity of trojans/viruses that opens remote shells in TCP: device.")
(set QES2 "\n\n\nDo You want Ram disk: renamer?")
(set QES3 "\n\n\nDo You want to skip PolishPower test on startup?")
(set Q2HE "Renaming Ram disk: to RAM: that helps with some programs.")
(set Q3HE "Saves 16/50 of second while booting by not testing for PolishPower virus in memory which always appears with delay...")
(set MESS "On important systems You are supposed to change by hand the name of Safe file to other name (especially without \"v\" and \"V\"). Have a nice day.")

(if (= @language "polski")
(
(set YEP "Tak")
(set NOP "Nie")
(set NEED "Safe potrzebuje OS2.0+ !\n")
(set WELC ("\n\n\n\nWitaj w skrypcie instalacyjnym programu Safe %s!\n(c)1998-2000 by Zbigniew `Zeeball` Trzcionkowski\n\nTen skrypt instaluje tylko plik Safe-a\ni dodaje go do user-startup!" VER))
(set WHER "Proszė wybraź miejsce, gdzie ma byź zainstalowany Safe.")
(set WHLP "Gdzie go chcesz mieź!")
(set CPNG "Kopiujė Safe-a do ")
(set ADDG "Dodajė Safe-a do \"S:User-Startup\".")
(set AHLP "Ūeby sprawdziź system na starcie!")
(set QES1 "\n\n\nCzy chcesz TCP Patch?")
(set Q1HE "Aby wykryź dziaīalnoōź wirusów/trojanów, które tworzā zdalne shelle w urzādzeniu TCP:")
(set QES2 "\n\n\nCzy chcesz Ram disk: renamer?")
(set QES3 "\n\n\nCzy chcesz pomijaź test na obecnoōź wirusa PolishPower w czasie bootowania?")
(set Q2HE "Zmiana nazwy Ram disk: na RAM:, co pomaga przy pracy z niektórymi programami.")
(set Q3HE "Zaoszczėdza 16/50 sekundy podczas bootowania dziėki rezygnacji z testu na wirusa PolishPower, który zawsze pojawia siė z opóśnieniem...")
(set MESS "W waūnych systemach sugerujė rėcznā zmianė nazwy pliku Safa na innā (szczególnie bez \"v\" and \"V\"). Miīego dnia.")
))

(if (= @language "espańol")
(
; Spanish strings 1.0 (16.9.00) by Dįmaso D. Estévez <amidde@arrakis.es>

(set YEP "Sķ")
(set NOP "No")
(set NEED "”`Safe' requiere S.O. versión 2.0 o superior!\n")
(set WELC ("\n\n\n\nBienvenido al guión instalador de `Safe' %s.\n(c)1998-2000 Zbigniew `Zeeball` Trzcionkowski\n\n”Este guión instalarį śnicamente el fichero `Safe' y\nharį que se ejecute desde su fichero `user-startup'!" VER))
(set WHER "Por favor, elija donde desea instalar el programa.")
(set WHLP "”El lugar donde debe estar!")
(set CPNG "Copiando `Safe' en ")
(set ADDG "Ańadiendo `Safe' al fichero \"S:User-Startup\".")
(set AHLP "”Para comprobar el sistema cada vez que arranque!")
(set QES1 "\n\n\næDesea activar el parche TCP?")
(set Q1HE "Le permite detectar la actividad de troyanos/virus que abren consolas remotas en el dispositivo `TCP:'")
(set QES2 "\n\n\næDesea renombrar `Ram disk:'?")
(set QES3 "\n\n\næDesea saltarse la comprobación del\nvirus PolishPower durante el arranque?")
(set Q2HE "Renombrar la unidad `Ram disk:' como `RAM:' puede ayudarle con algunos programas.")
(set Q3HE "Le permite ahorrar 16/50 de segundo durante el arranque al no verificarse la presencia del virus PolishPower en memoria, pues éste siempre aparece con retraso...")
(set MESS "En sistemas importantes, considere cambiar manualmente el nombre del fichero `Safe' por otro, y que no contenga, preferentemente los caracteres \"v\" y/o \"V\".  Que tenga un buen dķa.")
))


(set app-name "Safe %s" VER)

(if(<(/(getversion)65536)37)(abort NEED))

(complete 0)

(run "SAFE OWNOUT")
(run "QUICKTEST")

(complete 1)

(message (cat WELC))

(set dirk (askdir (prompt WHER) (help WHLP) (default "C:")))(set @default-dest dirk)

(copyfiles (prompt CPNG dirk) (source "safe") (dest dirk))

(complete 50)

(if(askbool(prompt QES1)(help Q1HE)(choices YEP NOP))(set PAR1 " TCPPATCH"))

(if(askbool(prompt QES2)(help Q2HE)(choices YEP NOP))(set PAR2 " RENRAM"))

(if(askbool(prompt QES3)(help Q3HE)(choices YEP NOP))(set PAR3 " NOPOLPOW"))

(startup "Safe" (prompt	ADDG) (help AHLP) (command ("%sSafe%s%s%s" dirk PAR1 PAR2 PAR3)))

(complete 100)

(exit MESS)
