Update binary problem - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

kerneldrivers
Posts: 3
Joined: Mon Aug 10, 2009 8:45 pm

Update binary problem

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
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Update binary problem

Hi Pete,

Usually this error is shown when the MSI contains duplicate file sequences (in the "File" table). You should also check to see if the file is added correctly in the File table of the MSI.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kerneldrivers
Posts: 3
Joined: Mon Aug 10, 2009 8:45 pm

Re: Update binary problem

Cosmin,

Thanks. OK, looking at the 'modified' MSI and an original MSI, I see no difference, as viewed in Orca, in the files table. As well, if I attempt to import the modified MSI into AI it complains with the same error as when I try to install it.

Do you ahve another suggestion or maybe I am confused on what you are recommending?

Thanks,
Pete
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Update binary problem

Hi Pete,

I'm not sure why you are encountering this behavior. Can you please send us an email to support at advancedinstaller dot com with an URL from where to download the package with the problem so we can investigate it?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”