; Install Image Engineer 3.4 part 2
; © 1995-1997 Simon Edwards
; This script installs the second archive of Image Engineer 3.4.

(transcript "Installing Image Engineer part 2...")

(set #intromsg (cat "\nThis installs the second part of Image "
            "Engineer V3.4 on your hard disk."))

(message #intromsg)

(set defaultdest @default-dest)

    ;Check for a previous installation.
(if (= (exists "IE:" (noreq)) 0)
    (
    (message (cat
        "The first part of Image Engineer V3.4 does not seem "
        "to be installed.  Please make sure that you have "
        "installed the first part (ImEngV3.4p1.lha) before "
        "trying to install this part.")
    )

    (exit)

    )

    ;else
    (if (= (= (fileonly (expandpath "IE:") ) "ImageEngineerV3.4") 0)
        (
        (message (cat
            "You seem to have an older version of Image Engineer "
            "installed and part 1 of 3.4 hasn't been installed. "
            "Please make sure that you have installed the first "
            "part (ImEngV3.4p1.lha) before trying to install "
            "this part."))
        (exit)
        )
    )
)

(working "Installing Image Engineer part 2...")
    ;Copy all of the files over to the destination
(copyfiles
    (prompt "")
    (help @copyfiles-help)
    (pattern "~(Install_Part_2|Install_Part_2.info)")
    (infos)
    (source (pathonly @icon))
    (dest "IE:")
)

(exit (cat
    "Image Engineer V3.4 has now been fully installed and "
    "is ready to run."))

