Loading
Uninstall Hangs
Project Type: Install Script

 

When I click the cancel button during the Installation Dialogue (or move data event):

 

1. I am prompted with "Are you sure want to exit?".

 

2. After clicking yes

 

3. The UninstallingFile and UninstalledFile events are called.

 

4. The Finish Dialogue is displayed

 

However the process hangs. The Finish Dialogue does not go away. I am forced to manually kill the setup.exe process.

 

What can I do to debug or resolve this issue?

  • I found what caused the issue. I was deploying a feature which contained a .msm package for SQLSMO deployment. If the user cancled the install during the installation phase of the setup, the uninstall could not procress the SQLSMO .msm package. I simply removed the .msm and its feature replacing it with a call to an .msi file to install SQLSMO.

Loading
Uninstall Hangs