Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide "Files In Use" dialog behaving as if ignore was chosen #8807

Open
charles-juicelabs opened this issue Oct 31, 2024 · 1 comment · May be fixed by wixtoolset/wix#573
Open

Hide "Files In Use" dialog behaving as if ignore was chosen #8807

charles-juicelabs opened this issue Oct 31, 2024 · 1 comment · May be fixed by wixtoolset/wix#573
Assignees
Labels
wip WiX Improvement Proposal WixStdBA

Comments

@charles-juicelabs
Copy link

charles-juicelabs commented Oct 31, 2024

User story

As a setup developer, I can author an installer for extension DLLs that avoids showing the "Files In Use" dialog, instead behaving as if the user had chosen ignore. This avoids an extra step in the install and users confused as to why seemingly unrelated applications need to be closed.

We develop an application with a DLL that is loaded into many processes, largely outside of our control. It is confusing for our users when they are prompted to close these seemingly unrelated applications when we update the DLL. Updating the DLL requires a reboot independently of any files being in use anyway, so hiding the "Files In Use" dialog is a nice solution for us.

There are other examples of people wanting to disable the "Files In Use" dialog:

Proposal

Add bal:DisplayFilesInUseDialogCondition, similar to bal::DisplayInternalUICondition, to be added to MsiPackage elements to control the display of "Files In Use" in WixStandardBoostrapperApplication.

For example:

<Bundle Name="...">
  <!-- ... -->
  <Chain>
    <MsiPackage 
      Id="..."
      SourceFile="..."
      bal:DisplayFilesInUseDialogCondition="no"
    />
  </Chain>
</Bundle>

Considerations

I haven't added any documentation but I'm happy to do so once you're happy with the general approach here.

I wasn't sure if bal:DisplayFilesInUseDialogCondition was appropriate for other elements beyond MsiPackage or if it needed to be recognized by other built-in bootstrappers. Happy to do some amount of work here if necessary to get this PR merged.

Thanks for all your work on WiX! WiX has worked very well building installers for our project -- being unable to hide the "Files In Use" dialog has been the only real problem we've had.

@barnson
Copy link
Member

barnson commented Nov 19, 2024

Makes sense. Should be supported on MsiPackage and MspPackage. The .NET Framework redistributable also triggers files-in-use messages but that's a different code path and can be ignored. We'll put your PR in the queue for review but note we're way behind atm so it'll be a bit...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wip WiX Improvement Proposal WixStdBA
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants