**** UPDATED: attached incorrect AI project file, should be "Test Application 2.aip" ****
One of our server products crashes most of the time during uninstall if our MMC SnapIn is in use during the uninstall after trying to automatically close the application.
I’ve been able to repro the issue using the simple Hello World mmc snap-in (MS sample code) at:
https://msdn.microsoft.com/en-us/librar ... 85%29.aspx
This has been built using VS2010 SP1 as Intel x64, .NET 4.
I’ve created a simple AI (v12.3.1) installation package to install and register the sample snap-in – it uses a .NET Installer Class custom action to register / unregister the snap-in.
Install package on Windows 2012R2 server (no Windows updates) – this has only .NET4 installed, no other versions.
Run “mmc”.
Add the snap-in: File | Add/Remove Snap-in | - Simple SnapIn Sample | Add, then press OK.
Leave the mmc console with the sample snapin running.
Now uninstall the “Test Application” package.
The installer displays a dialog stating “The following application should be closed before continuing the install: Microsoft Management Console”.
Ensure the default choice “Automatically close applications…” is selected.
Press OK.
Now get 2x crash dialogs: “MMC has stopped working” dialog, problem details: APPCRASH, mmc.exe. DUser.dll
The Windows Event log records the following, in order:
1) .NET runtime:
Application: mmc.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: exception code c0000005, exception address 00007FF8FE4A1112
Stack:
2) Application Error:
Faulting application name: mmc.exe, version: 6.3.9600.16384, time stamp: 0x5215ef8f
Faulting module name: DUser.dll, version: 6.3.9600.16384, time stamp: 0x5215daf7
Exception code: 0xc0000005
Fault offset: 0x0000000000001112
Faulting process id: 0x32ec
Faulting application start time: 0x01d18044fcfdd8ee
Faulting application path: C:\Windows\System32\mmc.exe
Faulting module path: C:\Windows\System32\DUser.dll
Report Id: 43acbd87-ec38-11e5-80bf-00155d013578
Faulting package full name:
Faulting package-relative application ID:
3) Application Error:
Faulting application name: mmc.exe, version: 6.3.9600.16384, time stamp: 0x5215ef8f
Faulting module name: DUser.dll, version: 6.3.9600.16384, time stamp: 0x5215daf7
Exception code: 0xc000041d
Fault offset: 0x0000000000001112
Faulting process id: 0x32ec
Faulting application start time: 0x01d18044fcfdd8ee
Faulting application path: C:\Windows\System32\mmc.exe
Faulting module path: C:\Windows\System32\DUser.dll
Report Id: 45693b5b-ec38-11e5-80bf-00155d013578
Faulting package full name:
Faulting package-relative application ID:
FOLLOW US
Get the latest news in Application Packaging