.key ""
.bra {
.ket }
failat 21

assign >NIL: remove IAT$process:
assign >NIL: IAT$process: exists
if not warn
  echo "*nFatal: assign *"IAT$process*" exists!*n"
  quit 20
endif  

if not exists Angie
  skip notfound
endif
if not exists Angie.info
  skip notfound
endif
if not exists catalogs/deutsch/angie.catalog
  skip notfound
endif
if not exists catalogs.info
  skip notfound
endif
if not exists SetActiveWin
  skip notfound
endif
if not exists MagicPubName
  skip notfound
endif
if not exists RawInsert
  skip notfound
endif

skip found

lab notfound
  echo "*nYou have to cd to this script's directory first!*n*nSie mssen zuerst das aktuelle Verzeichnis auf das Verzeichnis*nsetzen, in dem sich dieses Skript befindet!*n"
  quit 20

lab found

assign IAT$process: ""

cd t:


version >nil: SYS:WBStartup/Angie
if not warn
  echo "*nYou have installed the following version of Angie:*nSie haben folgende Version von Angie installiert:*n`version SYS:WBStartup/Angie full` "
else
  echo "*nYou haven't installed Angie yet.*nSie haben Angie bisher nicht installiert."
endif
ask "*nDo you want to install the following version of Angie:*nWollen Sie folgende Version von Angie installieren:*n`version IAT$process:Angie full`  (Y/N)?"
if warn
  if not exists SYS:WBStartup
    makedir SYS:WBStartup
    if not error
      if not exists SYS:WBStartup.info
        copy IAT$process:catalogs.info SYS:WBStartup.info
      endif  
    endif
  endif  
  if exists SYS:WBStartup
    copy clone IAT$process:(Angie) SYS:WBStartup
    if not exists SYS:WBStartup/Angie.info
      copy clone IAT$process:(Angie.info) SYS:WBStartup
    else  
      ask "*nDo you want to replace your old Angie configuration by the supplied new one?*nWollen Sie Ihre alte Angie-Konfiguration durch die beigefgte neue ersetzen?*n(Y/N)?"
      if warn
        copy clone IAT$process:(Angie.info) SYS:WBStartup
      endif  
    endif
  else  
    echo "*nAngie couldn't be installed.*nAngie konnte nicht installiert werden."    
  endif
endif

assign >NIL: LOCALE: exists
if not warn
  version >nil: LOCALE:catalogs/deutsch/angie.catalog
  if not warn
    echo "*n*nYou have installed the following version of the German angie.catalog:*nSie haben folgende Version des deutschsprachigen angie.catalog installiert:*n`version LOCALE:catalogs/deutsch/angie.catalog full` "
  else
    echo "*n*nYou haven't installed any German angie.catalog yet.*nSie haben bisher keinen deutschsprachigen angie.catalog installiert."
  endif
  ask "*nDo you want to install the following version of the German angie.catalog:*nWollen Sie folgende Version des deutschsprachigen angie.catalog installieren:*n`version IAT$process:catalogs/deutsch/angie.catalog full`  (Y/N)?"
  if warn
    if not exists LOCALE:catalogs
      makedir LOCALE:catalogs
    endif  
    if not exists LOCALE:catalogs/deutsch
      makedir LOCALE:catalogs/deutsch
    endif
    if exists LOCALE:catalogs/deutsch
      copy clone IAT$process:catalogs/deutsch/(angie.catalog) LOCALE:catalogs/deutsch
    else  
      echo "*nThe catalog couldn't be installed.*nDer Katalog konnte nicht installiert werden."
    endif  
  endif
endif

version >nil: C:SetActiveWin
if not warn
  echo "*nYou have installed the following version of SetActiveWin:*nSie haben folgende Version von SetActiveWin installiert:*n`version C:SetActiveWin full` "
else
  echo "*nYou haven't installed SetActiveWin yet.*nSie haben SetActiveWin bisher nicht installiert."
endif
ask "*nDo you want to install the following version of SetActiveWin:*nWollen Sie folgende Version von SetActiveWin installieren:*n`version IAT$process:SetActiveWin full`  (Y/N)?"
if warn
  copy clone IAT$process:(SetActiveWin) C:
endif

version >nil: C:MagicPubName
if not warn
  echo "*nYou have installed the following version of MagicPubName:*nSie haben folgende Version von MagicPubName installiert:*n`version C:MagicPubName full` "
else
  echo "*nYou haven't installed MagicPubName yet.*nSie haben MagicPubName bisher nicht installiert."
endif
ask "*nDo you want to install the following version of MagicPubName:*nWollen Sie folgende Version von MagicPubName installieren:*n`version IAT$process:MagicPubName full`  (Y/N)?"
if warn
  copy clone IAT$process:(MagicPubName) C:
endif

version >nil: C:RawInsert
if not warn
  echo "*nYou have installed the following version of RawInsert:*nSie haben folgende Version von RawInsert installiert:*n`version C:RawInsert full` "
else
  echo "*nYou haven't installed RawInsert yet.*nSie haben RawInsert bisher nicht installiert."
endif
ask "*nDo you want to install the following version of RawInsert:*nWollen Sie folgende Version von RawInsert installieren:*n`version IAT$process:RawInsert full`  (Y/N)?"
if warn
  copy clone IAT$process:(RawInsert) C:
endif

cd IAT$process:

assign remove IAT$process:

echo "*nFertig - Finished."


