Packaging: the installer's Repair puts back a damaged effectcraft-cli.exe (#466)
Cause: Repair used REINSTALLMODE=ecmus. effectcraft-cli.exe has no version resource, so Windows Installer treats it as unversioned: a changed copy with a later write time counts as a user edit and is kept, and "c" only checks files that carry an MSI checksum, which these don't. Fix: Repair uses "amus", which puts back every file whatever its version or date. Tests: test-msi.ps1's stand-in CLI is unversioned like the real one; the test damages it in place and repairs with the REINSTALLMODE read from installer-ui.wxs (no longer msiexec /fa after deleting it), then compares contents. It fails with ecmus (the damaged file stays) and passes now.
This commit is contained in:
@@ -90,7 +90,10 @@
|
||||
<Control Id="Title" Type="Text" X="20" Y="15" Width="330" Height="20" Transparent="yes" NoPrefix="yes" Text="{\EcTitle}[ProductName] is already installed" />
|
||||
<Control Id="Description" Type="Text" X="20" Y="45" Width="330" Height="24" NoPrefix="yes" Text="Repair puts back missing or damaged files in its folder. Remove uninstalls it; your projects are not touched." />
|
||||
<Control Id="Repair" Type="PushButton" X="20" Y="80" Width="80" Height="20" Default="yes" ElevationShield="yes" Text="&Repair">
|
||||
<Publish Event="ReinstallMode" Value="ecmus" Order="1" />
|
||||
<!-- "a": put back every file, whatever its version or date. With "e"/"o" a changed
|
||||
unversioned file (effectcraft-cli.exe has no version resource) counts as a user edit
|
||||
and is kept, and "c" only checks files that carry an MSI checksum. -->
|
||||
<Publish Event="ReinstallMode" Value="amus" Order="1" />
|
||||
<Publish Event="Reinstall" Value="ALL" Order="2" />
|
||||
<Publish Event="EndDialog" Value="Return" Order="3" />
|
||||
</Control>
|
||||
|
||||
Reference in New Issue
Block a user