Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Disabling FilesInUse Dialog..

1,333 views
Skip to first unread message

Rajneesh

unread,
Sep 18, 2003, 2:02:09 PM9/18/03
to
Hi,
Is it possible to disable the FilesInUse Dialog? I don't mind the setup
prompting for a reboot in the End.

Thanks,
Rajneesh...


Michael Sanford [MVP]

unread,
Sep 18, 2003, 3:28:44 PM9/18/03
to
While you don't mind, I think the idea is that it is there for the benefit of
your users and not you. ;-)

If you really want to do this, it looks like simply ommiting the FilesInUse
dialog might do the trick. Be forewarned that it will at the very least create
validation warnings...

--
R. Michael Sanford
Windows Installer MVP
+++++++++++++++++++++++++++++++++++++++++++++++++++++

"Rajneesh" <rajnees...@hotmail.com> wrote in message
news:eYSCUGh...@tk2msftngp13.phx.gbl...

Rajneesh

unread,
Sep 18, 2003, 3:29:25 PM9/18/03
to
Thanks,
My problem is that the setup will be launched from within the same
application that the MSI is asking to close it. I cannot close the
application because i need to send some message to it after the setup
completes successfully.

I will try to remove the FilesInUse dialog and see if that gives any
problems.

Thanks,
Rajneesh...
"Michael Sanford [MVP]" <msan...@activeinstall.com> wrote in message
news:uRuxQphf...@TK2MSFTNGP12.phx.gbl...

Kallely Sajan

unread,
Sep 18, 2003, 3:45:59 PM9/18/03
to
I think it will give an error, as it is an expected standard dialog.
Moreover if you run the install in basic ui mode, the built-in dialog will
kick in.

But as per the documentation, you are not supposed to get that FileInUse
dialog when the process launching the install is holding the back the file.
The documetation says this -

If you expect the installer to display a FilesInUseDialog, but it does not,
this may be due to one of the following reasons:
a.. The files in use are not executables.
b.. The installer is not actually trying to install those files.
c.. The process holding those files is the process invoking the
installation.
d.. The process holding those files is one that does not have a window
with a title associated with it.
How are you launching the install? Instead of launching msiexec straight,
try calling MsiInstallProduct or MsiConfigureProduct.
--

Regards,
Sajan.

PS: Please don't send me direct emails, use the newsroom.

"Rajneesh" <rajnees...@hotmail.com> wrote in message

news:egmBtshf...@TK2MSFTNGP11.phx.gbl...

Rajneesh

unread,
Sep 18, 2003, 3:59:06 PM9/18/03
to
Thanks. You were right. I get the >> Internal Error 2803: FilesInUse >>.

For any of the MSI team members:- If there any other way disable this.

I will try to use the MSI Api Calls and see if this solves the problem.

Thanks,
Rajneesh...
"Kallely Sajan" <saj...@hotmail.com> wrote in message
news:OdW1j1h...@TK2MSFTNGP11.phx.gbl...

Rajneesh

unread,
Sep 18, 2003, 4:56:56 PM9/18/03
to
I tried the MSI APIs to install the product but they still show the
FilesInUse dialog. This because i running this from a different EXE file
that is invoked by the application that has files in use.

I also tried the options given in the the MSI help library section titled
"Handling Progress Messages Using MsiSetExternalUI". In this i could trap
the INSTALLMESSAGE_FILESINUSE and ignore it. This does not help me either
because i will need to run the setup in silent or basic UI mode. I need to
run this in FULL UI as i need some inputs from the user.

Any of the MSI team members:
Please let me know of a way to trick MSI to not display the FilesInUse
dialog when running in Full UI mode.

Any help will be deeply appreciated.

Rajneesh...


"Rajneesh" <rajnees...@hotmail.com> wrote in message

news:OmggHDif...@TK2MSFTNGP12.phx.gbl...

Kallely Sajan

unread,
Sep 18, 2003, 5:00:23 PM9/18/03
to
This is what I can think of. Run the install completly silent by calling
MsiSetInternalUI with a UI level of INSTALLUILEVEL_NONE. Now call
MsiInstallProduct or MsiConfigureProduct. These functions will give you a
return value as to what happened with the installation. For example, if a
reboot is required, they return ERROR_SUCCESS_REBOOT_REQUIRED
--

Regards,
Sajan.

PS: Please don't send me direct emails, use the newsroom.

"Rajneesh" <rajnees...@hotmail.com> wrote in message

news:OmggHDif...@TK2MSFTNGP12.phx.gbl...

Stefan Krueger [MVP]

unread,
Sep 18, 2003, 5:10:23 PM9/18/03
to
Try this: keep the dialog but remove the listbox control from it. The MSI
docs are not quite clear here, but I think this may work.

--
Stefan Krueger
Microsoft Windows Installer MVP

Please post your questions in the newsgroup or vist one of these web sites:

Windows Installer FAQ
http://www.msifaq.com - http://www.msifaq.de

InstallSite - Resources for Setup Developers
http://www.installsite.org
http://www.installsite.de (GERMAN)

"Rajneesh" <rajnees...@hotmail.com> schrieb im Newsbeitrag
news:OmggHDif...@TK2MSFTNGP12.phx.gbl...

Rajneesh

unread,
Sep 18, 2003, 5:23:15 PM9/18/03
to
Hi Stefan,
I tried it. MSI still goes ahead and displays the dialog with no listbox and
the three buttons Retry, Ignore & Exit.

If i remove the dialog altogether, MSI just throws an error diaog with
"Internal 2803: FilesInUse" error but goes ahead with the setup and does not
fail. I even tried to null the "ErrorDialog" property just before
InstallValidate and resetted it back to the SetupError dialog value hoping
that it will not display the error dialog. But then it still went ahead and
displayed it still.

Does the MSI team in this newsgroup have any answers?

Rajneesh...


"Stefan Krueger [MVP]" <nws...@installsite.net> wrote in message
news:OPl39lif...@TK2MSFTNGP09.phx.gbl...

Rajneesh

unread,
Sep 18, 2003, 5:53:38 PM9/18/03
to
Hi,

After struggling for about 3 hours, looks like I was finally able to figure
out how to trick MSI to NOT display the FilesInUse dialog.

All i did was set the Attribute property in the FilesInUse Dialog row in the
Dialog table to 0 (Zero).

This seems to have done the trick. At InstallValidate, MSI I believe tries
to load the dialog and since the msidbDialogAttributesVisible property is
not set, all i see is just a flash and the setup goes on. It does prompt for
a reboot in the end, which is even better.

Any MSI Team member:

I still need to know from the MSI team, if this solution will have any
repercussions. Is this the intended behavior and that it will not change in
future releases of MSI engine.

Thanks for all those who tired to help me with this.

Sincerely,

Rajneesh...


Kallely Sajan

unread,
Sep 18, 2003, 6:36:17 PM9/18/03
to
Good work around! But unfortunately, the documentation does not seem to list
0 as a valid attribute. As long as it is not documented, the behavior can be
changed. You might want to leave the attribute empty and try again.

If it is not very complicated, other suggestion I will make is to capture
the inputs from a non-install dialog, and launch the installation silently.
--

Regards,
Sajan.

PS: Please don't send me direct emails, use the newsroom.

"Rajneesh" <rajnees...@hotmail.com> wrote in message

news:#fIBS9if...@tk2msftngp13.phx.gbl...

Rajneesh

unread,
Sep 19, 2003, 12:09:10 PM9/19/03
to
Thanks Kallely.

I left the Attribute column empty and the behavior is the same as setting it
to 0. I agree leaving it empty is definitely better than setting it to 0, so
i will go with that.

I really cannot use an external UI to capture the information and then
launch the setup with /qb. It is just not feasible at this point.

Thanks for you help.

Rajneesh...

"Kallely Sajan" <saj...@hotmail.com> wrote in message

news:%23HoguUj...@tk2msftngp13.phx.gbl...

Naren

unread,
Sep 22, 2003, 2:10:01 PM9/22/03
to

They actually changed this behavior in MSI. Upto the msi 1.5 documentation
it used to say:

"If no dialog box named FilesInUse is found, or if the database has no
ListBox table, InstallValidate exits silently without an error."

So you could take out the dialog and get the behavior you wanted. But now it
reads:
"If there is no ListBox table in the database, InstallValidate exits
silently without an error."

The MSI team seems to have made this change for some reason. Or maybe that's
how it has always been, and they fixed the documentation to reflect reality.
In this case, I actually believe it is the former - I vaguely remember
playing with the FilesInUse dialog couple of years ago.

If you have no other ListBox controls, perhaps you can try dropping the
ListBox table and see if that works.

Naren

"Rajneesh" <rajnees...@hotmail.com> wrote in message

news:%23cZ7Tsi...@TK2MSFTNGP12.phx.gbl...

0 new messages