tedych
Posts: 4
Joined: Wed Jan 30, 2019 4:34 pm

Simple prerequisite URL grief

I'm trying to test few different very simple installation scenarios.
New test project with one custom dialog with one checkbox to condition the installation of a shortcut, this I got working.
I'm trying to prerequisite .NET 4.5 and if not found on user system then just open a browser with a given URL, that simple. Yet, 3 days already I struggle with simple things, this now having taken almost one day now, trying the "intuitive" way and reading some faqs and the help file, yet no joy completing that.
I added a prerequisite (tried also the .NET template when creating the project) of .NET 4.5. I see its options, in Setup Files I set Open website in browser with a URL. Install conditions - one condition with Registry value with specified content, et all. OSes is including Win7 x86 (the target test machine, fully updated but with no .NET 4.x).
Yet, when I run the installer, it only spits a error dialog that the required .NET not installed and the installer just goes to Final step where I just hit Finish and that's it. No browser opens etc.
How do I do that?

Edit: Hm, Launch conditions was set by the template itself. It seems to just stop the installation on start if .NET version not met. After I removed this launch condition, then only the prerequisite seems to work Ok.
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: Simple prerequisite URL grief

Hello,
Yet, when I run the installer, it only spits a error dialog that the required .NET not installed and the installer just goes to Final step where I just hit Finish and that's it.
Indeed, as you have already stated, that was happening due to the Launch Condition which was added when you have used the template.

Edit: Hm, Launch conditions was set by the template itself. It seems to just stop the installation on start if .NET version not met. After I removed this launch condition, then only the prerequisite seems to work Ok.
I am glad you got this working.

Just let me know if you encounter any problems.

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

Return to “Building Installers”