Hi All.

I use Kix scripts to push out software, using SCCM. These scripts are perfect, because we can run them on any PC as long as we link to the correct files. Currently, most of our installs are something along the lines of...
1. message box saying "this is going to be installed. Do you want it? Click Yes or No."
2. script jumps to section relevant to their choice.
3. script either exits, or runs the install.

Now I want to use a script like this in a different way. It's being run before an install, but the script itself can't point at the install (different installation process). This means I essentially need it to give an error code at a certain point in the script, so the installation fails when someone clicks No. The reason being that if the script ends, for whatever reason, it'll jump to the next bit, which is an installation.

Does anyone know how I can force a script to give me an error code? Even if it's something as simple as a piece of code that makes no sense, and will fail with an error code... The code itself doesn't need to be something specific, as long as the system will read it as "Fail."

Thanks,

Andy.