Missimg Entries in MSIFileHash
Posted 16 March 2004 - 18:18
We are looking to distribute Web Applications, and it was suggested that we use Dynamic File linking to distribute our data. I have read about the problems using subfolders with dynamic linking, so have not done that.
Essentially, I made a simple install that contains one single component in one feature (very simple). Using dynamic file linking, I point it to a folder and select all files (no subfolders). I now have 96 unversioned files dynamically linked into my component.
Now I go to the release wizard and create a new release, ensuring that I set the Generate File Hash Values property to Yes.
Now if I open the the newly created release in DevStudio or Orca, and take a look in the File table, I have 96 files listed. However, if I look in the MSIFileHash table, I have around 63 entries. Over 20 files are unaccounted for, which is a problem as this will require the upgrade to have the original source install.
If I do the same thing without using dynamic file links, and the final image has 96 entries in both the File and MSIFileHash tables, which is what we want.
Essentially this would mean that using Dynamic File links would guarantee that upgrades will have severe problems. Can anyone else reproduce this at all?
Posted 18 March 2004 - 04:43
Posted 18 March 2004 - 16:37
Posted 18 March 2004 - 22:38
Posted 19 March 2004 - 09:30
Please count again the number of entries in the FileHash table. Are there exactly 63 in your dynamic linking case? Then there might be really a problem with dynamic linking (63 is 2^6 - 1). Please try to split your files into two components with each containing less or equal than 63 files. I would try if I could, but I'm still using ISWi 1.52 (which doesn't support FileHash at all) and building the FileHash table in an automatic Postbuild step.
Posted 19 March 2004 - 15:19
Luke_S: There is nothing special about the components at all, they are dynamically linked components, and same result if they are marked shared or not shared. They are not marked as permanent. If I don't use dynamic links, the counts end up matching in the two tables, which may be my only option.
hteichert: The count seems to shift, anywhere from 63 up to 69. I broke the component into two, one with 39 file and the other with 57 files. When I rebuilt the image and look using ORCA, I now see 96 entries in the File table, and 68 entries in the MSIFileHash table. I can't figure this out at all, but it seems to indicate a real problem with dynamic file links.
Posted 25 March 2004 - 17:16
Posted 26 March 2004 - 16:01
But there is something that i know which could be of help. After creating your msi file, run the Microsoft utility msifiler.exe on the msi file. This will generate the FileHash values in the msi file.
See if this helps!