InstallShield Run setup and install prerequisites without asking

3.2k views Asked by At

I have a WinForm Application done in Visual Studio 2012, Framework 4.5. I made the Setup Project with InstallShield. I need to install this App on PC that may not have Framework 4.5 installed, so I add Framework 4.5 as a PreRequisite. So far So good. What I want is to Install the PreRequisite automatically, without asking my clients when they Runs the Setup. Is that Possible? Thanks

2

There are 2 answers

3
Christopher Painter On

InstallShield doesn't support this feature. The closest is to make the prerequisite mandatory. Another possibility would be to associate the PRQ to a feature to make it a "feature prereq" instead of a "setup prereq". This would cause Setup.exe to go right into your MSI and then defer the installation until after user interview.

1
NGaida On

Edit your PRQ to always install .net45 with no input. Here is a .net40 PRQ we use locally.

enter image description here

/passive has it show a progress bar, but you could just as easily do /q (no UI at all). The only problem would be a very long startup delay to your install which the user would probably interpret as "something is wrong" so I'd recommend keeping /passive.