Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: (untagged)
I need to disable the "File in use modal" dialog while performing installation.
After searching the Internet I found a workaround by setting the attribute property we can achieve this.

Can someone guide me how to set the Attribute property in the FilesInUse Dialog row in the Dialog table to 0 (Zero)?
Posted
Updated 1-Feb-14 5:43am
v2
Comments
Sergey Alexandrovich Kryukov 1-Feb-14 19:41pm    
Not clear. You really need to provide more detail. I use WiX, but still cannot understand what you are trying to do. Perhaps I don't know the technique you are trying to use, but it only means that you should provide some relevant code sample.
—SA
Sriram Bala 3-Feb-14 6:03am    
Hello SA. Thanks for showing interest in my query Actually my requirement is similar to this question posted in this forum
<p>https://groups.google.com/forum/#!topic/microsoft.public.platformsdk.msi/1dYXJta4gOM</P>. Here Mr.Rajneesh suggested a workaround how to trick WIX to disable fileinuse window. I copied his suggested workaround here. Please have a look and let me know if it clear now.

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.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900