I have an installer that contains a uncompressed file:
<Component Id="Uncompressed">
<File Id="UncompressedFile" Vital="yes" Source="Uncompressed.dll" Compressed="no" />
</Component>
This file can be replaced before actually installing the Package. That means, the version number at build time differs from the version number at install time. The MSI always contains the version at build time though. As a result the file does not get updated.
What possibilities do I have to:
- Check the file version at install time (ideal)
- ignore the file version for this file (if 1. is not possible)
Can I create the installer without actually supplying the file at build time?
In this related question there are some possible workarounds:
- using
REINSTALLMODE=amus
=> I would prefer a solution that only affects this single file. - Rename file on install (and undo on rollback)
=> Might work, seems hacky though - Companion File
=> Seems to be the best solution right now - Version lying
=> Won't work, since the File is a DLL that actually contains a version - This article seems to be exactly what I want
=> I'm just not sure how to use it.