[wix-users] FilesInUse event

Roland K rolandkieslinger at gmail.com
Wed Oct 11 06:52:54 PDT 2017


I found the following lines in the log:

Aktion gestartet um 15:38:27: InstallValidate.
MSI (s) (DC:90) [15:38:27:724]: PROPERTY CHANGE: Deleting
MsiRestartManagerSessionKey property. Its current value is
'3c5e7e74b929e943bf1e2d63080c406c'.
...
MSI (s) (DC:90) [15:38:32:404]: RESTART MANAGER: Did detect that a critical
application holds file[s] in use, so a reboot will be necessary.
...
Aktion gestartet um 15:38:35: RemoveExistingProducts. *(old msi is getting
started - I'm doing MajorUpgrades with Schedule="afterInstallInitialize")*
*...*
Aktion gestartet um 15:38:36: InstallValidate.
MSI (s) (DC:48) [15:38:36:696]: PROPERTY CHANGE: Deleting
MsiRestartManagerSessionKey property. Its current value is
'f9337d59ae6e2247a247bae8eec8a76f'.
...
MSI (s) (DC:48) [15:38:38:347]: RESTART MANAGER: Did detect that a critical
application holds file[s] in use, so a reboot will be necessary.
...
MSI (s) (DC:48) [15:38:48:084]: PROPERTY CHANGE: Adding ReplacedInUseFiles
property. Its value is '1'.
MSI (s) (DC:48) [15:38:48:085]: PROPERTY CHANGE: Deleting UpdateStarted
property. Its current value is '1'.
Aktion beendet um 15:38:48: InstallFinalize. Rückgabewert 1.


As we see here, the installer detected the replaced files, shouldn't it
then raise the "FilesInUse" event in the parents bootstrapper?

2017-10-11 15:18 GMT+02:00 Roland K <rolandkieslinger at gmail.com>:

> I have a custom bootstrapper with a msi inside.
>
> If I wanna update an existing installation, but there's still an
> application open (or a file in use) which should be replaced, I wanna show
> a dialog, so the user can decide if he wants to retry, ignore or cancel it.
> Sometimes the "FilesInUse" event of BootstrapperApplication gets raised so
> I can show the dialog, but sometimes NOT.
>
> Why?
>
> What can be the reasons the event is not raised?
>
> Thanks in advance!
>


More information about the wix-users mailing list