gopinathrbe
Posts: 52
Joined: Fri Sep 22, 2023 8:14 am

Incorrect Prerequisite Installation Prompt During Uninstallation

When attempting to uninstall the main tool after its prerequisite has been removed, the system incorrectly displays the "Installing prerequisite" window. This is misleading and suggests that installation is occurring during uninstallation.

Steps to Reproduce:

1. Install the main tool along with its prerequisite or skip the prerequisite installation using Condition in the Prerequisite Installation Tab.

2. Manually uninstall the prerequisite, if it is installed

3. Attempt to uninstall the main tool.

Observe that the "Installing prerequisite" dialog appears during this uninstallation process.

Expected Behavior:
Uninstalling the main tool should not attempt to reinstall or show installation prompts for a missing prerequisite.

Actual Behavior:
A misleading "Installing prerequisite" window appears, suggesting that the system is attempting to reinstall components during an uninstall operation.

Advanced installer: 22.7
Attachments
prerequiste-skip-condition.png
prerequiste-skip-condition.png (16.91 KiB) Viewed 3792 times
Catalin
Posts: 7504
Joined: Wed Jun 13, 2018 7:49 am

Re: Incorrect Prerequisite Installation Prompt During Uninstallation

Hello,

Could you please create a sample project that reproduces this and forward that to me by email at support at advancedinstaller dot com?

I would need:

- the AIP file

- a download link for the prerequisite

so I can run some more tests and further investigate this on my end.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gopinathrbe
Posts: 52
Joined: Fri Sep 22, 2023 8:14 am

Re: Incorrect Prerequisite Installation Prompt During Uninstallation

Uncheck "Install PDF24" during installation.
uncheck-pdf24.jpg
uncheck-pdf24.jpg (59.18 KiB) Viewed 3447 times
Then try to uninstall — the prerequisites still get installed.
Additionally, custom options appear at the end of the uninstallation process.
warningformcustomaction.jpg
warningformcustomaction.jpg (31.45 KiB) Viewed 3447 times
prerequisites download link: https://tools.pdf24.org/en/creator
Attachments
TestInstallation.aip
(54.59 KiB) Downloaded 47 times
Catalin
Posts: 7504
Joined: Wed Jun 13, 2018 7:49 am

Re: Incorrect Prerequisite Installation Prompt During Uninstallation

Hello,

The problem with the prerequisite is the fact that you are using a wrong condition.
Screenshot_44.png
Screenshot_44.png (1.45 KiB) Viewed 3436 times

In the "Dialogs" page, you can see that the value of the checkbox is "CheckBox" if it is checked.
Screenshot_45.png
Screenshot_45.png (13.85 KiB) Viewed 3436 times

Regarding the other error, I was not able to reproduce it by changing the prerequisite's install condition to a correct one.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gopinathrbe
Posts: 52
Joined: Fri Sep 22, 2023 8:14 am

Re: Incorrect Prerequisite Installation Prompt During Uninstallation

The issue isn't with the installation process , but with the prerequisite being installed during uninstallation.

"Specifically, the condition INSTALL_PDF24 = "Yes" is meant to ensure that the prerequisite installs only during the installation process if the condition is met. However, it's being installed during uninstallation as well, which shouldn't happen.
prere-condition.jpg
prere-condition.jpg (102.95 KiB) Viewed 3428 times
Why is the prerequisite being triggered during uninstallation?"
Catalin
Posts: 7504
Joined: Wed Jun 13, 2018 7:49 am

Re: Incorrect Prerequisite Installation Prompt During Uninstallation

Hello,

Did you test my solution?

If not, please do so and the prerequisite should no longer be triggered during uninstall. In my tests, it was no longer triggered after changing the condition to a proper one.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gopinathrbe
Posts: 52
Joined: Fri Sep 22, 2023 8:14 am

Re: Incorrect Prerequisite Installation Prompt During Uninstallation

You need to uncheck the checkbox to prevent the prerequisite from being installed. Installing the prerequisite avoids the issue I’m referring to

Condition:
ConditionState.jpg
ConditionState.jpg (133.19 KiB) Viewed 3419 times


Please follow these steps:

Install the test tool along with the prerequisite.

Uninstall the prerequisite.

Now uninstall the test tool
Attachments
Prerequisite-windows.jpg
Prerequisite-windows.jpg (93.79 KiB) Viewed 3419 times
Catalin
Posts: 7504
Joined: Wed Jun 13, 2018 7:49 am

Re: Incorrect Prerequisite Installation Prompt During Uninstallation

Hello,

In order for me to increase my chances of reproducing this, please forward me the new version of the sample AIP that you are using so I can build that on my end.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gopinathrbe
Posts: 52
Joined: Fri Sep 22, 2023 8:14 am

Re: Incorrect Prerequisite Installation Prompt During Uninstallation

Here it is
TestInstallation.aip
(54.59 KiB) Downloaded 64 times
gopinathrbe
Posts: 52
Joined: Fri Sep 22, 2023 8:14 am

Re: Incorrect Prerequisite Installation Prompt During Uninstallation

Is there any progress on this? This issue is consuming a lot of my time, and it’s not the first occurrence. With each new release, I have to re-validate all features on my installer, which is both time-consuming and unreliable.

It’s reached a point where I’m hesitant to even update your tool.
Catalin
Posts: 7504
Joined: Wed Jun 13, 2018 7:49 am

Re: Incorrect Prerequisite Installation Prompt During Uninstallation

Hello,

This turns out to be caused by the use of wrong conditions.

Could you please try to use the following condition for your prerequisite:

Code: Select all

INSTALL_PDF24 = "Yes" AND (NOT Installed)
and let me know if that helps?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gopinathrbe
Posts: 52
Joined: Fri Sep 22, 2023 8:14 am

Re: Incorrect Prerequisite Installation Prompt During Uninstallation

Even though the prerequisite is not installed, I still receive this message in the progress status
Prerequisite-incorrect-message.jpg
Prerequisite-incorrect-message.jpg (55.67 KiB) Viewed 3296 times
Even there are status updates about the prerequisite during uninstallation
At the end of the process, I still get this window—which should only appear if UILevel = 2 (onle for silient mode)
incorrect-popup-accept-eula.jpg
incorrect-popup-accept-eula.jpg (30.53 KiB) Viewed 3296 times
Catalin
Posts: 7504
Joined: Wed Jun 13, 2018 7:49 am

Re: Incorrect Prerequisite Installation Prompt During Uninstallation

Hello,

Not quite sure whether the issue is also resolved on your end?

Regarding the new issue, I'm afraid I can not really test that as I do not have the DLL.

If possible, could you please share a copy of the DLL with me so I can run some tests and see if I can reproduce the isuse?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gopinathrbe
Posts: 52
Joined: Fri Sep 22, 2023 8:14 am

Re: Incorrect Prerequisite Installation Prompt During Uninstallation

here you go
TemplateTest.zip
(134.53 KiB) Downloaded 56 times
Catalin
Posts: 7504
Joined: Wed Jun 13, 2018 7:49 am

Re: Incorrect Prerequisite Installation Prompt During Uninstallation

Hello,

Thank you for sharing the resources with me.

I have tested this, but I'm afraid i wasn't able to reproduce the issue on my end.

I do not see any messages during the installation with full UI. However, I can reproduce this if I launch the EXE with the /qn parameter, which is correct considering the condition you have used.

Are you able to reproduce this on a clean VM as well?

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

Return to “Common Problems”