Hello,
We have a database file
<Component Id="db.dat" Guid="{123}">
<File Id="db.dat" Name="db.dat" KeyPath="yes" Source="db.dat"
DiskId="2" />
<CopyFile Id="Rename_db.dat" SourceDirectory="Data"
SourceName="db.dat" DestinationDirectory="Data"
DestinationName="db.bak" Delete="yes" />
<RemoveFile Id="Remove_db.bak" Name="db.bak" On="uninstall"/>
</Component>
The database file can be modified by user, on reinstall the modified
file is renamed to db.bak and original file is copied on it's place.
Everything worked well until I made the patch file that modifies
another file, e.g. somecode.dll.
During the patch install, MoveFiles action is executed, db.dat is
renamed to db.bak. But db.dat is not reinstalled as it was with
reinstall. And our patched program ends up without database.
...
MSI (s) (64:F8) [20:11:50:685]: Component: db.dat; Installed: Local;
Request: Local; Action: Local
...
MSI (s) (64:F8) [20:11:55:342]: Executing op:
FileCopy(SourceName=somecode.dll,SourceCabKey=somecode.dll,DestName=somecode.dll,Attributes=20480,FileSize=2105344,PerTick=32768,,VerifyMedia=1,,,,,CheckCRC=0,Version=1.0.0.1037,Language=1033,InstallMode=58982400,,,,,,,)
...
No FileCopy for db.dat
...
Currently I temporarily solved the problem by modyfing with the patch
MoveFiles condition to "NOT PATCH". Is there a better solution?
Best regards,
Ilya Slobodin
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users