cogs33
Posts: 11
Joined: Tue Sep 27, 2022 5:06 pm

Unable to enter version number for prerequisite

If a prerequisite MSI package (included as a file) is already installed, we don't want any dialogs to popup (especially NOT the dialog "Repair" "Uninstall" "Remove" which is extremely confusing -- how is a user supposed to know they should select "Repair" in this case?).

To avoid this we added a condition "Product version (identified by Upgrade Code)" to "Install prerequisite based on conditions". It is however impossible to enter a variable like [|ProductVersion] to the condition. The input field only accepts literal version numbers! A literal version number is completely useless because the build script must be able to pass this via command line.

How can this be accomplished?

As said we just want to skip prerequisite installation if the prerequisite >= ProductVersion is already installed.

Version 22.3
cogs33
Posts: 11
Joined: Tue Sep 27, 2022 5:06 pm

Re: Unable to enter version number for prerequisite

Ok I found he /UgradePrerequisite command. The command is not documented well enough. I had to guess how it works.

Nevertheless, this would be a LOT easier to handle (and much better software design) if such parameters could be passed as property values and used anywhere they are relevant. Please consider support for property values here (and everywhere else btw).
Catalin
Posts: 7492
Joined: Wed Jun 13, 2018 7:49 am

Re: Unable to enter version number for prerequisite

Hello,

Thank you for your followup on this!

I am glad to hear you managed to find a solution.

Regarding your suggestion, I will discuss this with our dev team to see whether we can improve this - thank you for bringing this to our attention!

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

Return to “Common Problems”