home *** CD-ROM | disk | FTP | other *** search
- .K ""
- echo "This script will install the following libraries, after first checking"
- echo "to see if you already have one installed:"
- echo ""
- echo " octaplayer.library (version 2.0)"
- echo " medplayer.library (version 2.0)"
- echo ""
- echo "If you have one installed, it will check the version number of the"
- echo "installed one and ask if you wish to update it."
- echo ""
-
- FailAt 20
-
- ask "Do you wish to continue with the installation? [y/n]"
- if not warn
- skip NoInstall
- endif
-
- if not exists libs:octaplayer.library
- echo "No existing octaplayer.library, installing version 2.0..."
- copy octaplayer.library libs:octaplayer.library
- else
- failat 20
- echo "Found " noline
- version octaplayer.library 2 0
- if warn
- ask "Do you wish to update libs:octaplayer.library to version 2.0? [y/n]"
- if warn
- echo "Updating libs:octaplayer.library..."
- protect libs:octaplayer.library rwed
- copy octaplayer.library libs:octaplayer.library
- else
- echo "libs:octaplayer.library unchanged."
- endif
- else
- echo "The current installed version is up to date."
- endif
- endif
-
- if not exists libs:medplayer.library
- echo "No existing medplayer.library, installing version 2.0..."
- copy medplayer.library libs:medplayer.library
- else
- failat 20
- echo "Found " noline
- version medplayer.library 2 0
- if warn
- ask "Do you wish to update libs:medplayer.library to version 2.0? [y/n]"
- if warn
- echo "Updating libs:medplayer.library..."
- protect libs:medplayer.library rwed
- copy medplayer.library libs:medplayer.library
- else
- echo "libs:medplayer.library unchanged."
- endif
- else
- echo "The current installed version is up to date."
- endif
- endif
-
- lab NoInstall
- echo "*nAll Done. Click close gadget to get rid of window."
- endcli > nil:
-