Solved

InstallShield include prerequisite in media or download from web

Posted on 2011-02-23
8
1,747 Views
Last Modified: 2013-11-14
In the redistributables panel, when I check the properties of a prerequisite, there is an option of build location, Copy from source media, download from web, or extract from setup.exe.

Is there a way to create a single project which would create 2 types of installer? If it is distributed through a cd, then include the prerequisite files/installers. And create another installer which will not include the prerequisite files, but instead automatically download from web when not yet installed on target machine.

And what is extract from setup.exe?
0
Comment
Question by:Thomasian
  • 3
  • 3
  • 2
8 Comments
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 34967108
You can experiment with multiple Releases, hoping that Release would involve the prerequisite as well, but I wouldn't hold my breath.

> And what is extract from setup.exe?
If you press F1 on those Properties, it will bring up Help article with the explanation, which I copied here for you.

Download From The Web—Downloads all of the setup prerequisite files included in your project (if necessary) from the URL specified in the setup prerequisite (.prq) file for each prerequisite.

Extract From Setup.exe—Compress the setup prerequisite files into Setup.exe, to be extracted at run time, if necessary.

Copy From Source Media—Store the setup prerequisite files at the root directory of the source media.

0
 
LVL 22

Author Comment

by:Thomasian
ID: 34967120
>>You can experiment with multiple Releases, hoping that Release would involve the prerequisite as well, but I wouldn't hold my breath.

So if that didn't work, I would have create one project for each release?
0
 
LVL 40

Assisted Solution

by:Vadim Rapp
Vadim Rapp earned 100 total points
ID: 34967160
Yes. I understand, the prerequisite is customized sql server, but if it was something non-customized, like .net framework, then one more option would be to tell the user to download it by themselves. The main benefit of that is that you don't assume that you support the framework (or whatever) as well (since you installed it).
0
 
LVL 22

Author Comment

by:Thomasian
ID: 34967445
>>The main benefit of that is that you don't assume that you support the framework (or whatever) as well (since you installed it).
Can you elaborate on this?
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 12

Accepted Solution

by:
jmcmunn earned 400 total points
ID: 34969322

There is absolutely a way to do this, we do it here with SQL server.  You can do it with release flags if there are two different prerequisites you wish to include based on your target media (wb vs CD).

You need to be running at least Installshield 2009 to do this I believe.  Once you do that, you can set a release flag on the prerequisite which tells it what release(s) to include it in.  Depending on the prerequisite you are using there may already be two different prerequisites (one will be called "download from web" or something similar).

http://kb.flexerasoftware.com/doc/Helpnet/installshield15helplib/IHelpSetPrereqProps.htm
and
http://kb.flexerasoftware.com/doc/Helpnet/installshield15helplib/IHelpReleaseFlags.htm

If there is only one prerequisite you *should* be able to associate the prerequisite with a specific Feature of your install and then put the release flag on the feature instead of the prerequisite.  The end result should be similar...

Either way, using release flags will be necessary to do this if you want to have one installshield project.



0
 
LVL 12

Expert Comment

by:jmcmunn
ID: 34969349
In response to answer 34967160 above and your reply 34967445....

What he's saying is that if you install a third party application on someone's machine they may start asking you to support it.  However this has not been my experience as long as the install is done properly.  It is a valid point in the sense that the less responsibility you take, the less you will get called to help.  But I find it incredibly annoying (to the point of not using software on occasion) if an application refuses to install until I manually complete the requirements it needs.

Also, what do you think Microsoft is going to say if your customer DOES indeed call them and say "I installed SQL server so I could run <SOME COOL PIECE OF SOFTWARE> and now that software is not working..."  Microsoft is going to tell them to call you, and you are going to end up troubleshooting the SQL issue anyway, regardless of where the issue lies.

So, I'd much rather take full control of the third party install and just make sure it gets done correctly.
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 34969454
Right, as I said, it probably does not apply to customized sql server for a particular application. But this question is about prerequisites in general, and recently we saw here exactly such a question where developer had to remotely troubleshoot failing upgrade of .Net framework that his application has installed. Even with sql server, I believe, if the problem comes up during upgrading it or (more realistically) uninstalling it, the caller may not even mention the cool piece of software it was for.

Thanks for finding the release-related bit of the prerequisite - I checked if something like that exists, but did it in an older version of Installshield.
0
 
LVL 22

Author Closing Comment

by:Thomasian
ID: 34970543
Thanks, that's exactly what I needed.

I also like the idea of letting the users separately install prerequisites to let them know that we do not support it. Though it doesn't apply for my current project, I will keep that into mind for my future projects.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

One of the major drawbacks of deploying applications by GPO is the complete lack of any centralized reporting. After a normal deployment, there are two ways to find out if it was successful – by looking in the event log, and by looking in the log of…
Installations often have prerequisites, such as “Microsoft .Net framework is required for this product”. The usual implementation in MSI installations is system search for a particular registry setting representing the required prerequisite, followe…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now