Quantcast
Channel: Flexera Community Forums
Viewing all articles
Browse latest Browse all 4553

Clicking Yes on CancelSetup dialog still proceeds to uninstall

$
0
0
I'm using an InstallShield Basic MSI Project and I am trying to cancel out of an uninstall, but the uninstall still proceeds until finished. A dialog (SetupProgress) shows the progress of the uninstall and upon clicking the Cancel button, it pops up a CancelSetup dialog that asks if I would like to cancel the uninstallation. When clicking "Yes" a property gets set and then the CancelSetup dialog exits and the uninstall still proceeds. I found that this issue occurs when Cancel is clicked shortly after the SetupProgress dialog is shown. If I wait a little bit and then click Cancel and "Yes", it actually cancels the uninstall.

This issue occurs only during a Change->Remove from Programs and Features. Clicking the Uninstall button from Programs and Features works fine. I believe this is due to the Uninstall button running in silent mode and uses different dialogs.

After looking at my install log I notice that there are errors showing up shortly after the "Yes" is clicked. It appears like "Yes" is being clicked during the ExecuteAction custom action. Then a little ways down in that custom action I get these lines:

Name:  Error 1168 Cancel Uninstall.JPG
Views: 6
Size:  64.8 KB

I've looked around for this error and haven't found much that would be useful for me. Below are some images of how the behavior looks for the SetupProgress and CancelSetup dialogs:

Name:  SetupProgressBehavior.JPG
Views: 5
Size:  38.2 KB

Name:  CancelSetupBehavior.JPG
Views: 5
Size:  24.1 KB

Is there any way I can get this cancel to not be ignored due to this error?
Attached Images
   

Viewing all articles
Browse latest Browse all 4553

Trending Articles