(
(set reinstalacja
(askchoice
(prompt "")
(help "\nType Installation only when you install this software first time on this HDD or you reinstall from version older than 2.1")
(choices "Installation" "Reinstallation")
(default 0)
)
)
(if reinstalacja
(set wybor 0)
(set wybor 
 (askbool
  (prompt "\n\n\n\nCan I change your s:startup-sequence")

  (help "\nIf you will agree to change your s:startup-sequence the installer will add after setpatch five lines:\n\n C:CheckLMB\n IF WARN\n SYS:Prefs/ATA3Prefs\n ENDIF\n C:ATA3.driver QUIET")
  (choices 
   "Yes" 
   "No" 
  )
  (default 1)
  )
 )
)

(copyfiles
   (source "ATA3prefs")
   (dest "SYS:Prefs")
)
(copyfiles
   (source "CheckLMB")
   (dest "C:")
)
(copyfiles
   (source "ATA3.driver")
   (dest "C:")
)

(if wybor
   (
      (copyfiles
        (source "S:startup-sequence")
        (dest "RAM:")
      )
      (textfile
        (dest "S:startup-sequence")
        (append "C:SetPatch QUIET\nC:CheckLMB\nIF WARN\n")
        (append "SYS:Prefs/ATA3Prefs\nENDIF\nC:ATA3.driver QUIET\n")
        (include "RAM:startup-sequence")
      )
      (delete "RAM:startup-sequence")
     (exit "\n\n\n\nATA3 driver was succesfull installed.\n\n Now You must reboot your machine." (quiet))
    )
   (exit "\n\n\n\nATA3 driver was succesfull installed." (quiet))
)


)
