View Full Version : Aborted installation hangs

01-20-2005, 04:02 AM

when I abort my installation via abort statement, the installation process hangs. I think the uninstall process doesn´t work correct.

Is there a way to abort an installation without starting the uninstall process?


01-20-2005, 10:00 AM
have you tried:


That might be what you're looking for.

01-20-2005, 10:01 AM
You might also see if just exit; does what you want.

01-20-2005, 10:53 AM
You may also want to make sure you do not have any SdShowMsg() windows displayed when you abort an installation, because that has caused aborted installations to hang for me. If you want to use abort, you may need to use an OnAbort() function as shown as an example below:

// FUNCTION: OnAbort
// EVENT: Abort event is sent at the end of installation that was aborted
function OnAbort()

// Close any SdShowMsg() windows that may be opened during the abort
// process. This is being done in case this install is upgraded to
// DevStudio 9.0, where a SdShowMsg() window that is open during the
// abort processing will cause the setup to hang. This issue was not
// a problem with InstallShield Professional 6.X or InstallShield
// Professional 7.X.
SdShowMsg("", FALSE);


01-20-2005, 11:33 AM
Thanks for all your replies.

The exit command has exact the same behavior in my Installation process (setup.exe remains in memory and never exits).

Last chance is the SdShowMessage ("") command in the OnAbort event. Maybe this helps.


05-11-2005, 07:11 AM
I had hung installation in Developer 8 because of SdShowMessage set to FALSE in OnEnd.

Same installation did not hang in IS 10.5.

01-23-2006, 06:26 AM
My installScript 7 project also hangs when I call the abort function. As Robert suggested, I tried using 'exit' and its working perfectly. But I cannot replace all 'abort' to 'exit', as the 'exit' statement leaves the partially installed product on the machine. Can you suggest me why the abort function is hanging?

The interesting thing here is that the setup hangs only on the Windows XP machines which has east asian languages installed.!!! :confused:

any thoughts???

I made it working now! But my question still remains. Why teh abort statement fails only when I add the language support to the machine...?

02-10-2006, 05:42 AM
How did you get it working?
I got the same problem, but adding SdShowMsg does not help for me :confused:

02-10-2006, 05:58 AM
I solved it by setting the sdShowMsg to FALSE.

SdShowMsg ("", FALSE);