URGENT - Published event for a dialog button is not working - Advanced Installer Community
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

URGENT - Published event for a dialog button is not working

Dear Advanced Installer,

We would like to achieve the following scenario:

1. WelcomeDlg is displayed by the installer
2. Side-by-side installation is turned on at the Upgrades tab + UpgradeDlg is added to the project
3. If the following 3 conditions are fulfilled, then the UpgradeDlg should be appearing after the WelcomeDlg (so when the user is clicking on the Next button of the WelcomeDlg)
a) we have a server and client type of installation, and for that a THE_MODE property. UpgradeDlg should be visible on for Client installerers, so when THE_MODE="Client",
b) we introduced a new property called MULTIVERSION. The default value is "FALSE", and if the user is starting the installed from Command Prompt by passing in e.g. MULTIVERSION="TRUE", then the client installer should start in "multiversion" mode, so side-by-side installation should be offered, aka UpgradeDlg should be visible after the WelcomeDlg.
c) this should only happen if a previous version of our product is installed. For that we also have a property called OLDPRODUCTS. So if OLDPRODUCTS exists (has a value), then the UpgradeDlg should appear, otherwise it makes no sense to offer a side-by-side installation.

I'll send over our .aip to you, could you please take a look at the WelcomeDlg's Publised Events for the Next button?
Right now the conditions is:
OLDPRODUCTS AND MULTIVERSION="TRUE" AND THE_MODE="Client" -> and then the UpgradDlg should appear (Display specific dialog)

Somehow the condtion is not working. I tried to use a shorter conditions as a test, so I tried to use only OLDVERSIONS, or only "MULTIVERSION="TRUE", I also tried to use "MULTIVERSION=TRUE" without quotes. I also tried only "THE_MODE="Client", so kind of I tried 10-15 different combinations, but I can never ever get the UpgradeDlg after the WelcomeDlg. Always the default RegionSelectDlg comes.

Of course I start the installer from Command Prompt with such a command:
TheClient.exe MULTIVERSION="TRUE" /L*Vx log.log

But I also tried the following commands:
TheClient.exe MULTIVERSION="TRUE"
TheClient.exe MULTIVERSION=TRUE /L*Vx log.log
TheClient.exe MULTIVERSION=TRUE
TheClient.exe MULTIVERSION=1 /L*Vx log.log
TheClient.exe MULTIVERSION=1

No matter what I do, the UpgradeDlg is never appearing. I have a suspicion there is a problem with out .aip, maybe?

I will send over the recent version of our .aip, also a logfile for you.

Could you please take a look? I would need to fix this problem still this week, that's why I marked as important, as we are about to release a new version of our product.

Best regards, and thanks,
Zsolt
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Re: URGENT - Published event for a dialog button is not working

So one more thing, that I forgot to mention, or maybe it was not clear:

As a condition for the UpgradeDlg I tried to use only
MULTIVERSION="TRUE"

Or only
OLDPRODUCTS

Or only
THE_MODE="Client"

I tried to narrow down which part of the longer conditions might be false. However even in these cases I got the RegionSelectDlg when clicking on the Next button on the WelcomeDlg.
That's why I got stuck as I have no idea why none of the conditions are taken into consideration. Normally using these conditions in the .aip project should work easily.

Best regards,
Zsolt
Liviu
Posts: 1419
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: URGENT - Published event for a dialog button is not working

Hello Zsolt,

I've replied to your email.

Let's continue the conversation there until we reach a conclusion.

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

Re: URGENT - Published event for a dialog button is not working

Dear Liviu,

Thank you for your previous hint, we managed to solve our problem.

However I found another interesting scenario:

I prepared 3 versions of our software, in all 3 the side-by-side installation is turned on. Also they are MAJOR uprade, so the product ID was changed. The versions are 35.0.0, 36.0.0 and 36.0.1

Scenario:
1. I installed 35.0.0
2. We have a special flag called MULTIVERSION (it's a property). In the Dialogs area we show the UpgradeDlg only if the user started the installer from COMMAND PROMPT by a command like TheClient.exe MULTIVERSION=TRUE. So by default we don't want the users to be able to install multiple versions of our product, but certain users should be able to do it if they start the installation from command prompt with the flag. In this step I installed 36.0.0 with the MULTIVERSION=TRUE flag, I saw the UpgradeDlg, selected the side-by-side option. Do after step 2 I had 2 products on the PC, which is correct.
3. I wanted to try out what happens if a new MAJOR product version (36.0.1) arrives at this point without defining the flag. So my goal was to install 36.0.1 NOT side-by-side, so after the installation I thought the older product versions will be removed, and I will see only 36.0.1 on the PC. How this should work? How could we achieve this. Right now what happens is, that I got 3 versions side-by-side to be installed on the PC. Since I did not use the flag, I did not see the UpgradeDlg, so I thought it won't be a side-by-side installation.


Could you please check this for me? I will send our recent .aip file via WeTransfer.

Best regards,
Zsolt
Catalin
Posts: 7847
Joined: Wed Jun 13, 2018 7:49 am

Re: URGENT - Published event for a dialog button is not working

Hello Zsolt,

My colleague Liviu is now enjoying his vacation and therefore I will take over this ticket for him.

If possible, could you please send the AIP file again as the link is expired now.

I might have a hunch on why this is happening but it's better to check the AIP file first. :)

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”