Prerequisites are missing if the product is installed as MSI, but they are there if the product is installed as EXE - Advanced Installer Community
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Prerequisites are missing if the product is installed as MSI, but they are there if the product is installed as EXE

Dear Advanced Installer Support Team,

Please let me report an issue of one of our customers to you: they wanted to apply a transform file in the following way:
1. As we released our product as an EXE file, first of all they extracted that file by executing the " TheClient.exe /extract " command
2. Their next step was executing this command: " msiexec /i "C:\...\TheClient.x64.msi" /qn TRANSFORMS="TransformFile.mst" "

After the command successfully installed our product on their PC, they noticed that several prerequisites, which should normally be installed by our product, are missing.

Since I wanted to see if we set proper conditions for our prerequisites in our .AIP project, I immediately installed our EXE on the same OS the customer has (Windows 10 x64). The EXE installed all the prerequisities as I expected.
The problem occurs if I run this command: " msiexec /i "C:\...\TheClient.x64.msi" " on the exact same virtual machine using exactly the same checkpoint. The installer shows me warning dialogs for each of our feature-based prerequisites:
"Warning 4154. Required Application prerequisite was not correctly installed. Continue installation of PRODUCT?"

In a nutshell: if I install our EXE on a virtual machine in full UI mode, the prerequisites are installed in front of my eyes without any problems. If I extract the EXE and install TheClient.x64.msi part on the same (64-bit) virtual machine also in full UI mode, I get as many warning dialogs (4154) as many feature-based prerequisites the product tries to install.

Do you have any idea what can be wrong? After I did a little bit of research I found several posts at your forum, each of them were saying that the condition of the prerequisites are probably wrong. I doubt that our conditions are wrong since running TheClient.exe successfully installs all the prerequisites.

Tomorrow I'll make available our EXE file for you as well as our .AIP. In the meantime please share our ideas with me.

Best regards,
Zsolt Kollarits
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Prerequisites are missing if the product is installed as MSI, but they are there if the product is installed as EXE

Hi Zsolt,

First of all, please keep in mind that the "pre-install" prerequisites require an EXE Bootstrapper and they can only be installed from an EXE package, the MSI package can't install them.

As for the "feature-based" prerequisites, the MSI package that is extracted from the EXE setup, searches for them at the extraction path specified in the "Prerequisites" page, "Packages" tab. But, since they are not available at that path, the MSI cannot find them and the warning message that you mentioned is thrown. In order for them to be installed with the MSI, you can manually copy them at that path before launching the MSI package.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Re: Prerequisites are missing if the product is installed as MSI, but they are there if the product is installed as EXE

Hi Eusebiu,

As you could see in our .aip project file, our Download/extraction folder field under Prerequisites tab/Packages contains the following value:
[CommonAppDataFolder]\Therefore\Install\[|ProductVersion]\Prerequisites

You are right, the prerequisites are not there after I just simply extract the EXE file. That's why - as per you suggested - I copied all the prerequisites manually to
[CommonAppDataFolder]\Therefore\Install\[|ProductVersion]\Prerequisites
but the issue is still the same. I got the same warning dialog when I
1. Extracted everything to my Desktop
2. Copied the prerequisites to the proper folder (see above)
3. Executed this command: "msiexec /i C:\Users\zsolt kollarits\Desktop\TheClient.x64.msi"

Could you please advise us something?

Thanks in advanced,
Zsolt
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Prerequisites are missing if the product is installed as MSI, but they are there if the product is installed as EXE

Hi Zsolt,

I tested the scenario again and it works for me when the prerequisite is available in the extraction location. I noticed that there is an extra backslash after the [CommonAppDataFolder] property in your path. Can you remove that backslash or use another path and see if it works?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Re: Prerequisites are missing if the product is installed as MSI, but they are there if the product is installed as EXE

Dear Eusebiu,

I did another round of testing for our customer because I realized I did not test the exact same scenario they are doing on their side.

While I executed a command like this: "msiexec /i "C:\Users\...Desktop\TheClient.x64.msi"
they are executing: "TheClient.exe /i "C:\Users\...Desktop\TheClient.x64.msi"

Since they´re launching the EXE file, "pre-install" prerequisites should be installed by the command. I confirm they are really installed as expected.
BUT "feature-based" prerequisites are not installed, although they should be. When I run the command, all the "pre-install" prerequisites are automatically extracted into the folder we defined in our Download/extraction folder field under Prerequisites tab/Packages, but "feature-based" prerequisites do not appear there. That´s why the installer cannot find them in a later stage of the installation.

Could you please try to install the EXE - I already sent to you - by the 2nd command and confirm that the feature-based prerequisites cannot be installed properly. I always see the message of "Warning 5154: ... prerequisite was not correctly installed. Continue installation of <product>?"

If I manually copy the "feature-based" prerequisites files to our Download/extraction folder and run the command afterwards, then the installer installs the "feature-based" prerequisites as well. The customer would like to distribute our product on several machines and do not want manually to copy any prerequisite file on each machine. Since he triggers the EXE Bootstrapper, all the prerequisites should be handled by you.

Best regards,
Zsolt
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Prerequisites are missing if the product is installed as MSI, but they are there if the product is installed as EXE

Hi Zsolt,

I'm afraid that our EXE bootstrapper does not support the path to the MSI package to be set from command line. If the resources are inside the EXE setup, it will search for the MSI package at the "extract location". If the resources are outside, it will search for the MSI package in the same folder (next to itself) or in a subfolder that is specified in the "MSI Subfolder" field from the "Builds" page.

Why does your customer try to specify the MSI for the EXE bootstrapper and does not simply run the bootstrapper with the resources next to it or inside it?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Re: Prerequisites are missing if the product is installed as MSI, but they are there if the product is installed as EXE

Hi Eusebiu,

It´s also a bit confusing for me why they tried to run the EXE like that. We produce "EXE with resouces inside" package, so the MSI is not needed at all for proper installation.

The only problem that quite a few customers would like to influence the way of the installation by some transform (MST) files. For that they usually run "msiexec" command with an MSI and an MST file.

The most reliable solution would be if they could run our official EXE file with an MST next to it. So far we could not make such a scenario working, although we created proper transform files and tried to launch our EXE with one of those transform files. Our product was always installed by the EXE, but the modifications of the transform files were never applied. We already asked for your help in an earlier thread at your forum (how to apply MST file over an EXE), but the solution proposal you gave us did not work.

It´d be highly appreciated if you would test the following scenario:
1. use the EXE file I sent to you and create a transform file for it with ORCA
2. start our EXE from command line by applying the transform file too

If you could really make this scenario working on your side - the transform file would really modify the installation - , please give us some more details about it. Then we could provide some more info for our customer as well.

Thanks in advance!

Best regards,
Zsolt
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Prerequisites are missing if the product is installed as MSI, but they are there if the product is installed as EXE

Hi Zsolt,

In the older Advanced Installer versions (until 14.0), there was an option in the "Mixed 32/64-bit package" wizard called "Build separate install databases" which had to be checked in order for the transforms to work on a mixed package. This option is applied by default in the new Advanced Installer versions and it is not displayed in the wizard anymore.

I created and successfully applied a transform on a mixed package that was created with that option checked. However, I was not able to do this on your package and I suspect that this option was not checked when you configured the package.

If you change the package type and then return to the "Mixed 32/64-bit package" type, the wizard will be displayed again, so you can build your package with that option checked. Then, you can create a transform and apply it by running the EXE setup as my colleague described to you in the "How to apply an MST transform file over an EXE" thread.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Re: Prerequisites are missing if the product is installed as MSI, but they are there if the product is installed as EXE

Hi Eusebiu,

We´re still using Advanced Installer 13.6. I´m fairly sure we had "Build separat install databases" enabled back then when we configured our Mixed 32/64 package with the wizzard. I just click on the ... button next to the package type combobox on Install Parameters/Installation Options page and I see that "Build separat install databases" is enabled.

I can click through the wizzard once more and generate a new EXE, but I´m sure it won´t make any difference. Maybe you create the transform file in a different way on your side? I´m just guessing what we and you make differently... It´d be really important for us to successfully apply a transform file over our EXE.

Best regards,
Zsolt
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Prerequisites are missing if the product is installed as MSI, but they are there if the product is installed as EXE

Hi Zsolt,

I tested again your package and I noticed that the transform is successfully applied on it. Unfortunately, I couldn't install it because of the "Please use the 64-Bit package..." custom launch condition that it contained, but in my transform I just used the "ProductName" property by adding the "Transform" word to it and when the package was launched it was successfully updated.

I attached the transform to this thread, so you can test it with the following command:

Code: Select all

TheClient.exe TRANSFORMS="<path_to_transform>\Theclient.x64.mst"
Best regards,
Eusebiu
Attachments
TheClient.x64.zip
(2.03 KiB) Downloaded 335 times
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Re: Prerequisites are missing if the product is installed as MSI, but they are there if the product is installed as EXE

Dear Eusebiu,

Thanks for the transform file you sent me. I managed to apply it by running the command: the title of the product was really changed as you described.

How did you create that MST file? I suppose you extracted TheClient.exe, then opened TheClient.x64.msi with Orca and changed the ProductName property under Property tab.

Do you have any idea of why we could not modify our installation by changing the Display and Level columns of the Feature tab? We have a well-tested scenario to enable/disable features at install time. This mechanism is also documented by us and works fine if we run msiexec with the relevant MSI + MST file. Nevertheless we could not enable/disable features by using an MST + EXE combination. Is there any chance that you could give it a try and create an MST which enables a feature and apply that MST over an EXE?

Regarding the "Please use the 64-Bit package..." dialog: the customer also reported that he used to get this dialog. Based on our design the dialog should pop up only if the MSI´s architecture is not matching to the PC´s architecture. The dialog should never be shown by the EXE file at all since the bootstrapper should pick the correct MSI file for installation.

The launch condition looks like this in our .aip:
Condition: (OriginalDatabase ~>< "x64" EQV VersionNT64) OR (PATCH ~>< "x64" EQV VersionNT64)
Description: Please use the 64-Bit package for installations on a 64-Bit system!

This is also something we can´t explain. Probably it´s a bug in AI?

Best regards,
Zsolt
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Prerequisites are missing if the product is installed as MSI, but they are there if the product is installed as EXE

Hi Zsolt,
How did you create that MST file? I suppose you extracted TheClient.exe, then opened TheClient.x64.msi with Orca and changed the ProductName property under Property tab.
Yes, this is the way I created the transform.
Do you have any idea of why we could not modify our installation by changing the Display and Level columns of the Feature tab? We have a well-tested scenario to enable/disable features at install time. This mechanism is also documented by us and works fine if we run msiexec with the relevant MSI + MST file. Nevertheless we could not enable/disable features by using an MST + EXE combination. Is there any chance that you could give it a try and create an MST which enables a feature and apply that MST over an EXE?
I'm not sure why this happens. Please make sure that the "Always install this feature" option was not selected for your feature. I will try this too and get back to you with an answer.
Regarding the "Please use the 64-Bit package..." dialog: the customer also reported that he used to get this dialog. Based on our design the dialog should pop up only if the MSI´s architecture is not matching to the PC´s architecture. The dialog should never be shown by the EXE file at all since the bootstrapper should pick the correct MSI file for installation.

The launch condition looks like this in our .aip:
Condition: (OriginalDatabase ~>< "x64" EQV VersionNT64) OR (PATCH ~>< "x64" EQV VersionNT64)
Description: Please use the 64-Bit package for installations on a 64-Bit system!

This is also something we can´t explain. Probably it´s a bug in AI?
When a transform is applied over an EXE package, the MSI package is copied to the %temp% folder under a random name like "AIE4B2.tmp", so the "OriginalDatabase" property that you use as a launch condition will not contain the "x64" string anymore and the condition will fail.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Re: Prerequisites are missing if the product is installed as MSI, but they are there if the product is installed as EXE

Hi Eusebiu,

Your explanation about why our Launch Condition is not working in case of running our EXE file with an MST was really helpful. It seems we have to change that condition in our project. Really thanks for this.

Regarding the problem of the customer (he is not able to add features by a TRANSFORM file), I´ll wait for you to retest it on your side. I really hope you will be able to reproduce it. I was playing quite a lot with it and the behavior is just strange. The installation behavior of our features at Organization tab was fine so far. By default some features are simply disabled, but you can enabled them in full-UI mode or else by using a TRANSFORM file. This was always the case in the past, many of our current customer are using this approach who would like the install our product silently with some extra features added.

The TRANSFORM file I created for this purpose seems to be fine. We always created them in the way I did + executing that TRANSFORM file with the relevant MSI will result our product to be installed with the additional feature which was disabled by default but the TRANSFORM file enabled it. In order to enabled a feature we used to change the value of its Level column from 4 (not installed) to 1 (installed).

The thing we don´t understand is why the same MST does not work if we use it with an EXE. Although the product is installed, this time the additional feature is missing.

I really hope we´ll find a solution for this as well and I can forward it to our customer.

Thanks in advance!

Best regards,
Zsolt
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Prerequisites are missing if the product is installed as MSI, but they are there if the product is installed as EXE

Hi Zsolt,

I tested the enable feature scenario in a transform and it worked as expected for me. I just set the "display" and "level" attributes to "1" for the disabled feature. Did you tested this on a new simple package?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Re: Prerequisites are missing if the product is installed as MSI, but they are there if the product is installed as EXE

Hi Eusebiu,

For the 2nd attempt I managed to create a proper transform file which seems to be working now even with our EXE file. With that transform file I could extend the default feature list by some new features, those new features really appeared after the installation.

Thanks for your help!

Best regards,
Zsolt

Return to “Common Problems”