crandom
Posts: 13
Joined: Thu Sep 29, 2011 7:18 pm

SelfUnregModules not working

I have a self-registered DLL, and it registers fine, but it's not getting called at all during uninstall. I've attached the uninstall log; the SelfUnregModules action appears to be performed, but no DLL's mentioned. In the install log, the self-registering DLL is mentioned explicitly in the SelfRegModules step.
Attachments
uninstall.log
(181.57 KiB) Downloaded 382 times
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: SelfUnregModules not working

Hi,

Can you please send us the .AIP (project) file you are using to support at advancedinstaller dot com so we can investigate it?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
crandom
Posts: 13
Joined: Thu Sep 29, 2011 7:18 pm

Re: SelfUnregModules not working

Sent.
Bogdan
Posts: 2791
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: SelfUnregModules not working

The Dll's component seems to be shared by other products on the machine. Is this a clean machine? The sharing process is indicated in the log by the attribute "PreviouslyPinned=1". This means Windows Installer will skip the removal for the resources having this attribute.

Can you please test the package on clean machines?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
crandom
Posts: 13
Joined: Thu Sep 29, 2011 7:18 pm

Re: SelfUnregModules not working

Alright, I finally had some time to look into this. Sorry about the delay. The problem seems to be that the component installs with a refcount of 2\:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\SharedDLLs
C:\Windows\system32\BmaPst32.dll
2

Uninstalling knocks it down to 1. I deleted all other references to the DLL before installing, so it was clean. Any idea as to why it would start at 2? Nothing else in the solution references it as far as I can tell.
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: SelfUnregModules not working

Hello,

I'm not sure why you are encountering this behavior. Can you test your scenario on a clean machine? Maybe you forgot some references to the DLL when you manually clean the others references?

If on a clean machine the problem still persists or you do not have a clean machine, can you please send us a download link of your package application to support at advancedinstaller dot com so we can investigate?

Regards,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
crandom
Posts: 13
Joined: Thu Sep 29, 2011 7:18 pm

Re: SelfUnregModules not working

There may well be things left behind that I didn't find that were still referencing the DLL. I'm going to have to admit defeat on this one-- the CA to manually unregister it works, this is the only product that uses the component, and the component must be unregistered at uninstall time, so I'm just going to leave it in there. Thanks for your time in looking at this.

Return to “Common Problems”