|
|
|
|
#1 |
|
Junior Member
Join Date: May 2007
Posts: 40
|
Inform user about application using dll
Hi All,
Is it possible in NSIS to infom user during installation or uninstallation what application is using dll which this installer want to update or remove? tnx, Roman |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Dec 2005
Location: Brisbane, Australia
Posts: 16
|
If you are trying to upgrade system DLLs you should use the InstallLib macro (B.2 Library Installation in the manual), which has REBOOT_PROTECTED and REBOOT_NOTPROTECTED methods. You don't have to worry about whether these files are in use as they will be updated on reboot if they are in use.
For your own files, you can use the FindProcDLL plug-in to check one at a time if any of your executables are in use and display a message if they are: code: |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: May 2007
Posts: 40
|
I'm using InstallLib macro for instalation of my dll files but I would like to avoid rebooting. My software doesn't need it.
I run InstallLib macro with NOTSHARED NOREBOOT_PROTECTED flags and when dll is used by another process message box appears saying some dll is busy. This is enough informaiton for me as for developer but I afraid common user won't understand it. I prefer to show message box like "Internet Explorer is using some components. Close this application to continue installation" I don't know for sure if IE the only application which could use my dll files so it's not so easy to use FindProcDll::FindProc function Any ideas how can I help end-user to understand what application is blocking installation? |
|
|
|
|
|
#4 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
I think the easiest solution is to ask the user to close all programs before continuing.
Stu |
|
|
|
|
|
#5 | |
|
Junior Member
Join Date: May 2007
Posts: 40
|
Quote:
Doesn't anybody has written such plugin yet? |
|
|
|
|
|
|
#6 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
There is WhoUses.exe but I do not think it will work on Windows 9x.
http://www.codeguru.com/cpp/w-p/syst...cle.php/c2827/ Stu |
|
|
|
|
|
#7 | |
|
Junior Member
Join Date: May 2007
Posts: 40
|
Quote:
Thank you for advise. |
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|