I am working on an Outlook add-in written by someone else using VSTO 4.0.
There are the following prerequisites:
- .NET 4 Framework
- Office 2007 Primary Interop Assemblies
- VSTO 4.0 Runtime
I have created a VS2010 Setup project which succesfully uses launch conditions to search for these prereqs. For .NET 4, it will automatically install it for the user if it is missing. However, the other requirements are not installed automaically. The best I have managed is for the installer to prompt the user asking if they want to download the prereq now, ‘yes’ or ‘no’ (I have used the ‘Install Url’ property of the launch condition to take them to the correct location). After the user has manually installed them they need to run our add-in installer again.
What I am looking for is a way for my installer to automatically install the missing prereqs without pausing the installation, and without the user having to take uneccessary steps. Whether this means including the prereqs in the installer file somehow or getting the installer to do the download work.
There is also a concern that because I have manually entered the Install url, it may become invalid at some point. Is there a more standardised way of doing this sort of thing that I am missing?
The app is not for internal use and we don’t run IIS for deployemnet etc, out systems are mostly linux based. So we ideally want a single installer wuch as an MSI.
Any suggestions most welcomed.
Richard
In the properties of the setup project, click the prerequisites and choose “Download prerequisites from the same location as my application”. This option builds your MSI with all the prerequisites required. But still the user has to click “I Agree” button for accepting T&C’s when they install dot net framework.
Or you could try silent install of MSI from command line.