[wix-users] Missing file not installed on Repair

Todd Hoatson todd.hoatson at gmail.com
Wed Mar 17 08:50:12 PDT 2021

Hi all, I really appreciate all the help recently with the non-versioned
file issues.  Now I have a new, related problem:

I delete an installed file from my system, then I run Repair from the
Windows  Apps and Features tool, but the missing file is not replaced.

The file is harvested by heat, and the generated code for it looks like

    <Directory Id="_Resources" Name="_Resources">
        <Component Id="BYZ.p8z"
Guid="{30456CB8-DDF6-46B1-827B-2F7F67630929}" Permanent="yes">
            <File Id="BYZ.p8z" KeyPath="yes"
Source="$(var.PTPROJECTSDIR)\_Resources\BYZ.p8z" />

>From the discussion in the other related thread, I know we need to do
something different for non-versioned files like this.  But in
the meantime, I don't understand why the file would not be installed during
Repair when it is completely missing.

And to make things a bit more complicated...

This problem doesn't happen after I run our base installer, delete the file
and then do Repair.  It only happens when the base installer has been
*patched*, then I delete the file and do Repair.

Why would there be a difference between running a repair after a patch,
vs.  running a repair after a base install?

And shouldn't a missing file always be replaced during Repair, either way?
What could cause Repair to leave it uninstalled?

Thanks in advance for any help!

Todd Hoatson
Mobile: 763-291-3312
Email:   todd.hoatson at gmail.com

More information about the wix-users mailing list