renderimage
Posts: 5
Joined: Wed Jul 11, 2012 10:27 am

Product patch creation is impossible MSI files is partial

I'm facing a very annoying issue: I have two products built with Advanced Installer both of them are "wrapped" by bootstrapper, yesterday I had to generate a patch using upgraded and target images.
I case of the first product I did: MyProduct_1.1.exe /extract:"\Path\To\Upgraded\Image" and MyProduct_1.0.exe /extract:"\Path\To\Target\Image". This operation have extracted msi and files side-by-side. I took msi images and generated a patch and it actually worked (with some additional tricks http://www.advancedinstaller.com/forums ... =5&t=21641).

The second product drives me mad!!! Once I've extracted both .exe files I found setup files with side-by-side very small msi + mst files. If I choose those msi files as upgraded/target images patch generation fails (they don't contain as many tables inside as AI needs. i.e. Content, Media etc). I've tried to apply relative mst file to those msi and save the transformed images. After doing that I was able to generate msp file, but this would not apply on my installation, presumably because of the msi I've used during the installation (small one with mst). I 've just confirmed this my hypothesis by installing first a transformed image and then applying the msp file.

What do I do now?! All my customers are awaiting for the patch and they've already installed the target version that cannot be altered by the msp file I've made, all this because of Advanced Installer generating useless msi files!!!!
I don't understand why does it split the second product like that!? The first product has 2 images per version MyProduct1.msi and MyProduct1.x64.msi, while the second one has MyProduct2.msi, MyProduct2.x64.msi and MyProduct2.mst

How can I force patch installation which currently won't apply as minor update (according to verbose log) :?:
renderimage
Posts: 5
Joined: Wed Jul 11, 2012 10:27 am

Re: Product patch creation is impossible MSI files is partia

:twisted: I don't think Advanced Installer team will reply to this question (except of "please send us a verbose log with .AIP file"). Actually they don't even know what the hell is going on under the hood of Advanced Installer.
I've just finished to compare first product's AIP to second AIP (from UI and by using XML editor as well) and build settings are the same, so why?!?!?! why does it generate those dummy .msi file for the the second product (x64, 32bit+ mst) while the first project has mixed (32bit/x64) architecture as well, but has two "standalone" msi files....
It's so frustrating, now I need to release a major upgrade just because of this stupid behavior and probably the next one will be major as well, I think I will have to keep doing major-only updates until my software will become obsolete
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Product patch creation is impossible MSI files is partia

Hello,

Regarding your second product, you are encountering this behavior because the related installer project is a mixed 32/64-bit installation project and is created using an older version of Advanced Installer. In order to avoid this behavior (and avoid the extraction of a MST file) you can proceed like this:
- Open the target and upgraded installer projects with our latest version (9.5) of Advanced Installer.
- Go to "Install Parameters" page and click on [...] button (in the right side of "Package Type" field).
- In the Mixed 32/64 Package Organization Wizard enable "Build separated install databases" and "Do not make any changes to package organization" options.
- Build your projects.
- Now extract the msi files from your EXE files by using the /extract command.
- Use the new extracted MSI files to generate a new patch.

After doing that you can try to deploy the new patch, but I'm not sure if the patch will apply successfully. If not, I'm afraid you should build the related installer projects with the above options enabled, create a new patch, reinstall the target version of your product and then apply the new created patch.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”