This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Install condition evaluated after pre-requisite installation
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Dec 16, 2016
03:57 AM
Install condition evaluated after pre-requisite installation
I want to stop my product being installed on Win XP. I have excluded it in install condition but it installs all the pre-requisites and only stops features components from being installed.
I want that even install condition to be evaluated at the begining.
I want that even install condition to be evaluated at the begining.
(5) Replies
‎Dec 16, 2016
11:48 AM
Pre-requisites are part of the Setup.exe and get installed BEFORE the Setup.exe spawns the MSI. It is the MSI that checks the Launch Conditions.
No way that I know of to accomplish your goal using InstallShield because you don't author the Setup.exe yourself, it is built for you by InstallShield when you compile your project.
It is likely possible using WiX (Windows Installer XML from Microsoft) because in that case you have some control over the Setup.exe and can make it so it blocks on Windows XP.
No way that I know of to accomplish your goal using InstallShield because you don't author the Setup.exe yourself, it is built for you by InstallShield when you compile your project.
It is likely possible using WiX (Windows Installer XML from Microsoft) because in that case you have some control over the Setup.exe and can make it so it blocks on Windows XP.
‎Dec 16, 2016
11:53 AM
One thought - You could try changing the PRQ files for your pre-requisites and set a Condition in each of them, though, to block on Windows XP. Have you used the Prerequisite Editor under the Tools menu before? I think that might accomplish what you are after, but you might need to experiment some and see.
‎Dec 16, 2016
01:18 PM
I said to block on XP, but what you really do in a PRQ is tell it "Setup is running on a specified platform", and then choose all versions you want the PRQ to run on. Any OS that you do not choose should be ignored.
‎Mar 22, 2017
06:13 AM
chad.petersen wrote:
I said to block on XP, but what you really do in a PRQ is tell it "Setup is running on a specified platform", and then choose all versions you want the PRQ to run on. Any OS that you do not choose should be ignored.
I removed Win XP from all the pre-requistes. Now when I launch my installer, it stops installation abruptly without showing the install condition message. However the same works as per expectation on Win 7 and later. I am using Installshield 2015.
‎Apr 13, 2017
07:46 AM
Another option would be to assign the prerequiste to a feature in the installation instead of installing before feature selection (the default setting).
In the Installation Designer view, select "Application Data" > "Redistributables". Now in the Redistributables view, select the desired Prerequisite and look at the "Conditional Installation" section below it. You will see that the option "Install before feature selection" is checked. If you instead check the box for one of the listed Features in your installation package, then the prerequisite will (1) only be installed if that feature is installed, and (2) run after the MSI is extracted and processed by setup.exe. You could even create a Feature in your install project just for to assign your prerequisites.
In the Installation Designer view, select "Application Data" > "Redistributables". Now in the Redistributables view, select the desired Prerequisite and look at the "Conditional Installation" section below it. You will see that the option "Install before feature selection" is checked. If you instead check the box for one of the listed Features in your installation package, then the prerequisite will (1) only be installed if that feature is installed, and (2) run after the MSI is extracted and processed by setup.exe. You could even create a Feature in your install project just for to assign your prerequisites.