Hi,

I have written a simple WIX code to do a major upgrade. I have used 'After 
InstallFinalize' action to remove the products. This ensures that the 
unmodified files are not re-installed (uninstalled and then installed again). 
Only the files which have been changed gets updated. The newly added files are 
also installed correctly. This works as expected. But I am facing issue with 
deleting files.

In WIX, I can have multiple files inside a component (as shown below).

<Directory Id="INSTALLDIR" Name="Wix_Upgrade">
            <Component Id='My' Guid='CFD119E9-E3B2-4228-B37A-53D8A3E4C2E5'>
              <File Id='My1' Name='My1.txt'  Source='cf1.txt' />
              <File Id='My2' Name='My2.txt'  Source='cf2.txt' />
              <File Id='My3' Name='My3.txt'  Source='cf3.txt' />
            </Component>
      </Directory>

If I delete one file inside a component, it doesn't get deleted during 
installation (un expected behavior).
If I delete the whole component, all the files inside it gets deleted.

So in order to be able to delete a single file, I should bundle a single file 
inside a single component. Is this correct? Is there any other way where a 
single file can also be deleted (in case of 'InstallFinalize' action). Please 
let me know the solution.

Thanks and Regards,
Kshama


------------------------------------------------------------------------------

_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to