Hello,
I am using a set of steps to update a binary file in an MSI. The procedure works but when I run the msi it indicates that it cannot find a file which is found in the .cab file within the msi.
Here are my steps:
1) Run msidb -d Install.msi -k disk1.cab : This removes the .cab file from the msi
2) Build a new .cab file by running makecab /d Install.ddf : This creates a new .cab file according to my ddf file and it is called disk1.cab
3) Run msidb -d Install.msi -a disk1.cab : This re-imports the .cab file into the msi
I can then run the vb script WiStream which displays the contents of the msi and I do see my disk1.cab file there. As well, I would run this script after removing the cab file, after step 1 above, and it would be gone.
Now when I run the final msi, a error message appears
"The file install.exe cannot be installed because the file cannot be found in cabinet file 'disk1.cab'"
At this point if I extract the cab file from the MSI, I do see the install.exe within the cab file.
Any pointers on this would be great.
Thanks,
Pete
FOLLOW US
Get the latest news in Application Packaging