(complete 0)

(set destdir
    (askdir
        (prompt "Where do you want to install IntuiCookie?  No new drawer will be created.")
        (help @askdir-help)
        (default "SYS:WBStartup")
    )
)

(complete 10)

(copyfiles
    (prompt "Copying IntuiCookie to " destdir)
    (help @copyfiles-help)
    (source "")
    (dest destdir)
    (pattern "IntuiCookie")
    (infos)
    (files)
)

(complete 30)

(set destcookiedir
    (askdir
        (prompt "Where do you want to install the data drawer?  I suggest you create a drawer (example: <IntuiCookie>) on your HD first.")
        (help "This drawer holds the cookie and hash files")
        (default "Work:IntuiCookie")
    )
)

(complete 40)

(copyfiles
    (prompt "Copying datafiles to " destcookiedir)
    (help @copyfiles-help)
    (source "")
    (dest destcookiedir)
    (pattern "data")
    (infos)
)

(complete 60)

(tooltype
    (prompt "Setting tooltypes")
    (help "This will set the COOKIEFILE and HASHFILE tooltypes, which tell IntuiCookie where to find its data files.")
    (dest (tackon destdir "IntuiCookie"))
    (settooltype "COOKIEFILE" (tackon destcookiedir "data/cookies"))
    (confirm)
)

(complete 70)

(tooltype
    (prompt "")
    (dest (tackon destdir "IntuiCookie"))
    (settooltype "HASHFILE" (tackon destcookiedir "data/cookies.hash"))
)

(complete 80)

(copyfiles
    (prompt "Select the catalogs you want to copy to LOCALE:Catalogs.")
    (help "Installing a catalog for your language will allow you to use IntuiCookie in that language")
    (source "Catalogs")
    (dest "Locale:Catalogs/")
    (pattern "~(#?.info)")
    (confirm)
)

(complete 90)

(copyfiles
    (prompt "Copying CD files to " destcookiedir)
    (help @copyfiles-help)
    (source "")
    (dest destcookiedir)
    (pattern "CD files")
    (infos)
)

(complete 100)
