PDA

View Full Version : How can I set the exit code when aborting an installation?



jtdunn
01-09-2008, 05:15 PM
I want to set the exit code when the user aborts/interrupts the installation. I see that there is an Exit Installation control statement but I need to trigger this only when the user interrupts or aborts the installation. Is this possible to do?

linder
01-10-2008, 12:53 AM
Hello,

Good question. No, at the moment this is not possible. Only the "Exit Installation..." script function can set the exit code, but this does not help you if the user aborts/interrupts the installation. I'll give this some thoughts...

Thanks,
Friedrich

jtdunn
01-10-2008, 07:27 AM
Hi Friedrich,

I have thought of a work around in my own code for this that I am going to try today but it would be great if this option could be added. I am running an installation from my code and I want to check the runcode (dos errorlevel) to determine if the user cancelled the setup.

Thanks,

John

linder
01-10-2008, 07:49 AM
Hi John,

It makes complete sense! We'll add a function to the "Loop Wizard" to set the exit code if the user cancelled the setup (good idea, btw).

Thanks,
Friedrich

jtdunn
01-10-2008, 09:20 AM
Thank You!

John