Setup: Make use of the Restart Manager
Make use of the Windows Vista/7 Restart Manager.
This should make it possible to present to the user a list of programs/services that need to be shut down because of in use files, and then ask Windows to shut these down before installation and to restart them afterwards.
Available in the next version.
6 comments
-
epu
commented
Yay! Can't wait to try this. Thank you.
-
epu
commented
This example is in c#, but it's wrapping a cpp api, restartmanager.h is in the windows sdk directory.
http://msdn.microsoft.com/en-us/magazine/cc163450.aspx
This gets a list of processes needed for shutdown.
-
Sebastian Schuberth
commented
As I was not satisfied with the existing solutions like the one mentioned by Harald, I implemented my own solution for the msysGit [1] installer in pure Pascal Script [2]. For an example usage, see [3].
[1] http://code.google.com/p/msysgit/
[2] http://repo.or.cz/w/msysgit.git/blob_plain/HEAD:/share/WinGit/modules.inc.iss
[3] http://repo.or.cz/w/msysgit.git/blob_plain/HEAD:/share/WinGit/install.iss -
Harald Binkle
commented
have a look at this:
http://raz-soft.com/display-english-posts-only/files-in-use-extension-for-inno-setup/comment-page-1/
works great. The are more important requests which can't be solved by extentions. -
Anthony Daly
commented
I agree, I would love to see this feature in IS. Please implement it!
-
nschell
commented
When I see this feature in other installers, yeah its great. The user gets to see what has open handles/files which the installer thinks it will need, usually a browser or something. Would be nice to see this in IS.