The following applications should be closed prompt

Got a problem you cannot solve? Try here.
FrancescoT
Site Admin
Posts: 5360
Joined: Sun Aug 22, 2010 4:28 am

Re: The following applications should be closed prompt

Postby FrancescoT » Fri Mar 10, 2017 2:48 pm

Dear Sheri,

you are un-registering a dll which exposes a shell context menu, but I suppose that a system restart may be required to effectvely complete the un-registration.

I suspect that the calling process (Windows Explorer) is still using that dll ...also because "generally" it's not possible to detach a DLL from its parent process without terminating the process itself.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

Sheri_Steeves
Posts: 124
Joined: Mon Oct 22, 2012 2:14 pm

Re: The following applications should be closed prompt

Postby Sheri_Steeves » Mon Mar 13, 2017 8:37 am

Francesco,

After some investigating, as we both suspected, it is the DLL loaded by the Explorer.exe process that triggers the dialog.

My issue now is that we haven't been triggering the restart now/later option for these shell extensions (we've just been getting away with it) and the way my script is coded now with with X6 and the new Restart Manager we are suddenly seeing this issue.

This prompting to kill Windows Explorer is a complete showstopper for us.

We can't ship this install as it is now; the "in use" dialog basically lets the user click yes and completely tear down the entire Windows Explorer UI shell, leaving them with just a black screen with the install dialog. No menu, no taskbar, no desktop icons, nothing. Not to mention what this would do in a terminal services environment.

This behaviour seems fundamentally wrong to me and CANNOT happen on our client machines - as a developer I know tricks to restart Windows Explorer but I can't expect all of my clients to know this.

Any install that hooks anything into the Windows shell will now have this problem, and even if I wan't being responsible and "cleaning" up after my install, the dialog would still appear.

My question now is how do I update/remove this file as part of my upgrade/uninstall process? Is there a way to mark it as replace/remove after reboot?

Is there a way to make this file trigger an option to restart now/later?

Thanks,
Sheri

FrancescoT
Site Admin
Posts: 5360
Joined: Sun Aug 22, 2010 4:28 am

Re: The following applications should be closed prompt

Postby FrancescoT » Mon Mar 13, 2017 3:19 pm

Dear Sheri,

why don't you force a "Reboot and Resume" just after un-registering your DLL?

Doing in this way you should not have any problem.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

SteveDude
Posts: 253
Joined: Wed Apr 11, 2007 6:07 pm

Re: The following applications should be closed prompt

Postby SteveDude » Tue Apr 18, 2017 1:45 am

I do quite a few shell extensions and namespaces and although there are some ways around it, it is best that you restart explorer especially when doing an uninstall. There is no need for a full reboot.

There is an IA Plugin at the link below as well as C# source for something I use...

viewtopic.php?f=3&t=10646

FrancescoT
Site Admin
Posts: 5360
Joined: Sun Aug 22, 2010 4:28 am

Re: The following applications should be closed prompt

Postby FrancescoT » Tue Apr 18, 2017 1:09 pm

Thanks for sharing your findings!

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

Bjarne
Posts: 100
Joined: Mon Apr 07, 2008 2:38 am
Contact:

Re: The following applications should be closed prompt

Postby Bjarne » Thu Sep 21, 2017 6:20 am

this is the new Restart Manager support in the new InstallAware X6. Clicking No on the dialog shown would fall back to default InstallAware X5 and earlier behavior (which would actually require a reboot). Clicking Yes would attempt to prevent a reboot by using the Restart Manager.

Clicking Cancel would abort the installation.

Currently, it's not possible to make this behavior optional.


Please Installaware, my installer instructions tells the installer to install, start, stop and uninstall the service(s).
If I wanted the end-user involved in the service management I would have placed my own dialog there letting them do precise that.
This is a breaking change and not acceptable. Sure, you have posted up a work-around, and that's fine, but it's not a solution to the root problem.
You surely can't expect your customers to modify all their installer projects because you messed up?
Please remove the dialog asap.

Best Regards
/Bjarne

Bjarne
Posts: 100
Joined: Mon Apr 07, 2008 2:38 am
Contact:

Re: The following applications should be closed prompt

Postby Bjarne » Wed Oct 04, 2017 9:48 am

*bump* :roll:


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 50 guests